I have three columns id,name and roll no
I need to update the roll number based on the names ,ie in alphabetical order using trigger or cursor
1 abcd 1
2 dcd 2
if ur inserting next row with name starting with b then that name's roll no: will be 2
1 abcd 1
2 dcd 3
3 bsfs 2
Can anyone help??????