I'm trying to find the max number in my ID column, in order to see what record is currently in use, the only way I know how to do it is using the SQL function max() here is my query, but it does not seem to work.
SQL= "SELECT MAX(reservations.id), reservations.department from reservations"
Is there a better way to do this? if not, how do I run this query and still have the other column data?
SQL= "SELECT MAX(reservations.id), reservations.department from reservations"
Is there a better way to do this? if not, how do I run this query and still have the other column data?