0
Answer

Query chANGE

sumit gugnani

sumit gugnani

8y
325
1
  i have a StoredProcedure   and now i convert it to linq entity how to create this
 
INSERT INTO @checkDuplicateTable (Control_No)
SELECT r.[Control]
FROM @TableVar r INNER JOIN
(SELECT [Email Address],[OUT DATE]
FROM @TableVar
GROUP BY [Email Address],[OUT DATE]
HAVING count([Email Address])>1) a
ON r.[Email Address]=a.[Email Address] AND r.[OUT DATE]=a.[OUT DATE]