Home » MYSQL » Mysql miscellaneous » Question
  1. Is there any error in this query?
    SELECT emp.emp_id, 
    emp.fname, emp.lname, dep.name
    FROM employee emp INNER JOIN department dep
    ON emp.dept_id = emp.dept_id;
    1. YES
    2. DEPEND
    3. NO
    4. All of above
    5. None of these
Correct Option: C

There will be no error in the query, as table name “employee” is replaced by ‘e’ and table name “department” is replaced by‘d’.



Your comments will be displayed only after manual approval.