Joined: 13 Jun 2011
Online Status: Offline
Posts: 2
Topic: Query is returning row but report is blank Posted: 14 Jun 2011 at 12:53am
Hi,
I have the following query in "Show SQL query"
SELECT "ITT1_1"."Code", "ITT1"."ChildNum", "ITT1"."Code", "OITW"."WhsCode", "OITW"."AvgPrice", "ITM1"."PriceList", "OITM"."ItemName"
FROM ((("SBK_IL_ACC"."dbo"."ITT1" "ITT1_1" INNER JOIN "SBK_IL_ACC"."dbo"."ITT1" "ITT1" ON "ITT1_1"."Father"="ITT1"."Father") INNER JOIN "SBK_IL_ACC"."dbo"."OITM" "OITM" ON "ITT1_1"."Father"="OITM"."ItemCode") INNER JOIN "SBK_IL_ACC"."dbo"."ITM1" "ITM1" ON "ITT1_1"."Father"="ITM1"."ItemCode") INNER JOIN "SBK_IL_ACC"."dbo"."OITW" "OITW" ON "ITT1"."Code"="OITW"."ItemCode"
WHERE "ITT1_1"."Code"=N'500005' AND "ITT1"."Code"N'500005' AND "OITW"."AvgPrice"0 AND "OITW"."WhsCode" LIKE N'HO%%%%' AND "ITM1"."PriceList"=1 AND "ITT1"."ChildNum"=1
Joined: 13 Jun 2011
Online Status: Offline
Posts: 2
Posted: 14 Jun 2011 at 7:25pm
Ya, it returns rows, anyway I got that solved by changing the % sign to * in where condition, but now my problem is: O/P in report:
Pack_Size Packing_Tin_Cost Packing_Box_Cost
5 LTR 1000 0
5 LTR 0 100
4LTR 800 0
4LTR 0 80
1LTR 600 0
1LTR 0 60
Even if I give the suppress condition as Packing_Tin_Cost + Packing_Box_Cost =0, all the rows will be returned as one of them is zero in alternate rows.
And my required O/P:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum