|
That's always going to happen with something
like a rank (or min/max). You'll need to add some additional criteria to
tell Oracle which of the multiple records that you want to see returned.
And that will depend on the business needs. For example, you might want
the earlier date, so you could make the top line
select a.item, a.location, min(a.trans_date),
b.can_vta
and add the appropriate group
by. Or you may want the latest date - only you can decide
that.
HTH,
Carol Bristow
DPRA Inc.
1300 N 17th St Suite 950
Rosslyn, VA 22209
Work: 703-841-8025
Fax: 703-524-9415 -----Original Message-----
From: Teresita Castro [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:50 PM To: Multiple recipients of list ORACLE-L Subject: RE: How to put a TOP 1 in a select
|
Title: Message
- Re: How to put a TOP 1 in a select Daniel W. Fink
- Re: How to put a TOP 1 in a select Mark Richard
- Re: How to put a TOP 1 in a select Daniel W. Fink
- Re: How to put a TOP 1 in a select Teresita Castro
- RE: How to put a TOP 1 in a select Regis Biassala
- RE: How to put a TOP 1 in a select Chelur, Jayadas {PBSG}
- RE: How to put a TOP 1 in a select Mark Richard
- RE: How to put a TOP 1 in a select Teresita Castro
- RE: How to put a TOP 1 in a select Mark Richard
- RE: How to put a TOP 1 in a select Teresita Castro
- RE: How to put a TOP 1 in a select Carol Bristow
- RE: How to put a TOP 1 in a select Mark Richard
- RE: How to put a TOP 1 in a select Teresita Castro
