how to get rank of diffrent student in same table based on
newly inserted row in sql server2008
Answers were Sorted based on User's Feedback
Answer / diveyandu
use dense_rank over(partition by stu_exam_date order by
stu_id) as stu_rank show a particular date student exam or
diff activity rank
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / 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 |
Answer / abi
select rank from student;
(because we dont know if the rank field is inserted r not)
Is This Answer Correct ? | 0 Yes | 4 No |
What is a subquery in a select query statement in ms sql server?
Explain what is the purpose of sql profiler in sql server?
I have to display ten columns values from diffrent ten tables. how many joins are require?
10 Answers CarrizalSoft Technologies, HCL,
How to grant a permission in ms sql server using "grant execute" statements?
How will you go about resolving deadlocks?
What is the fillfactor concept in indexes?
Does index speed up select statements?
what is the difference between sql query and google query?
what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration
what is the difference between Delete and Truncate command in SQL
Can we store videos inside the sql server table?
Explain the collation?