Hi there.
I have a table with the following record structure:
ID TheGroup TheValue TheSubGroup
430093 47 MARQUEZ 1
430094 47 RAFAEL 1
430095 47 MIAMI 1
430096 47 FL 1
430097 47 33172 1
430113 47 MOORE 2
430114 47 ROSA 2
430095 47 NAPLES 2
430096 47 FL 2
430097 47 32019 2
.....
..... and so on
and I would like to get a subset of records looking like this:
1 MARQUEZ RAFAEL MIAMI FL 33172
2 MOORE ROSA NAPLES FL 32019
.....
..... etc.
I do not know the number of rows that contains one 'blocks of records'
but I can limit it to a number lesser than 10 or 5 for that matter.
I am using MS SQL, but I expect it (I hope) to make it work in Oracle or DB2 also
Help will be much appreciated...
Thanks
I have a table with the following record structure:
ID TheGroup TheValue TheSubGroup
430093 47 MARQUEZ 1
430094 47 RAFAEL 1
430095 47 MIAMI 1
430096 47 FL 1
430097 47 33172 1
430113 47 MOORE 2
430114 47 ROSA 2
430095 47 NAPLES 2
430096 47 FL 2
430097 47 32019 2
.....
..... and so on
and I would like to get a subset of records looking like this:
1 MARQUEZ RAFAEL MIAMI FL 33172
2 MOORE ROSA NAPLES FL 32019
.....
..... etc.
I do not know the number of rows that contains one 'blocks of records'
but I can limit it to a number lesser than 10 or 5 for that matter.
I am using MS SQL, but I expect it (I hope) to make it work in Oracle or DB2 also
Help will be much appreciated...
Thanks