Practice Exam

Question 66 of 75

Complete The T-SQL Query To Convert Assessment Scores

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

Column nameData type
student_idInteger
assessment_namevarchar(50)
assessment_scorevarchar(20)

The assessment_score column contains numeric scores like ‘85’, ‘92’, etc., but also contains text values like ‘Incomplete’, ‘N/A’, or ‘Pending’ for students who haven’t completed their assessments.

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

You have the following T-SQL query:

SELECT
    student_id AS studentID,
    __________ AS score
FROM StudentAssessments

How should you complete the query?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about the T-SQL TRY_CAST function:
TRY_CAST Function
Next Question
Discuss this question on social media: