I am having very large tables and existing queries having long sub queries used in SELECT statement. Will the performance be same if the sub queries are converted to JOINs?
How the below queries are different with respect to performance?
SELECT
e.employee_id,
(
SELECT department_name
FROM Department
WHERE employee_id = e.employee_id) Department_Name
FROM Employee e
Vs
SELECT
e.employee_id,
d.department_name Department_Name
FROM Employee e
JOIN Department d
ON d.employee_id = e.employee_id