There is chequedate denotes the date cheque to be settled and the settled date is the actual settled date.
If a customer is not settled 3 cheques continuously and then he will be a non-performing customer(here processingId). ie,in between two settlement dates if there is 3 cheque dates he will be non-performer
How can I do this using an cte.I am using sql 2005.Pls help me.