Exam Preparation Quiz

Question 20 of 75

Choose the Correct Join Type

MDFT Academy operates a Fabric warehouse that contains the following data.

Table namePrimary keyForeign key
StudentStudentIDSalesRegion.SalesRegionlD
StudentAddressStudentID, AddressIDStudent.StudentlD, Address.AddressID
AddressAddressIDNone
SalesRegionSalesRegionIDNone

The data has the following characteristics:

You need to create a view to denormalize the data into a Student dimension that contains one row per distinct StudentID value. The solution must minimize query processing time and resources.

You create the following T-SQL statement:

CREATE VIEW DimStudent AS
SELECT
C.StudentID,
C. StudentName,
SR. SalesRegion,
A.Address,
A.PostalCode,
A.City,
A.Country
FROM Student C 
_____________ SalesRegion SR ON C.Sa1esRegionID = SR.SalesRegionID
INNER JOIN StudentAddress CA ON CA.StudentID = C.StudentID
INNER JOIN Address A ON A.AddressID = CA.AddressID

How should you complete the statement?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about SQL Join Types
SQL Join Types
Next Question