DROP TABLE IF EXISTS #lu_sensor_name_19
CREATE TABLE #lu_sensor_name_19...
IF OBJECT_ID('tempdb.dbo.#SeatStatus', 'U') IS NOT NULL
DROP TABLE #SeatStatus;
-- 'U' is object type : U = Table (user-defined)
IF OBJECT_ID('tempdb..#lu_sensor_name_19') IS NOT NULL
BEGIN
DROP TABLE #lu_sensor_name_19
END
CREATE TABLE #lu_sensor_name_19...