good day
I am wrote a script where I joined my new table Transfer Excise to Value Entry table the Transfer excise table contains data from the Location , excise rate , item tables. I then joined it to the value entry like this: I need the same amount of rows when I add the filters in NAV. however I do not get the same amount of rows , if I do the filters in SQL
![]()
USE SPIERLIVE;
GO
SELECT DISTINCT a.[Starting Date],
b.[Posting Date],
b.[Item No_],
b.[Invoiced Quantity],
a.[Litre Conversion Factor],
a.[Unit Rate] ,
a.[Location Code],
a.[Excise Location],
a.[Excise Type Code],
a.[Unit Of Measure Code]
FROM [Transfer Excise Tbl] a LEFT JOIN [Spier Live$Value Entry] b
ON a.[No_] = b.[Item No_]
WHERE b.[Item No_] = 'F00335'
AND b.[Posting Date] > '2014-01-01'
AND b.[Location Code] = a.[Location Code]
AND b.[Gen_ Bus_ Posting Group] IN ('LOCA','EXSA')
--AND b.[Posting Date] >= a.[Starting Date]
*This post is locked for comments
I have the same question (0)