Lab # 01
Database Systems
Submitted By: Haider Ali
Submitted To: Ms. Maria Gul/ Mr. Amir Hamza
Registration No: B23F0001AI054
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Task:
- Creating database named SchoolRecords
- We would use the database to create tables and perform other functions.
- Afterwards creating table named Teachers with following attributes:
1. TeacherID
2. FirstName
3. LastName
4. Subject
5. Experience
- Creating table named Students with following attributes:
1. StudentID
2. FirstName
Page |2
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
3. LastName
4. Class
- Creating table named Courses with following attributes:
1. CourseID
2. CourseName
3. Credits
Inserting 10 rows of data in each table (Teachers, Students and Courses)
Page |3
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Teachers:
Students:
Page |4
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Courses:
- Displaying all the data of the tables and then selected columns of the table
Page |5
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Outputs of the Tables:
Teachers Table:
Teachers table with first name and subjects:
Students Table:
Page |6
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Students Table with First name and class:
Course Table:
Page |7
Instructor Name: Ms. Maria Gul Department: AI- Blue
Student Name: Ibadullah Qureshi Lab No: 02
Lab Engineer: Ms. Amir Hamza Registration No: B23F0001AI072
Course Table with Course name and credits:
Page |8