Is it possible to run different auto-increment sequences based on another column? Like the left table instead of the right...
item_id | group_id item_id | group_id
____________________ ____________________
1 | 1 1 | 1
2 | 1 2 | 1
1 | 2 3 | 2
1 | 3 4 | 3
3 | 1 5 | 1
2 | 3 6 | 3
I suspect that this is not possible but maybe there's a way to do this?
Thank you for your kind attention.
EDIT: for a 2012 SQL Server