Question: Please write SQL queries for this question, not the explanation or the flowchart, just the sql queries for this question (Only the code that work

Please write SQL queries for this question, not the explanation or thePlease write SQL queries for this question, not the explanation or the flowchart, just the sql queries for this question (Only the code that work on MYSQL Application)

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 salesman

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!