Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hello,Maybe someone can help me out...I need to return the total orders from the past 24 hours, grouped by the hour. So if it's 11 am, I would want to return the orders from the previous date starting at 11 am till today's date ending at 11 am.I basically have an orders table that records the datetime the order was placed on.tbl_Orders----------Order_IDOrder_TotalOrder_DateWould somebody be kind enough to help me out?Thanks,Jose
josethegeek
Starting Member
45 Posts
Posted - 2004-08-18 : 14:45:32
Thanks,But I figured it out myself. Ill just do a dateadd and subtract 24 hours from now. Thanks