select EMPID ,Forminfoid,FormName ,count(*) as dcount
from tbl_FilesMigrationLogs
group by EMPID,Forminfoid,FormName
HAving COUNT(*) >1
)
delete from cte where dcount >1
Cannot update the view or function 'cte' because it contains aggregates, or a DISTINCT or GROUP BY clause, or PIVOT or UNPIVOT operator.
solution
No comments:
Post a Comment