Identifying Absent Dates

1.Cloumn EMPNR is Employee ID
2.Column BUDAT is Posting Date
3.column ATDCD is Attendence Codes and M indicates Absent
If a specific employee is absent for three consecutive days or more, those line items will be recorded in Table B. if one of the day mimming inBUdat also we have continue the flow please suggest linq Query.


So now can you tell what you need if bot is already doing all of it