You are on page 1of 7

Name: Dona Mary Jose

Reg. No.: 20MID0055

Principles of Database Systems Lab


Digital Assignment 2

Create table person

Create table tickets

Unique constraint
Dropping unique constraint

Not null constraint


Deleting all rows from table person

Adding Primary key constraint to table person (without constraint name)

Adding foreign key constraint to table tickets (with constraint name)

Insert values to table person


Display table person

Insert values into table tickets


Displaying all the rows in table tickets

Displaying all the constraints from table person

Displaying all the constraints from table tickets


Disabling/Enable foreign key constraint from table tickets

Droping foreign key and primary key constraints

Adding check constraint to table person

Drop check constraint


Default constraint

Dropping all the tables

You might also like