what is unique key constraint? : Sql dba
No Answer is Posted For this Question
Be the First to Post Answer
find the third highest salary?
Can you have multiple SPs with the same name on a database?
what is the need of the cursor attribute notfound..(because using found attribute we can complete the task......found + negation operator = not found )
How do I view a procedure in sql?
Can primary key be changed?
What is clustered index sql?
what is a sub query?how will you calculate working days in a month using sub query?
how can we replace the particular column value of a resulted set of executed query? I mean write down a sql query to chane the particular column's value of a resulted set of executed query
What are different types of joins ?
What is different between union and minus?
How do you rename a table in sql?
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,