what does this display?
Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions
Code:
declare @d datetime
set @d = '20071010'
select dateadd(yy, datediff(yy, 0, @d)+1, -1)
Denis The SQL Menace
--------------------
SQL Server Code,Tips and Tricks, Performance Tuning
SQLBlog.com, Google Interview Questions