View combining attribute values with their parent objects and attribute types.
Definition
CREATE VIEW
[mr].[Object_Attribute] AS
SELECT
[Attribute_Id],
[a].[Attribute_Type_Id],
[att].[Enum_Key],
[a].[Start_Version_Id],
[a].[End_Version_Id],
[a].[Text_Value] [Attribute_Value],
[a].[Object_Id],
[o].[Name] [Object_Name],
[ot].[Enum_Key] [Object_Type]
FROM
[dbo].[MR_Attribute] [a]
INNER JOIN [dbo].[C_Attribute_Type] [att] ON [att].[Attribute_Type_Id] = [a].[Attribute_Type_Id]
INNER JOIN [dbo].[MR_Object] [o] ON [o].[Object_Id] = [a].[Object_Id]
INNER JOIN [dbo].[C_Object_Type] [ot] ON [ot].[Object_Type_Id] = [o].[Object_Type_Id]
Columns