You are on page 1of 1

NAME: [write your name here]

ID: [write your id here]

IDB-G

Lab Task -1 29.09.15

Write the necessary SQL statements for the


following problems:
1. Find the name of the employees also find their department, job joining
date and salary.
2. Find the structure for department and employee table.
3. Find the name, designation and salary of the employees with how
much bonus they all got on last Eid. Assume that they all got 35%
bonus from their salary. Also find out which will be their gross total
salary for this month. Provide the name Gross Salary for the total
salary column.
4. Find the name, designation and joining date for each employee in a
manner so that we can see who is senior.
5. Find out all the unique job category from the employee table.
6. Find out the status of an employee. The information will look like this.
King is the President of this company and the salary of the
President is 1000. Rename the information heading as Job Status
Info.
7. Find out the name and commission of the employees. What will be the
total salary if we add the commission with salary? Rename the columns
like NAME, Salary, Commission, Total Salary.
8. Write a query which will find following information. Salesman, Allen
joined on 20-2-1981. Rename it Joining Info.

Submission Procedure:
Copy the SQL query from your browser and paste them after each question.
Rename the file with your ID like 1x-xxxxx-x.docx and then upload the file
into your VUES account.

You might also like