sql - Oracle Express 11g command -
i'm trying run sql command oracle express 11g, , it's giving me error message:
no rows selected
select employee_id, employee_name, department_name employees join departments using (department_id) employee_id < 103 , employee_id > 203;
the question asks: employee identification number, employee name, , department name employees identification number less 103 or greater 203.
your code uses and
logical operator instead of or
operation. since number (the id, in case) cannot both less 103 , greater 203, no rows.
just replace and
or
, should fine:
select employee_id, employee_name, department_name employees join departments using (department_id) employee_id < 103 or employee_id > 203; -- here -----------------^
Comments
Post a Comment