View presenting object types with translated names, states, and descriptions.
Definition
CREATE VIEW
[mr].[Object_Type] AS
SELECT
[ot].[Object_Type_Id],
[ot].[Enum_Key] [Object_Type_Key],
[t].[Translation] [Object_Type],
[ta].[Translation] [State],
[td].[Translation] [Description]
FROM
[dbo].[C_Object_Type] [ot]
LEFT JOIN [dbo].[C_Object_State] [os] ON [os].[State_Id] = [ot].[State_Id]
LEFT JOIN [fw].[Translation] [t] ON [t].[Translation_key] = [ot].[Name_Key]
LEFT JOIN [fw].[Translation] [ta] ON [ta].[Translation_key] = [os].[Name_Key]
LEFT JOIN [fw].[Translation] [td] ON [td].[Translation_key] = [ot].[Description_Key]
Columns