WITH a as ( SELECT PeriodId ,StationId ,WeekDay ,WeekCycle ,ProductId ,AssignedDate ,MenuId ,ROW_NUMBER() OVER(PARTITION by PeriodId ,StationId ,WeekDay ,WeekCycle ,ProductId ,AssignedDate ,MenuId ORDER BY PrimawebMenuId desc ) AS duplicateRecCount FROM MenuProducts ) --Deleting Duplicate Records DELETE FROM a WHERE duplicateRecCount > 1
Wednesday
delete all duplicates in TSQL but one
Subscribe to:
Post Comments (Atom)
make ubuntu business casual
to make ubuntu business casual - make it black remove background: gsettings set org.gnome.desktop.background picture-options ...
-
2010-11-24 Update: Please download latest version of Pidgin , that has this problem fixed , no additional steps required. Here are 3 ways to...
-
$dllPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\...
-
Error:The element 'Schedule' has invalid child element 'RecurrenceRule'. List of possible elements expected: 'Occurring...
No comments:
Post a Comment