Hi,
In my application when i insert data i have to generate sequential value for a particular column basing on value in other column. Is there any property which i could set in SQL Server 2005.
I am explaining my requirement in more detail:
I have table with two fields id and branchid, i have to insert sequential value for branchid automatically for every unique value of id
That is
id - BranchId
1 - 1,
1 - 2,
1 - 3,
Now if i insert a row with id value 2, then branchid should automatically set with value 1
Thanks and Regards Suraj.