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

Home -> Community -> Usenet -> c.d.o.misc -> Re: aggregate function to get 'any' value

Re: aggregate function to get 'any' value

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Thu, 19 Jun 2003 14:45:16 +0100
Message-ID: <3ef1be6e$0$10627$ed9e5944@reading.news.pipex.net>


"Caspar von Seckendorff" <seckendorff_at_alphatec.de> wrote in message news:bcq8te$rm5$1_at_innferno.news.tiscali.de...
> However, if for some reason there are multiple company names for the same
> company_id, this would be a problem, because logically it should only be
> grouped by company_id.
>
> In this case I just want to get ANY company name. One way to achieve this
> would be:

I'd suggest that you might not want to return company name at all, since in the situation you describe its meaningless.

-- 
Niall Litchfield
Oracle DBA
Audit Commission UK
Received on Thu Jun 19 2003 - 08:45:16 CDT

Original text of this message

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