...

/

Merging Data from Multiple Tables

Merging Data from Multiple Tables

Learn how to retrieve data from related tables using SQL JOIN operations.

Navigating data retrieval challenges

The data has been divided into two tables, which presents a new challenge: How do we retrieve it? Is there a way to restore our original information somehow? It should be easy, no? Let’s try it out!

But before we do that, let’s take a smaller subset of records from these two tables. It will help in developing a better understanding of the involved concepts.

Press + to interact

We used the subset of SalesData and Product table as given in the above illustration. Let’s now write a query to generate the result set.

Press + to interact
SELECT * FROM
SalesData, Product;

Wait! ...