Actually, I need to use the Name field of the temporary table in the following WHERE clause of another SQL statement.
Code:
SELECT
*
FROM
a, Temp
WHERE
a.Name = Temp.Name
I think it would be more efficient if an index is created on Temp.Name.
Additionally, the actual SQL statement to create the temporary table Temp is so complicated (beside the EmployeeList table, 4 other tables are involved)that it cannot be integrated with the above statement into one single SQL statement.