Following is my query which I am using in snapshot filter replication
SELECT
*
FROM
[dbo].[PosMast]
WHERE
Shop = (SELECT shop FROM Config)
AND transactiondate >= (SELECT closingdate
FROM StockRoom
WHERE Code = (SELECT shop FROM Config ))
AND TransactionDate >= (SELECT dateFrom FROM DataInf)
AND TransactionDate <= (SELECT Dateto FROM DataInf)
The problem is that it duplicates data on subscriber If I don't use the IN
statement.