How to group duplicate rows and write each duplicate row to another table minus 1 of each duplicate group

1 Like