SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,579 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
in table there are columns for
_year _month _day
i.e
2023 09 01
question,
how can I write the sql like this:
select...where _year_month_day < '2023-8-12'
thank you
Try: where datefromparts(_year, _month, _day) < '2023-8-12'
.