I was wondering if it is possible to move all rows of data from one table to another, that match a certain query?
For example, I need to move all table rows from Tab
A cleaner representation of what some other answers have hinted at:
DELETE sourceTable OUTPUT DELETED.* INTO destTable (Comma, separated, list, of, columns) WHERE