| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help with a select statement
If my assumption is right, try this
SELECT location,max(status) FROM tickets WHERE location IN ('NY','NJ') GROUP BY location
(Not tested)
This will return two rows, one for each location.
"L.Ray" <l.ray_at_bigfoot.com> wrote in message
news:c198b469.0303302159.48f1d7dc_at_posting.google.com...
> I need to do the following, but dont know how:
>
> select (select max(status) from tickets where location = 'NY'),
> (select max(status) from tickets where location = 'NJ')
> FROM tickets;
>
> If anyone could shine some light on how to do this, it would be
appreciated.
Received on Mon Mar 31 2003 - 01:18:06 CST
![]() |
![]() |