Can we call a function containing dml statements in a select query?
No Answer is Posted For this Question
Be the First to Post Answer
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,
I want to execute a piece of code before calling a procedure. How to achieve it?
How to call a javascript function from pl sql?
what is the difference between delete and truncate commands? : Sql dba
What is a nested table in word?
Why coalesce is used in sql?
What are the different types of dbmss?
How to add Foreign key in a table after the creation of the table?
Can instead of triggers be used to fire once for each statement on a view?
What is a scalar value in sql?
What is a cursor for loop ?
what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
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)