CREATE VIEW [dbo].[vw_EShopGoodsAttributes]
AS
SELECT        tgd.UId AS Id, ki.Id AS GoodsId, tgd.GoodCode,
 tgl.UId AS GroupAttributeId, CAST(REPLACE(CAST(tgd.Description AS NVarchar(4000)), CHAR(13), '<br>') AS NText) AS Value
FROM            dbo.tbl_GoodDescription AS tgd INNER JOIN
                         dbo.KalaId AS ki ON ki.K_Code = tgd.GoodCode AND ki.Eshop_Flag = 1 INNER JOIN
                         dbo.tbl_Group_Labels AS tgl ON tgd.GroupLabelId = tgl.Id