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

Explain the difference between control flow and data flow?

0 Answers  


How you can get a list of all the table constraints in a database? : Sql server administration

0 Answers  


How to query multiple tables jointly?

0 Answers  


What are the properties and different types of sub-queries?

0 Answers  


how can do you the system monitoring?

1 Answers  






What are system databases in ms sql server?

0 Answers  


How to get @@error and @@rowcount at the same time?

0 Answers  


Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

0 Answers  


Tell me what is log shipping?

0 Answers  


What are sp_configure commands and set commands?

0 Answers  


when u import an excel file into sql if suppose one column has got a date field with system time attached to it what data type u will use in sql to import it in a table? Note: a condition is the excel file has no primary key defined to a column...also u r importing bulk data into sql

1 Answers  


What is database replicaion? What are the different types of replication you can set up in SQL Server?

5 Answers   Aptech, HCL, Perpetual, SAIC,


Categories