Hello
I have a simple query using A97 whereby I wish to find duplicates. I am accessing third party software that records events.
For example,
Row no, Event Day, Room, Start Time, End Time, Start Wk, End Wk
Row 1 - Monday, 1, 10:00, 11:00, 17/01/03, 17/02/03
Row 2 - Monday, 1, 10:00, 11:45, 17/03/03, 17/04/03
Row 3 - Monday, 1, 09:00, 12:00, 17/01/03, 17/10/03
From these fields I can already identify the duplicates whereby an event is taking place in the same room on the same day.
But..
This is not a true record as Row 1 and Row 2 are identical on Room and Day but you will notice that they fall into different weeks and therefore not a duplicate.
Row 2 and Row 3 would only be duplicates for 1 month out of the 9 in the date range.
My question is how can I identify all possible duplicate events based on the same room, same day, at same time (not neccesarily starting and finished at the same time though) and same weeks (not necesarily the same start and end weeks).
This sounds awfully complicated to me.
Can anyone suggest a solution. I am new to SQL.
Many Thanks.
I have a simple query using A97 whereby I wish to find duplicates. I am accessing third party software that records events.
For example,
Row no, Event Day, Room, Start Time, End Time, Start Wk, End Wk
Row 1 - Monday, 1, 10:00, 11:00, 17/01/03, 17/02/03
Row 2 - Monday, 1, 10:00, 11:45, 17/03/03, 17/04/03
Row 3 - Monday, 1, 09:00, 12:00, 17/01/03, 17/10/03
From these fields I can already identify the duplicates whereby an event is taking place in the same room on the same day.
But..
This is not a true record as Row 1 and Row 2 are identical on Room and Day but you will notice that they fall into different weeks and therefore not a duplicate.
Row 2 and Row 3 would only be duplicates for 1 month out of the 9 in the date range.
My question is how can I identify all possible duplicate events based on the same room, same day, at same time (not neccesarily starting and finished at the same time though) and same weeks (not necesarily the same start and end weeks).
This sounds awfully complicated to me.
Can anyone suggest a solution. I am new to SQL.
Many Thanks.