Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql last 7 days

 SELECT id, NewsHeadline as news_headline, NewsText as news_text, state CreatedDate as created_on
 FROM News 
 WHERE CreatedDate >= DATEADD(day,-7, GETDATE())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #days
ADD COMMENT
Topic
Name
6+7 =