Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Have a table like S.no,name,address.S.no is Alphanumeric it is not auto increment the values such as
AQ1,AQ2,AQ3 etc.If i insert a new item in between AQ1 and AQ2 then it have to rearrange as AQ1,AQ2,AQ3

Please suggest me a logic for this.

Thanks in advance.
Posted
Updated 20-Jul-14 21:15pm
v2

1 solution

Dear--

Either you should take the one more column with auto increment or store datetime from getdate function in another column to arrange the data.

In the last of the query you can use one of them column to arrange the records.
 
Share this answer
 
Comments
[no name] 21-Jul-14 3:47am    
Are you able to Explain in Detail

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900