Which function should you use?

You develop a Microsoft SQL Server database that contains a table named Employee, defined as follows:

You need to create a view that contains two computed columns representing the month and the year of the [HireDate] of each Employee.
Which function should you use?
A. DATENAME( )
B. CONVERT( )
C. TRYDATEDIFF( )
D. MONTH( ) and YEAR( )

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.