Answers for "select last 30 days sql"

SQL
0

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())
Posted by: Guest on March-21-2020
0

select last 30 days sql

--EXAMPLE -30 days
select o_orderkey, o_orderstatus, o_orderdate, o_totalprice from orders where o_orderdate >= current_date -30
Posted by: Guest on October-18-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language