-- 5.11 SQL code  
-- Display table relationship and its status  
SELECT TOP (50) [RelationshipId]
      ,[FromObjectName] 
      ,[ToObjectName] 
      ,[TypeOfRelationship] 
      ,[SecurityFilteringBehavior] 
      ,[IsActive] 
      ,[RelyOnReferentialIntegrity] 
      ,[CrossFilteringBehavior] 
      ,[CreatedAt] 
      ,[UpdatedAt] 
      ,[DatamartObjectId] 
  FROM [metadata].[relationships]