In this situation I have two tables joined together
Tables are: dpr
and set1
I have this code:
SELECT distinct s.s1T, s.s1W, s.s1L, s.s1Reject, s.s1Quantity, s.s1Volume
FROM set1 s left join dpr d ON s.DPno = d.ProdNo
Where s.DPno = '20150205'
AND s.s1T = d.Thickness
AND s.s1W = d.Width
AND s.s1L = d.Length;
this is the result of this query in my Cyrstal Report
example: I just want to display the Quantity and Volume in set1
Quantity Volume
----------------------
23 54
0 0
23 54
0 0
In this case my record is duplicating.. How can i Resolve this?
I tried this code for suppress if duplicated "{set2.Quantity}) = previous({set2.Quantity})" but its not working!
I am expecting only this result:
Quantity Volume
----------------------
23 54
0 0