SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- Hint: use Ctrl+Enter for SQL autocomplete SELECT FORMAT(dateadd(month, -1, getdate()), 'yyyy-MM-dd') as current_previousmonth, FORMAT(dateadd(month, -1, getdate()), 'yyyy-MM-01') as first_previousmonth;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear