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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to insert a space after each Manager Starts.

Re: How to insert a space after each Manager Starts.

From: Jeremy <newspostings_at_hazelweb.co.uk>
Date: Mon, 30 Jun 2003 12:12:57 +0100
Message-ID: <MPG.196a29df8f1b6f6d989776@news.cis.dfn.de>


In article <5dc7f532.0306300050.2913b7a2_at_posting.google.com>, navinsm2 @rediffmail.com says...
> hi,
> guys
> i have query which given below output given below
>
> manager personlevel person name
> 2085 1 Howard Wilson1
> 2085 2 Howard Wilson2
> 2085 3 Howard Wilson3
> 2085 4 Howard Wilson4
> 2085 5 Howard Wilson5
> 6086 1 Andrew Saxon
> 6086 2 Andrew Saxon
> 6086 3 Ian Thompson
> 6086 4 Ian Thompson
> 6086 5 Phil Dargan
>
> what i want is after a manager ends i want a null to be inserted for
> each of there columns
> so that i can distinguish that when a new manager starts
>
> so that output looks like this
>
> manager personlevel person name
> 2085 1 Howard Wilson1
> 2085 2 Howard Wilson2
> 2085 3 Howard Wilson3
> 2085 4 Howard Wilson4
> 2085 5 Howard Wilson5
> null null null
> 6086 1 Andrew Saxon
> 6086 2 Andrew Saxon
> 6086 3 Ian Thompson
> 6086 4 Ian Thompson
> 6086 5 Phil Dargan
>
> Brlliant minds any solution for this..
> i know can i loop through the records and do it
> and check for a new manager
> but i want a better solution ..
> give me your ideads folks..
>
> Regards,
> Navin Mahindroo
>

Is this a query running in sqlplus? If so you need to use the BREAK with SKIP directive.

e.g. (from memory)

SQL> break on manager skip 1
SQL> select .......
2
3
4
/

hth

-- 

jeremy
['75 RD250A] | ['02 Fazer 600 in blue] 
Received on Mon Jun 30 2003 - 06:12:57 CDT

Original text of this message

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