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


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

You would use a JOIN query for this.


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

Join Line


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

Join Line


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

Join Line


How many records and columns to store in MySQL database table and how many tables we can create?

In MySQL, the maximum number of rows and columns a table can have depends on the storage engine, but generally, a MySQL table can have up to 65,535 columns. The maximum number of rows is limited by the storage capacity of the database and the size of the rows. You can create a vast number of tables in a MySQL database, with the practical limit being around 4.3 billion tables per database, though performance may degrade with very high numbers.