0

I've a table something as follows

id                                         other_columns
1
1
1
2
2
3
1
3

How do I detect that row no. 7 is the last row with id value 1. Similarly row number 5 is the last row with id value 2. Row number 8 is last row with id value 3. Is it possible to achieve this using php?

van
  • 71
  • 1
  • 12

0 Answers0