DBE Lab Experiment 5: Name: Implement Queries On Constraints
DBE Lab Experiment 5: Name: Implement Queries On Constraints
Lab Experiment 5
ii. Sales_order
. Sales_order_details
Column Datatype Size Attributes
Tgt_to_
Salesman_ Salesman Address City Pin State Salamt get Ytd Rem
no name code Sales
500001 Kiran A/14 Bom 400002 Mah 3000 100 50 Good
worli bay
500002 Manish 65,narim Bom 400001 Mah 3000 200 100 Good
an bay
500003 Ravi P-7 Bom 400032 Mah 3000 200 100 Good
Bandra bay
500004 Ashish A/5 Bom 400044 Mah 3500 200 150 Good
Juhu bay
(ii)
Data for salesorder table:
Q2. Insert the following values into the challan header and challan_details tables:
Challan No S_order No Challan Date Billed
CH9001 019001 12-DEC-95 Y
CH865 046865 12-NOV-95 Y
CH3965 010008 12-OCT-95 Y
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.