Qnsans Rdbms Eltp Db2
Qnsans Rdbms Eltp Db2
Qnsans Rdbms Eltp Db2
Full Marks : 30
Time : 45 mins.
Ans –
SELECT LASTNAME, SALARY, BONUS, COMM
FROM EMPLOYEE
WHERE SALARY > 22000 AND BONUS = 400
OR BONUS = 500 AND COMM < 1900
ORDER BY LASTNAME
b) Produce a report that lists employees' last names, first names, and
department names. Sequence the report on first name within last name,
within department name.
Ans-