You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
303 B
MySQL
6 lines
303 B
MySQL
5 years ago
|
/*6. Write a query to create a view that shows for each order the salesman and customer by name.*/
|
||
|
CREATE VIEW nameorders
|
||
|
AS SELECT ord_no, purch_amt, a.salesman_id, name, cust_name
|
||
|
FROM orders a, customer b, salesman c
|
||
|
WHERE a.customer_id = b.customer_id
|
||
|
AND a.salesman_id = c.salesman_id;
|