Hi
I have a problem with SQL query. I want to display the first record and the number of times a value is duplicated before the next uniqu record. An example of input data
date field value other fields.....
---------------------------------------
01:00 1234
01:01 1234
01:02 1234
01:03 654
01:04 321
01:05 321
01:06 1234
The results I would like to display:
Date field Value Count of records
(first time value occurs)
----------------------------------------
01:00 1234 3
01:03 654 1
01:04 321 2
01:06 1234 1
Not that I don't want a count of e.g. 1234 over all record set but counts as the values change
Thank-you in advance for help in SQL.
Our community of experts have been thoroughly vetted for their expertise and industry experience.