George Too
Registered User.
- Local time
- Today, 02:03
- Joined
- Aug 12, 2002
- Messages
- 198
I have read a couple of posts that are close to what I need but not exactly.
I have a table that contains press number and roll number. There are 7 presses. Each press might have rolls numbered 1 to 100, but not always, sometimes some numbers are skipped.
Ex.
Press 1 rolls 1, 2, 4, 8, 9, 10, 23..
Press 2 rolls 3, 4, 5, 6, 9, 11, 15, ...
I need to extract only blocks of consecutive numbers for each press.
ex.
Press 1 rolls 1, 2, 8, 9, 10
Press 2 rolls 3, 4, 5, 6
Is this doable? Can a query do this or SQL or do I need code for it?
Thanks,
George Too
I have a table that contains press number and roll number. There are 7 presses. Each press might have rolls numbered 1 to 100, but not always, sometimes some numbers are skipped.
Ex.
Press 1 rolls 1, 2, 4, 8, 9, 10, 23..
Press 2 rolls 3, 4, 5, 6, 9, 11, 15, ...
I need to extract only blocks of consecutive numbers for each press.
ex.
Press 1 rolls 1, 2, 8, 9, 10
Press 2 rolls 3, 4, 5, 6
Is this doable? Can a query do this or SQL or do I need code for it?
Thanks,
George Too