DMW_Lab_test-1
Instructions for Lab test no.
1
- Create a database with name
e_shopping
- Create 2 tables
buyers &
sellers with 3 attributes id,
name & dob in both tables
(buyers & sellers) with following rules
(Point no. 3 to 6)
id attribute is of integer data type and can
not be null
name attribute is of varchar data type with
length 20 and it can not be null
dob attribute is of date data type
id shall be the primary KEY
- Populate your table with 500 unique tuples/records
following above schema
- change table structure by adding 1 more column/attribute with the
name
age of int data type
- calculate the
age using dob for each tuple
and assign the value to age attribute for each tuple
- display the maximum value of age in buyers table