- 1

How to create/write a SQL query to find the salesperson and customer who belongs to same city. Return salesman, cust_name&city

I try to code it but it didn't show the output. Always in error. I have trouble in making the query https://www.sololearn.com/discuss/2993558/?ref=app https://www.sololearn.com/discuss/2993558/?ref=app

4th Mar 2022, 1:55 AM
Lauren Terez
1 Odpowiedź
+ 7
SELECT salesman.name AS "Salesman", customer.cust_name, customer.city FROM salesman,customer WHERE salesman.city=customer.city; Hope it will help you ✌️🤠✌️
4th Mar 2022, 4:42 AM
Vaibhav
Vaibhav - avatar