QuestionQ193
VerifiedDisplaying Data from Multiple TablesConsider the following three statements:
create view v1 as
select department_id, department_name, last_name
from departments join employees using (department_id);
select department_name, last_name
from v1
where department_id = 20;
select d.department_name, e.last_name
from departments d, employees e
where d.department_id = e.department_id
and d.department_id = 20;
Why will the first query be quicker than the second?
Community Discussion