Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> sql or plsql format output
Hi Team,
Can some one help me in producing the below output format.
table emp:
myno myname unitcount unit unitcode 1 xyz 4 100 12345
all the fomrat should be presented like:
if the unitcount >0
then
do a unitcount-1 (now unitcount=3)
then that many times the 4th and 5th cols should be printed.
shold be like this:
myno myname unitcount unit unitcode 1 xyz 3 100 12345 100 12345 100 12345
i tried a lot with plsql. tried to use shell commands to generate the output into 2 files and tried to do a paste but lot of inconsistency.
Could someone help me ?
Thanks in advance,
Raj
![]() |
![]() |