Skip to main contentSkip to solution

From the "Employee" table below:

EmpNoEnameSalary (Month)BonusDeptId
101Riya15000500D01
102Rohit21000600D02
103Richa34000800D01
104Riddhi19000700D03

Query to display name and annual income of the employees in a new column as Annual Income is:

Solution

✅ Correct Option: 1

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question