Name, Population, Capital
Name, Population, Capital
------
1. create a database called 'assignment' (Note please do the assignment tasks in this database)
2. Create the tables from ConsolidatedTables.sql and enter the records as specified in it.
a. Product
product_id - primary key
product_name - cannot be null and only unique values are allowed
description
supplier_id - foreign key of supplier table
b. Suppliers
supplier_id - primary key
supplier_name
location
c. Stock
id - primary key
product_id - foreign key of product table
balance_stock
7. Modify the supplier table to make supplier name unique and not null.
10. Create a view called emp_sal on the emp table by selecting the following fields in the
order of highest salary to the lowest salary.