Professional Documents
Culture Documents
Table 1: Student
Stu_ID (PK)
Stu_Name
Table 2: Project
Proj_ID (PK)
ii. Fetch all the details of employees having salary greater than 5000
SELECT * FROM EMPLOYEES WHERE EMP_SALARY > 5000;
c. A table called Employee has the following fields: Employee ID, First Name,
Second Name, Date of Birth, Gender, Marital Status, Religion and Salary. Write
SQL statements to do each of the following.
i.) Retrieve all records [include all fields] from the table. (2marks)
ii.) Retrieve the Employee ID, First Name, Second Name, Date of Birth, Gender
and Marital Status.(3 marks)
d. Write SQL commands to create a database name Umma_university and a table called
student_table then insert the following data; (15mks)
Student_name VARCHAR(50),
Age INT,
Branch_id INT
);
Insert the data