SELECT TOP 1 sponcorid FROM Registration_Master order by sponcorid desc
SELECT * FROM TABLE WHERE ID = (SELECT MAX(ID) FROM TABLE)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)