what is sub-query? : Transact sql
No Answer is Posted For this Question
Be the First to Post Answer
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
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
What is a behavioral trigger?
Why do we use triggers?
what is difference b/w pravite procedures and public procedures?
3 Answers Steria, Wipro, Zensar,
What is column?
What is the importance of sqlcode and sqlerrm?
Advantages and disadvantages of stored procedure?
How does one use sql*loader to load images, sound clips and documents? : aql loader
What is t-sql? : Transact sql
Is sql port 1433 encrypted?