RDBMS Full Programs
RDBMS Full Programs
com/tfile/studymaterial/b-sc/computerscience/rdbmsfullprograms/3577e566-5538-
4721-936f-bfda5451028a
customer
Attribute Datatype Constrain
t
cust_no varchar (3)
cust_name varchar (15)
age number
phone varchar (15)
Cust_phone
Attribute Datatype Constraint
cust_name varchar (15)
phone varchar (10)
Query:-
create table customer(cust_no varchar(5),cust_name varchar(15),age int, phone varchar(10));
Output :
Table created
a). 5 rows inserted
PROGRAM 2
Create a table sales_man (salesman_no primary key, s_name not null, place, phone unique) Create table
sales_order (order_no primary key
order_date not null
salesman_no foreign key references salesman_no in sales_man
del_type values should be either P or F (check constraints)
order_status values should be 'Inprocess','Fullfilled','Backorder', 'Cancelled' (check constraints))