From the "Employee" table below:
EmpNo Ename Salary (Month) Bonus DeptId 101 Riya 15000 500 D01 102 Rohit 21000 600 D02 103 Richa 34000 800 D01 104 Riddhi 19000 700 D03
Query to display name and annual income of the employees in a new column as Annual Income is:
From the "Employee" table below:
| EmpNo | Ename | Salary (Month) | Bonus | DeptId |
|---|---|---|---|---|
| 101 | Riya | 15000 | 500 | D01 |
| 102 | Rohit | 21000 | 600 | D02 |
| 103 | Richa | 34000 | 800 | D01 |
| 104 | Riddhi | 19000 | 700 | D03 |
Query to display name and annual income of the employees in a new column as Annual Income is:
Solution
Option 1 selects only the employee name (aliased as Name) and computes the annual income as monthly salary multiplied by 12. It gives the result a new column called Annual Income, and the FROM clause names the Employee table.
Option 2: it has no FROM clause, and * shows every column instead of only the name and annual income.
Option 3: it also displays EmpNo, which the question did not ask for.
Option 4: it only renames Salary, so the monthly salary is shown as "Annual Income" without multiplying by 12.
The column name Salary (Month) in the table is written with a space and brackets for display; the queries use Salary, so the option's expression is what matters here.
Related questions:
2025: 30 May Shift 2
2025: 16 May Shift 1
2026: 29 May Shift 1
2026: 26 May Shift 1
2025: 27 May Shift 2