Is there any error in the following MySQL statement? [code] SELECT e.emp_id, e.fname,e.lname,d.name FROM employee AS e INNER JOIN department

Is there any error in the following MySQL statement?
Code:
SELECT e.emp_id, e.fname,e.lname,d.name
FROM employee AS e INNER JOIN department AS d
ON e.dept_id=e.dept_id;
A. NO
B. YES
C. DEPEND
D. None of the mentioned
 
Answer: a
Explanation: There will be no error in the query, as table name “employee” is replaced by ‘e’ and table name “department” is replaced by ‘d’ by using “AS” keyword.
 

Tìm kiếm

Back
Top