r/SQL • • May 03 '22

MS SQL Reoccurring query, no hard coding, MS SQL

I am looking for a WHERE clause to set a reoccurring query to be run for the past 2 weeks. No hard coding can be used. Anyone have any ideas?

Have tried “>= getdate() -14 “ and that’s not pulling how I want. Any suggestions help.

1 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/DavidGJohnston May 03 '22

The real problem lies in saying "how I want" but then failing to articulate what exactly it is that is wanted. Ideally with input and output data along with words.