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.
chapm4 Yak Posting Veteran
58 Posts
--Rolling 12 Month RIRDECLARE @y dateDECLARE @d dateSET @y = DATEADD(m, -12, CURRENT_TIMESTAMP)SET @d = CAST(GETDATE() AS date) SELECT (COUNT(*) * 200000) / 942084.0 AS R12RIRFROM tbl_HAW_HealthAndSafety_LRIWHERE Convert(date, EventDate) BETWEEN @y AND @dGO
SwePeso Patron Saint of Lost Yaks
30421 Posts
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site