Example - Two Tables with OUTER JOIN
Let's look at how to use the FROM clause when we join two tables together using an OUTER JOIN. In this case, we will look at the LEFT OUTER JOIN.
For example:
SELECT employees.employee_id, contacts.last_name FROM employees LEFT OUTER JOIN contacts ON employees.employee_id = contacts.contact_id WHERE employees.first_name = 'Sarah';
This SQL Server FROM clause example uses the FROM clause to list two tables - employees and contacts. And we are using the FROM clause to specify a LEFT OUTER JOIN between the employees and contacts tables based on the employee_id column in both tables.
Example - Two Tables with OUTER JOIN
Let's look at how to use the FROM clause when we join two tables together using an OUTER JOIN. In this case, we will look at the LEFT OUTER JOIN.
For example:
SELECT employees.employee_id, contacts.last_name FROM employees LEFT OUTER JOIN contacts ON employees.employee_id = contacts.contact_id WHERE employees.first_name = 'Sarah';
This SQL Server FROM clause example uses the FROM clause to list two tables - employees and contacts. And we are using the FROM clause to specify a LEFT OUTER JOIN between the employees and contacts tables based on the employee_id column in both tables.
status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|
repetition number in this series | 0 | memorised on | scheduled repetition | ||||
scheduled repetition interval | last repetition or drill |