IF OBJECT_ID(\'tempdb..#MyTable\') IS NOT NULL DROP TABLE #MyTable create table #MyTable (PolNo varchar(50), ControlNo int, PrevControlNo int, Premim money) insert i