Practice Exam

Question 67 of 75

Complete The T-SQL Query To Format a Date

You are working with a Microsoft Fabric warehouse at MDFT Pro that contains a table named Enrollments. The table contains the following columns:

Column nameData type
course_idInteger
course_namevarchar(50)
enrollment_dateDatetime

You need to complete a T-SQL statement that meets these requirements:

You have the following T-SQL query:

SELECT 
    course_id AS courseID,
    __________ AS EnrollmentDate
FROM Enrollments

How should you complete the query?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about date and time styles for the T-SQL CONVERT function:
CONVERT DateTime Styles
Next Question
Discuss this question on social media: