DBMS Lab Program 2
DBMS Lab Program 2
Schema Diagram
Table Creation
create table SALESMAN_dbms (
Salesman_id int, Name varchar(10), City varchar(10), Commission int,
primary key(Salesman_id));
Salesman Details:
Order Details:
Queries:
3. List all salesmen and indicate those who have and don’t have customers
in their cities (Use UNION operation.)
4. Create a view that finds the salesman who has the customer with
the highest order of a day.