Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Differences between Oracle RDBMS and MS SQL Server
In article <90ocpe$rkr$1_at_soap.pipex.net>, n-litchfield_at_auditcommission. gov.uk says...
> max(column) or min(column)?
Using max or min would not work for what I'm doing. The general form of the query (using the top-n syntax) is
select top 1 x from tablename where y = 'some value' order by z
The column being returned (x) is not the same as the one being ordered-by (z). And in some cases multiple column values need to be returned from the desired row, not just one.
-- Tim Kannel TCAP 3.1 - Captures console I/O to a file ftp://ftp.simtel.net/pub/simtelnet/msdos/sysutl/tcap31.zipReceived on Thu Dec 07 2000 - 20:25:11 CST