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: SQL Query OutPut

RE: SQL Query OutPut

From: Cale, Rick T (Richard) <RICHARD.T.CALE_at_saic.com>
Date: Thu, 15 Nov 2001 04:23:43 -0800
Message-ID: <F001.003C5B20.20011115041021@fatcity.com>

In sqlplus

BREAK ON deptno skip 1
SELECT deptno,empno
FROM your_table
ORDER BY deptno,empno;

You may want to set pagesize,spool etc.

Rick

-----Original Message-----
Sent: Thursday, November 15, 2001 5:05 AM To: Multiple recipients of list ORACLE-L

Hi,

I need the Query for the following result. If any body help it will be very great. Its very urgent.

the output needed is

DeptNo                    EmpNo

10                                1
                                    2
                                    3
                                    4
                                    5
20                                11
                                    12
                                    13
                                    

The DeptNo should not repeat for all the employees. Thanks in advance

Regards

Pruthvi



Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Pruthvi
  INET: svrjpabss_2000_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Cale, Rick T (Richard)
  INET: RICHARD.T.CALE_at_saic.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Nov 15 2001 - 06:23:43 CST

Original text of this message

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