Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: extracting a sample of each condition
"jobs" <jobs_at_webdos.com> a écrit dans le message de news: 1185328395.235116.113380_at_w3g2000hsg.googlegroups.com...
| Hello.
|
| Say i have a table that looks like this:
|
| name date plan type1 type2 type3 amount
|
| it's unique by name
|
| I'd like the first record of every of every combination of
|
| plan type1 type2 type3
|
| Can somebody help with the SQL for that?
|
| Thanks for any help or information.
|
Have a look at row_number/rank/dense_rank functions. First_value one may also help.
Regards
Michel Cadot
Received on Tue Jul 24 2007 - 23:06:46 CDT
![]() |
![]() |