Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -215,10 +215,10 @@ SELECT TOP (1)
|
||||
ISNULL(h.CurrAccCode, ''),
|
||||
ISNULL(LTRIM(RTRIM(f.CustomerAtt01)), '') AS MarketCode,
|
||||
ISNULL(py.AttributeDescription, '') AS MarketTitle
|
||||
FROM BAGGI_V3.dbo.trOrderHeader h WITH (NOLOCK)
|
||||
LEFT JOIN BAGGI_V3.dbo.CustomerAttributesFilter f WITH (NOLOCK)
|
||||
FROM BAGGI_V3.dbo.trOrderHeader h
|
||||
LEFT JOIN BAGGI_V3.dbo.CustomerAttributesFilter f
|
||||
ON f.CurrAccCode = h.CurrAccCode
|
||||
LEFT JOIN BAGGI_V3.dbo.cdCurrAccAttributeDesc py WITH (NOLOCK)
|
||||
LEFT JOIN BAGGI_V3.dbo.cdCurrAccAttributeDesc py
|
||||
ON py.CurrAccTypeCode = h.CurrAccTypeCode
|
||||
AND py.AttributeTypeCode = 1
|
||||
AND py.AttributeCode = f.CustomerAtt01
|
||||
|
||||
Reference in New Issue
Block a user