Company: Ubs_30june
Difficulty: medium
Problem Description A financial institution is building an online application to simplify tax calculations. Write a SQL query to calculate a fixed 20% tax on the total income generated by each account during the year 2023. Schema Table: accounts +-----------+--------------+-------------+-------------------------------+ | Name | Type | Constraints | Description | +-----------+--------------+-------------+-------------------------------+ | id | INT | PRIMARY KEY | The identifier of the account | | iban | VARCHAR(255) | | The IBAN of the account | +-----------+--------------+-------------+-------------------------------+ Table: income +------------+--------------+------------------+------------------------------+ | Name | Type | Constraints | Description | +------------+--------------+------------------+------------------------------+ | account_id | INT | FK (accounts.id) | The reference to the account | | dt | VARCHAR(19) | | Date and time of the income | | amount | DECIMAL(6,2) | | The