Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL to retrieve min value of the combination
Turkbear wrote:
> "Mark C. Stock" <mcstockX_at_Xenquery .com> wrote: > >
> > Yep.. > ( The results from my query are, in fact, the MIns for both b and c for each a, but not the row that has the min c value - > because it does not have the min b) > I'm not sure if it is a typo, but if not, then the logic is a little strange: > Get the minimum b and minimum c when a = 1001 but Max(b),Min(c) when 1002???? > I assumed ( yes, I know) then the OP only cared about the values not the rows the values were in.
How can you guys be proposing solutions when the OP never defined the problem? Reminds me of the Dilbert cartoon where the boss says start coding while I go get the requirements.
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Thu Jan 08 2004 - 09:47:51 CST