Practical Questions
Practical Questions
Orders
Consider Customer_Id and Order_Id as Primary key of Customers and Orders table
respectively and Customer_Id as Foreign key in Orders table.
Write a SQL query to
a) Create Customers and Orders table.
b) Insert records.
c) List all orders along with the corresponding customer names from the orders
and customers tables.
4. Product_Id Product_Name Price Stock
P001 Smart Phone 27500 35
P002 PC 45000 45
P003 Tablet 29000 23