1907. Count Salary Categories
Description
+-------------+------+
| Column Name | Type |
+-------------+------+
| account\_id | int |
| income | int |
+-------------+------+
account\_id is the primary key for this table.
Each row contains information about the monthly income for one bank account.Accounts table:
+------------+--------+
| account\_id | income |
+------------+--------+
| 3 | 108939 |
| 2 | 12747 |
| 8 | 87709 |
| 6 | 91796 |
+------------+--------+
Result table:
+----------------+----------------+
| category | accounts\_count |
+----------------+----------------+
| Low Salary | 1 |
| Average Salary | 0 |
| High Salary | 3 |
+----------------+----------------+
Low Salary: Account 2.
Average Salary: No accounts.
High Salary: Accounts 3, 6, and 8.ac
Last updated