Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer the SQL queries for this question Thank you 3. Consider the following schema for OrderDatabase: SALESMAN (Salesman_id, Name, City, Salary) CUSTOMER (Customer_id, Cust_Name,
Please answer the SQL queries for this question Thank you
3. Consider the following schema for OrderDatabase: SALESMAN (Salesman_id, Name, City, Salary) CUSTOMER (Customer_id, Cust_Name, City, Salesman_id) ORDERS (Ord_No, Purchase_Amt, Ord_Date, Customer_id, Salesman_id) Write SQL queries to a. Insert 5-10 entries. b. Retrieve the details of all the customers and orders. c. Get the customers handled by a particular salesman. d. Get the details of orders purchased by customers. e. Through salesman_id retrieve the details of his sold orders. f. One of the salesmen is getting a raise of 2000 and is getting relocated to Delhi. update his data. g. Delete an order and its details as the customer placed an order and canceled it. h. Rename the City column to Place. i. Drop purchase_amt column from the table orders. j. Drop the table salesmanStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started