QuestionQ1
Design and develop database solutionsYou have an Azure SQL database containing these SQL graph tables:
- A NODE table named
dbo.Person - An EDGE table named
dbo.Knows
Each row in dbo.Person contains these columns:
PersonID(int)DisplayName(nvarchar(100))
You need to use a MATCH operator with exactly two directed Knows relationships to return the PersonID and DisplayName of people reachable from the person identified by an input parameter named @StartPersonId.
Which Transact-SQL query should you use?
Community Discussion