Computer Science, asked by manee1234, 1 year ago

write a query of a salesman record

Answers

Answered by nanhaykumar
0

SELECT *

FROM salesman a

WHERE EXISTS

(SELECT * FROM customer b

WHERE a.salesman_id=b.salesman_id

AND 1<

(SELECT COUNT (*)

FROM orders

WHERE orders.customer_id =

b.customer_id)

Similar questions