(CASE dbo.LG_615_01_STLINE.TRCODE WHEN 3 THEN (VATMATRAH / (CASE dbo.LG_615_01_STLINE.REPORTRATE WHEN 0 THEN 1 ELSE dbo.LG_615_01_STLINE.REPORTRATE
END)) ELSE ' ' END) AS Expr1, dbo.LG_615_ITEMS.NAME3,
(CASE dbo.LG_615_01_STLINE.TRCODE WHEN 8 THEN (CASE dbo.LG_615_01_STLINE.REPORTRATE WHEN 0 THEN 0 ELSE (VATMATRAH / dbo.LG_615_01_STLINE.REPORTRATE)
END) WHEN 36 THEN (CASE dbo.LG_615_01_STLINE.REPORTRATE WHEN 0 THEN 0 ELSE (VATMATRAH / dbo.LG_615_01_STLINE.REPORTRATE) END) ELSE ' ' END)
AS DGELIRTUTAR,
CASE WHEN
dbo.LG_615_01_STLINE.REPORTRATE <> 0 THEN ((dbo.LG_615_01_STLINE.PRICE / dbo.LG_615_01_STLINE.REPORTRATE) * dbo.LG_615_01_STLINE.AMOUNT)
ELSE 0 END AS RDTUTARI, CASE WHEN dbo.LG_615_01_STLINE.REPORTRATE <> 0 THEN (dbo.LG_615_01_STLINE.LINENET / dbo.LG_615_01_STLINE.REPORTRATE)
ELSE 0 END AS [RD_NET_TUTARI]
Sorguya ekli eklentiyi ileva edince oldu sanırım.