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

Is it ok to shrink transaction log?

0 Answers  


How to make a remote connection in a database?

0 Answers  


Write a code to select distinct records without using the DISTINCT keyword.

0 Answers   Aspiring Minds,


Do you know how to make remote connection in database?

0 Answers  


How to trouble shoot if unable to connect SQL Server

0 Answers  






What Are Three Rules to UseĀ UNION IN SQL SERVER

1 Answers  


What are the transaction properties?

0 Answers  


What is the sql server agent?

0 Answers  


Creating Tables Using SELECT

1 Answers  


You want to implement the one-to-many relationship while designing tables. How would you do it?

0 Answers  


Explain about Views?

0 Answers   Infosys,


Will the writetext statement activate a trigger?

0 Answers  


Categories