Selecting parts of the system's date and time
In this exercise, you will retrieve only parts of the system's date and time, focusing on only the date or only the time.
You will use the same date and time functions, but you will use CAST() and CONVERT() to transform the results to a different data type.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Functions for Manipulating Data in SQL Server
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
SELECT
___(VARCHAR(24), ___, 107) AS HighPrecision,
___(VARCHAR(24), ___, 102) AS LowPrecision;