how to get rank of diffrent student in same table based on
newly inserted row in sql server2008

Answer Posted / naveen

place identity on a column at the time of creating table

Ex:
create table test(studentrank identity(1,1))

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 4nf in normalization form?

575


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

553


What are types of subqueries?

560


How do you trace the traffic hitting a sql server?

624


What is the order by used for?

629






Where actually sql azure database is hosted?

149


Can sql server be linked with other servers like oracle?

529


Why do we need normalization?

499


How to locate and take substrings with charindex() and substring() functions?

516


Explain datetime2 data type in sal server 2008?

549


What happens if an integer is too big for int date type?

583


What are the three different part of rdl file explain them?

172


What is use of attribute hierarchy ordered ? : sql server analysis services, ssas

566


What are translations and its use? : sql server analysis services, ssas

611


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

520