You are on page 1of 3

SQL Exercise

Employee
EmployeeID FirstName LastName Address

City

010

Joe

Smith

83 First Street Howard

105

Mary

Scott

842 Vine Ave. Losantiville

EmployeeDetails
EmployeeID Salary Benefits

Position

010

75000 15000

Manager

105

65000 15000

Manager

244

50000 12000

Staff

300

45000 10000

Staff

441

28000 7500

Entry-Level

SQL Exercise

Display the salary and benefits for each employee.


Display the employeeid of those having salary
greater or equal to Rs50,000.
Display the employeeid, salary and benefits for all
managers.
Display the employeeid, salary and benefits for all
managers having salary less than Rs70,000.
Display employeeid, salary, benefits and position for
all employees with position starting with S.

SQL Exercise

Insert a new record with the following details:


EmployeeId: 333
Salary: 10,000
Benefits: 1000
Position: Clerical
Employee with id 300 has been promoted to a
manager position with salary Rs50,000 and same
benefits as before.
Employee with id 441 has left the company.
Display firstname, lastname, salary and benefits for
all managers.

You might also like