Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Basic SQL question I think

Re: Basic SQL question I think

From: me <m1ke0_at_yahoo.com>
Date: Thu, 18 Jan 2001 06:40:59 -0800 (PST)
Message-Id: <10745.126990@fatcity.com>


here's the standard top three query from some book, i don't remember which one though:

SELECT (SAL * (-1))
              ,EMPNO
FROM
 ( SELECT (SAL * (-1)) SAL

                   ,EMPNO

    FROM EMP
   GROUP BY (SAL * (-1))
                   ,EMPNO)

WHERE ROWNUM < 4;
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. Received on Thu Jan 18 2001 - 08:40:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US