Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL report to look back on data as now to 100 days previous

$
0
0

Hi Guys,

I'm working on a report in SQL report builder that will produce data from data produced once a month. I want to put a clause in it to look at the past 3 months data (so approx the last 90-100 days assuming the data isn't produced on exactly the same day every month). I'm really stuck as to how to put a "NOW/today" - 100 days clause in the stored procedure.

Can anyone advise on having done something similar. I'm still on a learning curve with SQL but am quite stumped on this one!

Cheers

Rachel


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>