What are sub-queries? Give example? In which case
sub-queries are not feasible?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What are the differences between lost updates and uncommitted dependencies?
Please get the 4 th maximum salary from a table without using any sql keyword (TOP,MAX are mot allowed)
what is sql injection?
tell me the disaster recovery plan
What is indexing?
Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many
What is a Linked Server?
What is the difference between ‘having’ clause and a ‘where’ clause?
last function used in MS Access to convert sql what function will use in sql
What is exporting utility?
what is extended StoreProcedure ?
What is the difference between a function and a trigger?