SQL_LABSHEET
SQL_LABSHEET
Lab Work
Lab 4:
Write DDL statements to create table for entity customer(cid,name,age,address)
cid: stores integers value and is unique
name : stores maximum of 30 characters
dob: stores date and time value
address: stores at most 30 characters and only Ktm,Bkt, amd Ltp can be
assigned
Solution:
name varchar(30),
dob datetime,
address='Ltp'));
Lab 5:
Lab 6:
Author(aid,name,age,gender,address)
Writes(aid,bid,publishdate,bookname,ISBN)
name varchar(20),
age int,
CHECK(age>10));
publishdate datetime,
bookname varchar(20),
aid int,
lab 7:
Or
Create table Eemployee
Compiled by:
LB Gurung
[email protected]