Which sql statement is used to return only different values?
No Answer is Posted For this Question
Be the First to Post Answer
Explain what is an index?
Why coalesce is used in sql?
What are the different types of joins in sql?
Define SQL and state the differences between SQL and other conventional programming Languages?
How many types of index are there?
Can you create a table with Primary Key not as the clustered index.
Explain what is a database?
What are the popular database management systems in the it industry?
How do you break a loop in pl sql?
what is 'trigger' in sql? : 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,
What does varchar include?