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



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

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

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

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

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

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

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

Answer / raju

select * from student where rank = a;

Is This Answer Correct ?    1 Yes 15 No

Post New Answer

More SQL Server Interview Questions

How to download and install microsoft .net framework version 2.0?

1 Answers  


What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

1 Answers  


Explain the architecture of ms sql reporting service?

1 Answers  


Why we need to use secondry database file? though, we can do same work using primary database file also.

3 Answers   Microsoft,


What are the types of normalization?

1 Answers  


Why use triggers?

1 Answers  


What is a view and what are its advantages?

1 Answers  


Explain the properties of the relational tables?

1 Answers  


what is Covering Index ?

3 Answers   Thomson Reuters,


When we should use @@error?

1 Answers  


Tell me the use of keyword with encryption. Create a store procedure with encryption?

1 Answers  


Can a unique index be created on a column, which contains null?

1 Answers  


Categories