Assignment 1
Assignment 1
remarks varchar2 60
d. Table Name : sales_order
Description: Use to store information about order
2. Insert the following data into their respective tables using the SQL insert statement:
ProductNo Description Profit % UOM qty_on_hand Reorder lel Sell Price Cost Price
P00001 1.44 Floppies 5 Piece 100 20 525 500
P03453 Monitors 6 Piece 10 3 12000 11280
P06734 Mouse 5 Piece 20 5 1050 1000
P07865 1.22 Floppies 5 Piece 100 20 525 500
P07868 Keyboards 2 Piece 10 3 3150 3050
P07885 CD Drive 2.5 Piece 10 3 5250 5100
P07965 540 HDD 4 Piece 10 3 8400 8000
P07975 1.44 Drive 5 Piece 10 3 1050 1000
P08865 1.22 Drive 5 Piece 2 3 1050 1000
Assignment 1
Salesman_ Salesman_ Address1 Address2 City Pin State sal_amt Tgt_to Ytd Remarks
no name code Get sales
S00001 Kiran A/14 Worli Bombay 400002 MAH 3000 100 50 Good
S00002 Manish 65 Nariman Bombay 400001 MAH 3000 200 100 Good
S00003 Ravi P-7 Bandra Bombay 400032 MAH 3000 200 100 Good
S00004 Ashish A/5 Juhu Bombay 400044 MAH 3500 200 150 Good
Hands-on Exercise
1) Add the following record into the challan_details table and check if the records gets added or
not. Note the observation for each of them
CH9001 P00001 5
P785341 P06734 9
P00001 CH9001 1
2) Drop the table product_master. Can the product_master be dropped. If not, Note the error
message.
3) Drop the table challan_details, challan_header and product_master in specified sequence.
4) What conclusions can you draw, performing the above tasks?
Assignment 1
49) Delete all the records having delivery date before 10th July’96
50) Change the city of client_no ‘C00005’ to ’Bombay’.
51) Change the delivery date of order number ‘O10008” to 16/08/96
52) Change the bal_due of client_no ‘C00001’ to 1000
53) Change the cost price of ‘1.22 Floppy Drive’ to Rs. 950.00.