0
Good morning, for a work record I was given the following exercise:
Imagine the following scenario. It is intended to create a database that supports the control of stocks. Each product belongs to a family, for example: A block of A4 sheets belongs to the office material family. Using phpmyadmin create the tables needed to support this scenario.
I have created the following tables:
CREATE TABLE `produtos` (
`id_produto` int(11) NOT NULL AUTO_INCREMENT,
`produto` varchar(11) NOT NULL,
`qtd_stock` varchar(11) NOT NULL,
PRIMARY KEY (`id_produto`)
)
CREATE TABLE `familia` (
`id_familia` int(11) NOT NULL AUTO_INCREMENT,
`familia` varchar(80) NOT NULL,
PRIMARY KEY (`id_familia`),
)
Can someone give me a help of what relationships do ?