What are primary key and foreign key and how they work?
No Answer is Posted For this Question
Be the First to Post Answer
What is a design view?
How do I write a cron which will run a sql query and mail the results to agroup?
How many types of normalization are there?
Does google use sql?
How do sql databases work?
How to add a column ‘salary’ to a table employee_details?
what is the difference between truncate and delete statement? : Transact 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,
Can you call pl/sql package functions from within a fast formula?
Which is better cte or subquery?
how to retrieve only duplicate values in a table
What is sqlexception in java?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)