I want to fetch records from SQL but condition is that if Previous records is same as current records then its should skip current records but after some records records repeat in data it should be taken only once time if same condition occurs current records same as previous its should skip that records
Please check below image https://i.stack.imgur.com/r9eR3.jpg