Major Assignment: Sample Tables
Major Assignment: Sample Tables
Total Marks: 10
SAMPLE TABLES
Key Points:
First paste the screenshot of table creation query and then paste the screenshot of table
with entries. No need for the insert query screenshot.
Do the same for all three tables.
PART 1
Key Points:
Screenshots: (Total 2)
PART 2
Key Points:
Write the SQL statement for LEFT JOIN between “Salesman” and “Customer”.
Write the SQL statement for RIGHT JOIN between “Customer and “Salesman”.
PART 3
Key Points:
Make further three entries in each of the “salesman” and “customer” table. Repeat
cities like Lahore and Peshawar.
Write the SQL statement to make the UNION between “Salesman” and “Customer.
Identify salesman and customer.
Write the SQL statement to make the UNION ALL between “Salesman” and “Customer.
Identify salesman and customer.
Write the SQL statement to select ALL those customers and suppliers who belongs to
Lahore or Peshawar.
Make the union between LEFT and Right Join tables of PART 2. (It is also called FULL JOIN)
Screenshots: (Total 4)
PART 4
Key Points:
Screenshots: (Total 4)
THE END