I have to write PL/SQL Block that print salary of the people who have same job_title. Job_title must be entered in substitution variable. I struggle to print with 'dbms_output.put_line'. Also sql says that join is not right.
DECLARE
v_jobt VARCHAR2(50);
v_sal Number ;
BEGIN
SELECT j.job_title,e.salary INTO v_jobt, v_sal
FROM jobs j
JOIN EMPLOYEES e
ON JOBS.JOB_ID=EMPLOYEES.salary
WHERE j.job_title = '&job_title';
DBMS_OUTPUT.PUT_LINE ('Job Title is : ' ||v_jobt);
END;
WHEREis afterJOIN.