Used this forum as a starting point:
If there is a column called login in the table tb_admin, to select the value of a particular column of the last row inserted, this is the query :
SELECT login from (select top 1 * from tb_admin order by recid desc) as tempTable
Here "top 1 *" will give the first record and order by recid desc will order it in the descending order to get the last record.