Skip to Main Content

Oracle Database Discussions

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!

how many consecutive numbers in a data set sql

HI All,
I need a query to find out how many consecutive numbers at a time.
for example
image.pngfrom below there are 3 p consecutive then W then again start P , Here number of P's is 4 so it will return 4 means highest number of consecutive number will return.
Can anybody helps me in this regards.
Table name is attendance_details

Comments
Post Details
Added on Oct 8 2022
5 comments
841 views