Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

FACULTY OF COMPUTER SYSTEMS & SOFTWARE MARKS:

ENGINEERING
COURSE: Database Systems CODE: DRC1123
TOPIC: Create Table, Insert and Drop
/1
ASSESSMENT: Lab Sheet NUM: 1 DURATION: 2 hours

0
MATRIC NUM: _______________________________ IC NUM: ________________________________

1. Write your SQL command for each question.


 Create a table to store the patient information. The table should content patient number,
name, address and date of birth. Assign suitable data types.
 Insert all the data for the above table.
 Drop the patient information table.

2. Answer all the questions below:

Name DataType
--------------------------------------------------------------------------------------------------------------------------
STD_NAME VARCHAR (20)
STD_ID VARCHAR (8)
STD_IC INT
STD_COURSE VARCHAR (30)
STD_DATEOFBIRTH DATE
STD_ADDRESS VARCHAR (40)

 In your database create a table called STUDENTS_INFO based on the table above.
 Drop the date of birth column from STUDENT_INFO table and show the SQL
command.
 Drop the address column from STUDENT_INFO table and show the SQL command.
 Shows the SQL command to add the date of birth column on the STUDENT_INFO
table.
 Shows the SQL command to add the address column on the STUDENT_INFO table.

You might also like