To find last entered row in sybase

  • Hello All,

    How can i find last entered row of a table. (No timestamp)

    E-x:

    Table name: student_dtl

    student class

    karthi   10

    Guna     7

    Ram      5

    Kavi      6

    Suresh  1 

     

    What is query to get 'Suresh  1'?

  • There is no such thing as 1st or last row in relational databases.

    You need to store time of recording to know which record was the latest one.

    _____________
    Code for TallyGenerator

  • I think you may also add an id column in your table using the identity function.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply