Lab Assignment
Lab Assignment
Subject : DBMS
5. Populate the table with all the car models of “Maruti Suzuki’ , “Hundai” , “Honda” etc.
( Please Fill Proper and Relevant Values for Each Tuple)
TopSpeed
Doors
CostPrice
ModelName Unique
Company
HP
RPM
EngineCapacity
Color
SerialNo Primary Key
Weight
Torque
SalePrice
8. Display the structure of table and see the records. ( The table should be empty / blank )
9. Now Populate the “Vehicle” table with all the records of “Car” table but the records should be
inserted in random order this time ( Not in same order as of “Car” Table).
(Like 11,4,5,1,7,3,2,9th record etc)
Do not write just one query to copy all records at one time. Also do not insert records manually
one by one in vehicle table. They are to be copied from car table but in random order.
10. Re-Write queries given in Q6 for “Vehicle” table and notice the output (Is their any difference?)
➢ Show all records
➢ Show names of all the cars of Maruti.
➢ Show record of all Cars whose engine is more than 2000 CC.
➢ Show record of all cars whose color id white.
➢ Show records of all vehicles which are costing more than 4 Lacs.
➢ Show the costprice, saleprice and profit on all cars.
➢ Show the names of all cars alphabetically.
➢ Show all double door cars.