結果 : sql check if temp table is empty