In this challenge, you will write several Transact-SQL (T-SQL) queries by using date and time functions. First, you will launch Microsoft SQL Server Management Studio (SSMS), and then you will develop queries that return the current system date and time. Next, you will develop more specific queries that will use the FORMAT function for formatting date and time data. Finally, you will explore queries that use the DATEDIFF and DATEADD functions for performing calculations on date and time data. Note: Once you begin a challenge you will not be able to pause, save, or return to your progress. Please ensure you have set aside enough time to complete the challenge before you start.
Learning Objectives
In this challenge, you will write several Transact-SQL (T-SQL) queries by using date and time functions. First, you will launch Microsoft SQL Server Management Studio (SSMS), and then you will develop queries that return the current system date and time. Next, you will develop more specific queries that will use the FORMAT function for formatting date and time data. Finally, you will explore queries that use the DATEDIFF and DATEADD functions for performing calculations on date and time data. Note: Once you begin a challenge you will not be able to pause, save, or return to your progress. Please ensure you have set aside enough time to complete the challenge before you start.