tcurrier Intermediate
Joined: 10 Feb 2006 Posts: 188 Topics: 68
|
Posted: Wed Apr 30, 2008 5:16 pm Post subject: Select 5 Rows meeting each condition |
|
|
I had a similar question recently regarding sampling 5 records from a flat sequential file, but now I need to do it with a DB2 query :
Code: | Select name,
address,
zip_code
from mydatabase_mytable
where zip_code in ('11111','22222','33333') |
but I only want 5 of each zip code specified...
Thanks for any help.... |
|