Hi Everyone,
When I am running the below code I am getting syntax error pointing at “with”, Any suggestions.
I am using SQL Server 2005.
Thanks in advance!!
When I am running the below code I am getting syntax error pointing at “with”, Any suggestions.
Code:
with pdninfo(transactionid, employeenbr) as
(SELECT
pdn.transactionid,
pdn.employeenbr
FROM [xyz].[dbo].[PDNMain] pdn)
SELECT transactionid, employeenbr
FROM pdninfo
I am using SQL Server 2005.
Thanks in advance!!