NUM-BSCS-2022-30 Lab 9 6640a4926f477
NUM-BSCS-2022-30 Lab 9 6640a4926f477
DEPARTMENTCODE VARCHAR(255)
);
Add columns named as STREET, CITY, and COUNTRY in student table. Use TINYTEXT datatype
Task 5
for all columns.
mysql> ALTER TABLE STUDENT
ADD (STREET TINYTEXT,
Solution
CITY TINYTEXT,
COUNTRY TINYTEXT);
Database Systems – Lab 09
Task 6 Change the data type of STREET, CITY and COUNTRY to VARCHAR.
Task 14 Set the starting value of CCODE in the course table to 101.
Task 16 Show structures of all tables in ‘students_data’ database (add query and screenshots).
DESCRIBE STUDENT;
Solution
DESCRIBE COURSE;
DESCRIBE ENROLLMENT;
Database Systems – Lab 09
DESCRIBE TEXTBOOK;
DESCRIBE BOOKDETAILS;
Task 17 Show list of constraints on all tables in ‘students_data’ database (add query and screenshots).
DESCRIBE STUDENT;
Solution
Database Systems – Lab 09
DESCRIBE COURSE;
DESCRIBE ENROLLMENT;
DESCRIBE TEXTBOOK;
Database Systems – Lab 09
DESCRIBE BOOKDETAILS;
Submission Guidelines:
• Submission Deadline : 12th May, 2024 11:59 pm.
• Save your file as “yourname_rollno_lab9” and submit the PDF file over QOBE.
• Late Submission will result in marks deduction.
• Plagiarism will lead to 0 marks.
THE END