I need a SQL query using select
statement that excludes duplicate rows that has the same Start_Time
, End_Time
, and ReasonCode
EventID Start_Time End_Time ReasonCode
122 1/3/2015 0:27 1/3/2015 1:32 No Trouble Found
123 1/3/2015 0:27 1/3/2015 1:32 No Trouble Found
124 1/3/2015 0:27 1/3/2015 1:32 No Trouble Found
125 1/31/2015 14:35 1/31/2015 14:56 LinkupDown
The resulting output would look like:
EventID Start_Time End_Time ReasonCode
122 1/3/2015 0:27 1/3/2015 1:32 No Trouble Found
125 1/31/2015 14:35 1/31/2015 14:56 LinkupDown
Thanks for the help guys.