Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to group by two field and get the non grouping field

BikramApr 14 2022

Hi Expert,
I am looking for the below solution
if Combination of lot and reason are more than then i want to take only one records and i have to take first record transaction number .Now we can group by this two field i.e reason and lot and we will get the record but how can i get the non grouping record and the first transaction number.
Below is the input and output data i want.
image.pngo/p
image.pngRegards,
Bikram

This post has been answered by alvinder on Apr 14 2022
Jump to Answer
Comments
Post Details
Added on Apr 14 2022
6 comments
101 views