Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Consecutive Absent Days Query.. Pls Help Gurus

suzvinoMay 31 2010 — edited Jun 22 2010
I have a table which stores attendance information

For eg:

Emp_No Date
100 01-APR-2010
102 05-APR-2010
100 02-APR-2010


I need a query with parameter From Date and To date..


My Query Output should be like this .. considering that employee 100 is absent for 8 consecutive days and employee number 102 is absent for 2 consecutive days..
It should return number of consecutive days he is absent.

Empno Consecutive Days
100 8 Days
102 2 Days


Pls Help Gurus.

Edited by: suzvino on Jun 21, 2010 12:14 AM
This post has been answered by Tubby on May 31 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2010
Added on May 31 2010
13 comments
2,773 views