You are on page 1of 10

COMSATS University Islamabad

Abbottabad Campus

LAB ASSIGNMENT

SUBMITTED BY: YUSRA GULFAM

REGISTRATION NO: SP21-BCS-065

SUBMITTED TO: SIR KASHIF NASR

DATE:27/12/2022
Drop Table:

Student ( sid, name,email,section)


Created Student Table:
1. create table relation(id varchar(30),Cid varchar(30),constraint fk foreign key(id)
references Student(id),constraint fkk foreign key(Cid) references Course(Cid));

1. create table Teacher(T_id varchar(30),Name varchar(30),Email


varchar(30),section,roomNo varchar(30),Cid varchar(30),constraint pkt primary
key(T_id),constraint fkt foreign key(Cid) references Course(Cid));
Each table has 3 records:

DESCRIBE STUDENT TABLE


Each table has 2 Update and Delete:

MAIN TABLE
course ( cid,ctitile,credit hour)
Created Course Table:

Each table has 3 records


Each table has 2 Update and Delete:

MAIN TABLE
Teacher ( tid,name,room no)
Created Teacher Table:
Each table has 3 records
Each table has 2 Update and Delete:

MAIN TABLE

Perform Commit operation.


Perform Rollback operation.

Perform Truncate operation.

You might also like