what is sub-query? : Transact sql


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL PLSQL Interview Questions

why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

0 Answers  


Hi, Can anybody please explain me the flow of the below query. I am not able to understand how this query works. This query is for finding the Nth highest salary.. SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); If N = 2 then second highest salary will be the o/p. If N = 3 then third highest salary will be the o/p. and so on.. Thanks, Nitin

5 Answers   Deloitte, Ness Technologies,


SELECT flavor, SUM (ice_cream_sales) FROM sales_detail GROUP BY flavor ORDER BY 2 DESC If the "sales_detail" table contains ten records with different values in the flavor column (two "vanilla," three "chocolate," four "strawberry," and one NULL), how many rows are returned by the sample code above? 1. 0 rows 2. 1 row 3. 3 rows 4. 4 rows 5. 10 rows

8 Answers   Sonata,


What is a behavioral trigger?

0 Answers  


Why do we use triggers?

0 Answers  






what is difference b/w pravite procedures and public procedures?

3 Answers   Steria, Wipro, Zensar,


What is column?

0 Answers  


What is the importance of sqlcode and sqlerrm?

0 Answers  


Advantages and disadvantages of stored procedure?

0 Answers  


How does one use sql*loader to load images, sound clips and documents? : aql loader

0 Answers  


What is t-sql? : Transact sql

0 Answers  


Is sql port 1433 encrypted?

0 Answers  


Categories