Hi..............
I have one column named 'Code' and other 'IdNumber' when i enter 'code' as a1 it should display 'IdNumber' as 1,again if i enter a1 it should display 'IdNumber' as 2 in this manner it should increase its value while 'code' is a1 but if i enter b1 again the 'IdNumber' should be 1,again if i enter it should display 2 same manner it should increase.This should be in mvc 4,Pls help in this.Thanks in advance
Duplicate values
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Munesh SharmaRank #174 · 13.9K reputationPosted May 2, 2014, 10:10 PM EDT
Sasi ReddyRank #4,458 · 342 reputationPosted May 3, 2014, 1:51 AM EDT
Praveen N104 reputationPosted May 4, 2014, 11:31 PM EDT
Create Table TableAutoIncrement (IdNumber int identity,Code varchar(20) )
Regards,
Praveen Nelge