How to select the last row of a particular CustomerID in SQL using the command?

How to select the last row of a particular CustomerID in SQL using the command?

Last updated:9/22/2021 12:18:54 AM

1 Answers

Ashutosh Kumar Verma
Ashutosh Kumar Verma

SQL command is to select the particular last row:

    The SQL statement is used to find the last row of any particular Person.

Lets take a database table 'Persons', 

How to select the last row of a particular CustomerID in SQL using the command?

Now, the following SQL statement is used to find the last row of particular Person 'Ashu' in above table.

How to select the last row of a particular CustomerID in SQL using the command?

Another following SQL statement is used to find the last row of particular Person 'Shriyam' in above table.

How to select the last row of a particular CustomerID in SQL using the command?

Answer