Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Problem on DATEDIFF statement

$
0
0
I'm trying to use a DATEDIFF statement so I only see data from the last 7
days

How would I write that if I don't have a time stamp in a table to
reference?

If I could reference something I know I could do

Where
DATEDIFF (dd, example.tabletime, getdate ()) < 7

I need to do it
without referencing a value in a table and not sure how

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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