WEBDEVELOPMENT Midterm: joining atbles

5 views2 pages

Document Summary

All of the queries shown up until now have selected from just one table at a time. One of the most beneficial features of sql is the ability to combine data from two or more tables. In the two tables that follow, the table named customers stores information about customers: The orders table stores information about individual orders with their corresponding amount: In sql, "joining tables" means combining data from two or more tables. A table join creates a temporary table showing the data from the joined tables. Rather than storing the customer name in both tables, the orders table contains a reference to the customer id that appears in the customers table. This approach is more efficient, as opposed to storing the same text values in both tables. In order to be able to select the corresponding data from both tables, we will need to join them on that condition.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents

Related Questions