Create VIEW [dbo].[vw_EShopGroupAttributes]
AS
SELECT        tgl.UId AS Id, tgl.Caption AS Title, g.Id AS GroupId, tgl.Id AS sortId
FROM            dbo.tbl_Group_Labels AS tgl INNER JOIN
                         dbo.Group1 AS g ON g.Gid = tgl.GroupCode
