Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Deloitte SQL PLSQL Interview Questions
Questions Answers Views Company eMail

Differences between UNIQUE and DISTINCT in select statements

26 127640

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 13026

Post New Deloitte SQL PLSQL Interview Questions


Deloitte SQL PLSQL Interview Questions


Un-Answered Questions

How do I start iis on windows server 2012?

108


What are the different types of gst?

623


Why acetonitrile and water are used as extraction solvent when analysis melamine? I thought they are miscible and won't be able to separate...

1214


In system.out.println(), what is system, out and println?

629


What are references in c++? What is a local reference?

569






Will you be ready to relocate?

709


Can two tables share a primary key?

508


who to increase the sale promotion?

1870


State Disadvantages of Apache Kafka?

320


What is the plus sign called in excel?

320


how can u check no of records in a file?

671


What is demand promissory note?

632


What is system r?

480


Explain the difference between asp and html? Or why asp is better than html?

571


How does master slave architecture in the hadoop?

406