Let\'s say I have the following data in the Customers table: (nothing more)
ID FirstName LastName ------------------------------- 20 John Macken
You can do
SELECT MAX(ID) FROM Customers;