answersLogoWhite

0

You can simply do this:

Say you have two tables - employee and phone

INNER JOIN

select employee.first_name, employee.last_name, phone.home_number from employee, phone where phone.employee_id = employee.employee_id;

OR

select employee.first_name, employee.last_name, phone.home_number from employee join phone on phone.employee_id = employee.employee_id;

LEFT JOIN

select employee.first_name, employee.last_name, phone.mobile_number from employee left join phone on phone.employee_id = employee.employee_id;

RIGHT JOIN

select phone.fax_number, employee.first_name, employee.last_name from phone right join employee on phone.employee_id = employee.employee_id;

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is schema in mysql?

Schema is structure you created for your tables in My SQL


What is a join line in access?

the line joining two tables


When you want to extract data from two or more tables you use an query?

When you want to extract data from two or more tables, you can use a SQL JOIN query. By using JOIN clauses, you can combine rows from different tables based on a related column between them. This allows you to retrieve data from multiple tables in a single query.


Line between selected fields in two tables?

join line


What is difference between natural join equijoin and outer join?

Equijoin - Joins two or more tables where the specified columns are equal. Returns only those records found in both tables. Outer join - Joins two or more tables on the specified columns, returning all the values from table 1 regardless of whether they are in table 2. Natural Join - Joins two tables on all like column names.


What does the Join SQL clause feature in computer programming?

A Join SQL clause is a combination of two or more tables from a database. Fields are joined by using data that is present in both tables and are written as an identification for the join.


Find records in two tables that have identical values in the matching fields?

join


Is a line that Access draws between matching fields in two tables?

Join Line


What is a line that is drawn between matching fields in two related tables?

Join Line


What query do you use to extract data from two tables?

You would use a JOIN query for this.


What is A line that Access draws between matching fields in two tables?

Join Line


How does MySQL work?

MySQL is a relational database management system (RDBMS) that uses Structured Query Language (SQL) to manage and manipulate data stored in tables. It operates on a client-server model, where the MySQL server handles data storage, retrieval, and management, while clients send queries and receive results. Data is organized in structured tables, and relationships between tables are defined using keys. MySQL ensures data integrity and supports transactions, allowing multiple operations to be executed reliably.