Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to do the SELECT?
Good evening Violin.
I think this query helps you.
SELECT t.Ord_No, t.Pay_Rate, t.Qty, t.Price FROM Your_Table t,
(SELECT Ord_No, SUM(Pay_Rate) AS Sump, Qty, Price FROM Your_Table GROUP BY Ord_No, Qty, Price) gr WHERE gr.Ord_No = t.Ord_No AND gr.Sump=100
![]() |
![]() |