Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は3つの日付を持っています:
25/10/2012, 01/01/2013, 26/12/2012.
25/10/2012
01/01/2013
26/12/2012
SQL Server 2008 で現在の日付から最も近い日付を見つけるにはどうすればよいですか?
それはあなたが望むものですか
select top 1 * from your_table order by abs(datediff(day, date_column, getdate()))