What is difference between sub query and co-query?

Questions by pghare

Showing Answers 1 - 3 of 3 Answers

Sub-query is an inner query that returns a result used by another outer query may be by means of an IN operator like the following:
select * from [dbo].[Orders] where [Customer_ID] IN (select Customer_ID from [dbo].[Customer] where [City]='Kolkata')
A Co-query is a part of a UNION query.
A subquery can also be used with = operator; but in that case it must have to be guaranteed that it will return only one row of result

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions