Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Convert year month day in 3 columns to single date in SQL

$
0
0

I have a table that is storing the year month and day in three separate columns. It uses smallint. I need to be able to do a select statement in a stored procedure that pulls the most recent date. Problem is I can't seem to convert it properly in one select statement and be able to accurately pull in the most recent date. 


Viewing all articles
Browse latest Browse all 4871

Trending Articles