Search Postgresql Archives

Re: how to select second heigest salary...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



am  06.04.2006, um 10:19:21 +0530 mailte deepak pal folgendes:
> hi
>       how to select second heigest salary from employee  table field are
> id,name ,salary...plz help

*untested*

select id, name, salary from employee order by salary desc limit 1 offset 1;

http://www.postgresql.org/docs/current/static/sql-select.html#SQL-LIMIT


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux