Discussion:
Selecting record by day
(too old to reply)
-
2008-01-07 22:58:02 UTC
Permalink
My table has a datetime column that says when each record was added. How can I
write a SELECT that gives the last record that was added each day?
Dejan Sarka
2008-01-09 07:01:38 UTC
Permalink
Post by -
My table has a datetime column that says when each record was added. How
can I write a SELECT that gives the last record that was added each day?
Without create table dll, inserts for sample data and desired result it is
hard to give you a quesry that would work for sure. I suggest you to check
if you can get some idea from here:
http://sqlserver2000.databases.aspfaq.com/why-should-i-consider-using-an-auxiliary-calendar-table.html.
--
Dejan Sarka
http://blogs.solidq.com/EN/dsarka/default.aspx
Loading...