dbms_lab4
dbms_lab4
Challan_Header
Column name data type size Attributes
Challan_no varchar2 6 Primary key
s_order_no varchar2 6 Foreign key references s_order_no of
sales_order table
challan_date date not null
billed_yn char 1 values (‘Y’,’N’). Default ‘N’
Q2. Insert the following values into the challan header and challan_details tables:
CH9001 P07965 1
CH9001 P07885 1
CH6865 P07868 3
CH6865 P03453 4
CH6865 P00001 10
CH3965 P00001 5
CH3965 P07975 2
Objective – Answer the following Questionries
Q3. Add the not null constraint in the product_master table with the columns description,
profit percent , sell price and cost price.
Q5. Select product_no, description where profit percent is between 20 and 30 both
inclusive.
Name: Harsh Singh
Roll No: 2100290110061
SOLUTION:
Ques1: ALTER TABLE client_master ADD
PRIMARY KEY (client_no);