What is the disadvantage of using subquery exact after a
select statement?ex.
select (select * from sometable)

Answer Posted / sandeep

Main difference is the outer and inner querries are
independent each other. This executes inner querry for each
and every rows in outer querry. It is better to use joins
instead of sub querries where it is possible. But in some
cases we cud use subquerries

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1715


How do clustered indexes store data?

802


When should you use an instead of trigger?

701


How many types of functions are there in sql server?

608


What security features are available for stored procedure?

765






Does sql server 2000 full-text search support clustering?

673


What is pivot and unpivot?

776


Would you store your query in a ssrs report or a database server? State the reason why?

132


What are the differences between union, intersect, and minus operators?

763


What are the new features of sql server 2008 r2 reporting service?

124


Do you know what are acid properties of transaction?

691


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

729


Explain stored procedure?

785


When multiple after triggers are attached to sql table, how to control the order of execution?

739


What are the types of containers in ssis?

780