Hi,
I need to compare record using sql ce
I have this data, can be thousand rows
ID Type Date Time
02-0009 I 01/02/2014 8:00
02-0009 O 01/02/2014 18:00
02-0009 O 01/03/2014 18:00
02-0009 I 01/04/2014 8:00
02-0009 O 01/04/2014 18:00
For every date there should be a 'I' and 'O' type
If last Type for a date, for example 01/02/2014 is 'O', the Type for the next date should be 'I' and vice versa
The situation in dates 01/02/2014 with type 'O' and 01/03/2014 with type 'O' is invalid
The invalid record could be with type 'I' or 'O'
I need to query it to show this invalid record
please help, there really lots of limits in sql ce
thanks in advance