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 |
As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What is an entity-relationship diagram (erd)?
Which are ddl commands?
What is reference section?
Why truncate is ddl command?
How to provide default values to stored procedure parameters?
What is the difference between count () and rowcount ()?
What are the built in functions in sql server?
What is sql language?
What are functions
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)