Q. List all customers (name) who have orders (use EXISTS).


Consider  this table --



You can understand by seeing this video ---







Answer =

SELECT NAME FROM CUSTOMERS WHERE  EXISTS ( SELECT * FROM ORDERS WHERE  CUSTOMERS.NAME = ORDERS.NAME ) ;

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post