October 2015
Beginner
206 pages
4h 4m
English
As you know, relationships exist between the tables in a relational database. This means that the rows in a table are usually associated to the rows in another table or multiple tables.
Let's see an example. Suppose that our online store sells several types of products. We don't want to display them all together, because it would be confusing for most users. Instead, we need to separate our products by category.

So, first we will create a table for the product categories. We need to store the category name, a description, and of course an id that will be the primary key:
CREATE TABLE product_category ...Read now
Unlock full access