You are on page 1of 1

tblTeacher

TEACHERI NAME AGE DEPARTMEN WORKINGHOUR PAYperHOUR GENDER CITY TYPE


D T (perDAY)
1 NAVEED 11/11/1997 IBA 8 1500 MALE GUJRANWALA PERMANENT
2 SALMAN 13/12/1986 IT 7 1200 MALE GUJRANWALA PERMANENT
3 IMRAN 19/12/1974 COMMERCE 8 1500 MALE KARACHI PERMANENT
4 SAIMA 13/12/1993 IT 2 900 FEMALE ISLAMABAD VISITING
5 YOUNAS 13/12/1960 IBA 6 1200 MALE LAHORE CONTRACT
6 OBAID 29/01/1985 IT 7 NULL MALE GUJRANWALA CONTRACT
7 AISHA 13/12/1990 LAW 4 NULL FEMALE WAZIRABAD VISITING
8 MUGAL 13/07/1955 IBA 3 2000 MALE GUJRANWALA VISITING
9 KASHIF 17/12/1992 LAW 4 1500 MALE PESHAWAR PERMANENT
10 USMAN 13/3/1988 IT 2 600 MALE NULL VISITING

Question #1: Write appropriate Structured Query Language Statements to do followings jobs.

1. Write a query to show name, age and Department of the ALL Male Teachers OF IBA Department.

2. Write a query to show TeacherID, Name, AGE and Department who are either visiting or permanent.

3. Write a query to show teachers who pay per Hour is at least 1000 and lives in Gujranwala

(Arrange teacher with respect to Higher Pay per Hour).

4. Write a query to show Minimum and Maximum age of teacher who have 5 or less working hour/day but not
belong to LAW department.

5. Write a query to show all data of those teachers who were born in 1990’s.

6. Write a query to show total and average working hour per Day of teachers, Department wise.

7. Write a query to show total Number of all Various Departments.

8. Write a query to show TEACHER_ID, Name and teacher’s pay per day.

(Pay per day = working hour per day * pay per Hour)

9. How much each female teacher of IBA earning per month.

(Earning per month = (working hour per day * pay per Hour)*30)

10. Remove teachers from the database Whose City is missing.

You might also like