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: GROUP BY and ..not a group by expression

Re: GROUP BY and ..not a group by expression

From: <send2r_at_gmail.com>
Date: Fri, 05 Oct 2007 07:35:39 -0700
Message-ID: <1191594939.124730.293310@r29g2000hsg.googlegroups.com>

> select id, name, testdate, marks
> from students
> where (id, marks) in
> (SELECT ID, MAX(MARKS)
> FROM STUDENTS
> GROUP BY ID);
Wouldn't this return results from other dates too? though all we are looking for is Max(marks) immaterial of date? Received on Fri Oct 05 2007 - 09:35:39 CDT

Original text of this message

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