January 2018
Intermediate to advanced
446 pages
12h 57m
English
So far you have looked at inserting and retrieving data from a single table. In this section, we will discuss how to combine two or more tables to retrieve the results.
A perfect example is that you want to find the employee name and department number of a employee with emp_no: 110022:
If you do not want to use JOIN, you can do this:
mysql> SELECT emp.emp_no, emp.first_name, emp.last_name FROM employees AS ...
Read now
Unlock full access