Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Re: SQL Show GP's and Price list and if exist the special price with reference to ItemCode

$
0
0

Hi  Peter Eschweg

 

Try This

 

 

SELECT T0.[CardCode], T0.[CardName], T3.[ItemCode], T2.[ItemName], T1.[Price], T3.[Price] as Sonderpreis, T3.[Discount]

FROM OSPP T3

left outer JOIN OCRD T0 ON T0.CardCode=T3.CardCode

INNER JOIN OITM T2 ON T3.ItemCode = T2.ItemCode

LEFT JOIN ITM1 T1 ON T2.ItemCode = T1.ItemCode AND T1.[PriceList] = 1

WHERE T3.ItemCode = [%0]

 

Regards

Kennedy


Viewing all articles
Browse latest Browse all 8635

Trending Articles