Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be simplified?
Message
 
 
To
02/02/2011 16:51:51
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01498410
Message ID:
01498450
Views:
31
>Can the following be simplified?
>
>
>SELECT CONVERT(CHAR(4),YEAR(AutoAccept.AddDate)) AS lcChampNumero
>
Well, STR(Year(AutoAccept.AddDate),4) should work the same way.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform