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: help needed with a SQL query

Re: help needed with a SQL query

From: Eric Fortin <emfortin_at_earthlink.net>
Date: Thu, 24 Jan 2002 20:53:15 GMT
Message-ID: <%u_38.10678$ag5.927595@newsread2.prod.itd.earthlink.net>


select title, sum(nvl(video, 0)) VIDEOS, sum(NVL(dvd, 0)) DVDS, sum(nvl(vod, 0)) VODS from bogus group by title
"Sunil Pant" <spant_at_eline.com> wrote in message news:oh_38.220$497.7983_at_sea-read.news.verio.net...
> I've a query that returns the following result set:
>
> title video dvd vod
> monster NULL 50493 NULL
> monster monster 48359 NULL NULL
>
> I want to display the above query as follows:
> title video dvd vod
> monster 48359 50493 NULL
>
> monster
>
> Any ideas would be appreciated.
> Thanks,
> SP
>
>
Received on Thu Jan 24 2002 - 14:53:15 CST

Original text of this message

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