Practical 6 - Dbms
Practical 6 - Dbms
budget numeric (12,2) check (budget > 0), #checks if the budget is >0
credits numeric (2,0) check (credits > 0),# the credits must be > 0 TO INSERT the values into the
table
since on delete cascade and on update cascade is used if any changes done to parent row all child
row will updated successfully.
create table instructor (ID varchar (5), name varchar (20) not null,
check (year > 1759 and year < 2100), # Integrity constraint defined . fro range of the year defined