I’ve got a table with an auto-increment number field As “No”, a date/time stamp As “Entry_Date”, and X, Y, Z fields. Every few minutes, My program inserts a new row with the current date/time.
I need a query that will give the first row entered for each day for the past 365 days (or whatever value I want to use). Please help…
I’d use ROW_NUMBER and partition by date. Nice and simple: (Note this is 2008, for use of DATE)