Microsoft
70-433 · Question #82
70-433 Question #82: Real Exam Question with Answer & Explanation
Sign in or unlock 70-433 to reveal the answer and full explanation for question #82. The question stem and answer options stay visible for context.
Question
You create and populate a table named SiteNavigation by using the following statements: CREATE TABLE SiteNavigation ( SiteNavigationId INT PRIMARY KEY, Linktext VARCHAR(10), LinkUrl VARCHAR(40), ParentSiteNavigationId INT NULL REFERENCES SiteNavigation(SiteNavigationId) ) You are tasked to write a query to list all site references that are more than two levels from the root node. The query should produce the following results: LinkText LinkUrl DistanceFromRoot You have written the following query: WITH DisplayHierarchy AS (SELECT LinkText, LinkUrl, SiteNavigationId, ParentSiteNavigationId, 0 AS DistanceFromRoot FROM SiteNavigation WHERE ParentSiteNavigationId IS NULL UNION ALL SELECT SiteNavigation.LinkText, SiteNavigation.LinkUrl, SiteNavigation.SiteNavigationId, SiteNavigation.ParentSiteNavigationId, dh.DistanceFromRoot + 1 AS DistanceFromRoot FROM SiteNavigation INNER JOIN DisplayHierarchy dh ON SiteNavigation.ParentSiteNavigationId = dh.SiteNavigationId) SELECT LinkText, LinkUrl, DistanceFromRoot FROM DisplayHierarchy You need to append a WHERE clause to the query. Which clause should you use?
Options
- AWHERE DistanceFromRoot =2
- BWHERE DistanceFromRoot < 2
- CWHERE DistanceFromRoot >= 2
- DWHERE DistanceFromRoot IN (2,3)
Unlock 70-433 to see the answer
You've previewed enough free 70-433 questions. Unlock 70-433 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.