Department of WD and DBA Level III Based practical.
Assume you are working in Kiya in database administrator. Kiya has Student, Course
and Instructor.
Student Identified by SID, Sfname, Slname, sex, age, and Course Identified by Course
code, Course name, Cr_Hr and Instructor Identified by i_ID, i_fname, i_lname, sex,
Salary.
Student Take many Course and Instructors Teach many Students, Based on the above
information do the following activities.
1. Draw ERD diagram based on the above information.
2. Create database as Kiya.
3. Under Kiya create appropriate tales and create appropriate Relationship.
4. Insert at least 5 sample data or record for each table.
5. Display only female student.
6. Display all students Slname is start by D letter ends by N letter.
7. Display all students whose student age is less than 30.
8. Update Sfname from student table to Awoke where SID is Hoo1.
9. Delete age from student table.
10. Add address to student table.
11. Delete one record from instructor table.
12. Display only i_ID, i_fname, and i_lname from Teacher table.
13. Display all students by Sfname Ascending or Descending Order.
14. Count total number of female and male students.
15. Find maximum and minimum salary from Instructor table.
16. Find sum and average of salary from Instructor table.
17. Rank the students based on their mark.
Student table
Attribute Type Size
SID Varchar 12
Sfname Char 50
Slname Char 50
Sex Char 6
age Int -
Course table
Attribute Type Size
Course Code Varchar 20
Course Varchar 50
Name
Cr_hr Int -
Instructor table
Attribute Type Size
i_ID Varchar 12
ifname Char 50
ilname Char 50
Sex Char 6
Salary money -
Student table
SID Sfname Slname Sex age
Hu001/2023 Abebe Kasa Male 31
Hu002/2023 Helen Hailu FeMale 19
Hu003/2023 Daneil Bergesa Male 21
Hu004/2023 Desalegn Chala Male 16
Hu005/2023 Hiwot Abera FeMale 23
Course table
Course Code Course Name Cr_hr
COSC501 Design and Analysis of Algorithm 3
COSC511 Selected Topics in Computer Science 3
COSC531 Object-Oriented Software Development 3
COSC541 Distributed Systems 4
COSC651 Computer Security and Privacy 4
Instructor table
i_ID ifname ilname Sex Salary
I01 Hirut Tadele Female 6030
I02 Abebech Reta Female 7016
I03 Girma Fekadu Male 10020
I04 Rahel Getachew Female 5000
I05 Mohammed Abdi Male 11000