I have a query that creates a temp table like the query below.
Select * INTO tmpTable FROM Table1 WHERE...
Then I do a join on the tmpTable
Select * from Table2 inner join tmpTable on .....
Then I drop the tmpTable
drop table tmpTable
This works fine but I want to know what happens if 1 the tmpTable doesn't get dropped or if that is possible and 2 what if someone else queries this at the same time will it crash on the create tmpTable?
Thanks
Select * INTO tmpTable FROM Table1 WHERE...
Then I do a join on the tmpTable
Select * from Table2 inner join tmpTable on .....
Then I drop the tmpTable
drop table tmpTable
This works fine but I want to know what happens if 1 the tmpTable doesn't get dropped or if that is possible and 2 what if someone else queries this at the same time will it crash on the create tmpTable?
Thanks