You are on page 1of 3

CS241L DBMS(lab)

Quiz 1
Provide screen shots of your SCRIPT solution and results. Upload your file to moodle
upload link provided for the quiz. (120 points)
Passing Mark: 72
1. List empno, lastname, firstname, job of all employees sorted according to job
position (20 points)

2.

List empno, lastname, firstname, birthdate, age of all employees sorted from
oldest to youngest then by alphabetical order. Hint: Use 2012 as current
year as basis to compute age from birthdate. (30 points)

3.

Display workdept, lastname, firstname, job of all employees sorted according


to workdept and lastname. (20 points)

4.

Display workdept, lastname, firstname, bonus sorted by workdept and


lastname filtered with bonus having 600, 500 and 300. (22 points)

5.

Compute the net salary of the employees considering 10% withholding tax is
imposed for every salary. Show results as given below. (28 points)

You might also like