Professional Documents
Culture Documents
Lab Task 05
Lab Task 05
Lab Task 05
Semester: Spring 2021 Date: May 6, 2021
Course Title: Database Systems (Lab) Course Code: CS-2202
Instructor: Engr. Tahir Abbasi Due Date: May 9, 2021 before 11:59 PM
Instructions:
You must submit your lab task well within time. Late work IS NOT ACCEPTED and will lead to ZERO
CREDIT.
The lab task should be uploaded on QOBE.
Do your own work. Any type of cheating/sharing of lab task or part of the lab task will result in ZERO
CREDIT.
1. Using the Query Wizard, create a new database and name the database as your full name in all
lowercase letters. (For example, Kaynat Khatib would save her database as kaynat_khatib_lab_task_05.
2. Create a new table in your database and name the table as PUBLISHERS.
i. Write the corresponding SQL commands (DDL) to add the following attributes into your
table.
ii. Using corresponding SQL command (DDL), make the following changes into your table:
iii. Using the corresponding SQL command (DDL), change the name of table to PUBLISHER.
iv. Using corresponding SQL command (DDL), delete the table from your database.
1/2
CS-2202 Database Systems Lab Task 05: DDL Commands
3. Create a new table in your database and name the table as BOOKS.
i. Write the corresponding SQL commands (DDL) to create the following table in your
database.
ii. Using corresponding SQL command (DDL), make the following changes into your table:
iii. Using corresponding SQL command (DDL), delete the table from your database.
5. Documentation:
Copy and paste all of your SQL DDL Statements into a Word document. Add your SQL
Management Studio Screenshots showing your SQL DDL statements execution and the results of
your “Create Table” statements.
Attach your completed file and submit by due date.
Good Luck
2/2