I need to combine columns from about 15 tables in one large table. Something the following works. But it takes very long to run while the CPU usage spikes to 100%, which cau
SELECT t1.empid, t2.phone, t3.license, t4.email
FROM @t1 t1
LEFT JOIN @t2 t2 ON t1.EmpId = t2.EmpId
LEFT JOIN @t3 t3 ON t1.EmpId = t3.EmpId
LEFT JOIN @t4 t4 ON t1.EmpId = t4.EmpId