Sorry, newbie here.
Similar to this here: SQL: retrieve only the records whose value has changed
I wanted to find out how to also include the very first row? The rows with the *'s?
ID description eaudittimestamp
-- ----------- -----------------------
777012 above 2017-03-27 10:09:59.330 *
777012 above 2017-03-27 10:09:58.550
777012 below 2017-03-27 10:26:03.560 *
777012 below 2017-03-27 10:36:02.423
777012 below 2017-03-27 10:37:15.250
777012 middle 2017-03-27 10:49:11.680 *
777012 middle 2017-03-27 10:49:18.870
777013 something 2017-03-27 11:49:18.870
777013 something 2017-03-27 12:49:18.870
777014 nodescription 2017-03-27 12:49:18.870
Apologies, I new to this. let me rephrase. I have a table, which has ID, description and timestamp. Similar to an audit table. How do I to find the rows (including the first) where the description has changed.
And how to exclude the ones that only have 1 row? i.e. 777013 and 777014?