select * from table where n = [message #520531] |
Tue, 23 August 2011 05:22 |
|
s4sandeep
Messages: 21 Registered: August 2011 Location: Faridabad, India
|
Junior Member |
|
|
Hi,
Could anyone please tell what is the use of using 'n' in a query type as mentioned below:
select * from scott.emp a where n =
thanks in advance for reply.
Regards
Sandeep Verma
[Updated on: Tue, 23 August 2011 08:01] by Moderator Report message to a moderator
|
|
|
|
Re: select * from table where n = [message #520533 is a reply to message #520532] |
Tue, 23 August 2011 05:28 |
|
s4sandeep
Messages: 21 Registered: August 2011 Location: Faridabad, India
|
Junior Member |
|
|
That was only a part of a query to find the third highest salary from salary table, I could not understand the logic behind this query, please help(The Complete query is):
select * from scott.emp a where 3 = ( select count(distinct(b.sal)) from scott.emp b where a.sal>=b.sal)
[Updated on: Tue, 23 August 2011 08:01] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|