Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Reseed Identity Column when other column, value change

$
0
0

hello

I have a table with four fileds. The first and second field are primary key. Second field of primary key is a identity.

when the first field changed, I  need the second field Reseed  to 1.

Example

1,1

1,2

1,3

2,1

2,2

n,1

Thank's a lot


Viewing all articles
Browse latest Browse all 15264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>