June 24, 2007 at 9:25 am
Hello,
I have a table containing large data, and one of the fields is a date field. Every minute there are hundreds of rows in the table.
I want to query only data that was inserted last every, lets say, 10 minutes, meaning: query one row per period of 10 minutes.
How do I group by a period of time, so that I can get the max(date) for each 10 minutes? Can it be done using simple SQL query (since I need for it to work on both Oracle and SQL Server DB) or do I have to use a TSQL/PLSQL function?
Thanks.
Nili.
June 24, 2007 at 10:18 am
CROSS POST... see the following
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=338&messageid=376138&post=true
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply