What are sub-queries? Give example? In which case
sub-queries are not feasible?

Answers were Sorted based on User's Feedback



What are sub-queries? Give example? In which case sub-queries are not feasible?..

Answer / bernatshaw

Sub-query means a Query within a Query.
This is the Example:
Select Employee_Id, Employee_name From Employees Where
Employee_Id IN (Select Mgr_Id from Manager)

Is This Answer Correct ?    12 Yes 2 No

What are sub-queries? Give example? In which case sub-queries are not feasible?..

Answer / rajendra

Sub query mean query within query ,but when you use sub
query on larg amount data that time it is not feasible

Is This Answer Correct ?    4 Yes 3 No

What are sub-queries? Give example? In which case sub-queries are not feasible?..

Answer / akhil

text and image datatypes are not allowed in
subqueries.Subqueries cannot manipulate their results
internally, that is, a subquery cannot include the order by
clause, the compute clause, or the into keyword.
Correlated (repeating) subqueries are not allowed in the
select clause of an updatable cursor defined by declare cursor.

Is This Answer Correct ?    1 Yes 2 No

What are sub-queries? Give example? In which case sub-queries are not feasible?..

Answer / amit kumar

A subquery is simply a SELECT query within a SELECT query.

example:-

SELECT City, Salary, (SELECT AVG(Salary) FROM Employee)
AS AvgSalary FROM Employee;

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL Server Interview Questions

Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

0 Answers   HCL,


what is a stored procedure and trigger?

3 Answers  


When do we use the UPDATE_STATISTICS command?

4 Answers   Deutsche Telekom AG,


What happens to a statement batch if there is a compilation error?

0 Answers  


How do you create an execution plan?

0 Answers  






what do you understand by change data capture?

0 Answers  


Tell me about the approaches which you used to counter the DI problems.

0 Answers   EXL,


what is mean by crystal repoart? ahere we will mainly use that?

1 Answers  


What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security

0 Answers  


What is candidate key with example?

0 Answers  


What is change data capture (cdc) feature?

0 Answers  


What is the most common trace flags used with sql server?

0 Answers  


Categories