Created
April 9, 2016 15:15
-
-
Save imrexhuang/fb35e94c2e2b25a99cdee6a10b69cd79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE AdventureWorks2014 | |
SELECT CONVERT(char(7), OrderDate,21) AS 訂單月份, | |
CONVERT(char(10), OrderDate, 21) AS 訂單日期,* | |
FROM Sales.SalesOrderHeader | |
ORDER BY OrderDate DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment