Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL for aggregate group by
Hi Robert,
I would try to use a inline view like this:
SELECT tn.item, tn.time, tn.qty
FROM table_name tn
, ( SELECT item, max(qty) maxqty FROM table_name GROUP BY item) vWHERE tn.item = v.item
I didn't test it, but it should be working in a similar way. Let me know if not, then I can check it by a real table.
Reinhard
![]() |
![]() |