467,915 Members | 1,314 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

How to find consecutive records in database

Hello every one,

I Have table e.g

EmpID TDate Status
***************************************
1 01-01-08 AB
1 02-01-08 AB
1 03-01-08 AB
1 04-01-08 PR

2 01-01-08 PR
2 02-01-08 AB
2 03-01-08 AB
2 04-01-08 PR

*****************************************
I want to show those employees who are with status 'AB' in consecutive 3days.


Regards

Muhammad Abu Bakar
Jan 1 '09 #1
  • viewed: 2841
Share:
1 Reply
ck9663
Expert 2GB
filter your table using WHERE clause.

use ORDER BY to sort your rows.


-- CK
Jan 2 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Dennis Ruppert | last post: by
17 posts views Thread by Justin Emlay | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.