OK I get this concept however, I can't figure out how to write the select statement. I know I need to select from category, colors, price, product, size where category.categoryID = price.priceID but I am not sure how to do the rest. I listed the tables below. Any help with the select statement would be great. I am slowly starting to understand all this.
This link is the structure of my database
CREATE TABLE category (
categoryID int(5) NOT NULL auto_increment,
category varchar(20) NOT NULL default '',
PRIMARY KEY (categoryID)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
CREATE TABLE colors (
colorID int(11) NOT NULL default '0',
color varchar(30) NOT NULL default ''
) TYPE=MyISAM;
CREATE TABLE price (
categoryID int(5) NOT NULL default '0',
sideID int(5) NOT NULL default '0',
price float(10,2) NOT NULL default '0.00'
) TYPE=MyISAM;
CREATE TABLE product (
productID int(5) NOT NULL auto_increment,
prod_name varchar(30) NOT NULL default '',
prod_desc varchar(255) NOT NULL default '',
categoryID int(5) NOT NULL default '0',
PRIMARY KEY (productID)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
CREATE TABLE product_colors (
productID int(5) NOT NULL default '0',
colorID int(5) NOT NULL default '0'
) TYPE=MyISAM;
CREATE TABLE product_images (
imageID int(5) NOT NULL auto_increment,
productID int(5) NOT NULL default '0',
image_path varchar(100) NOT NULL default '',
PRIMARY KEY (imageID)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
CREATE TABLE product_sizes (
ProductID int(5) NOT NULL default '0',
sideID int(5) NOT NULL default '0'
) TYPE=MyISAM;
CREATE TABLE size (
sideID int(5) NOT NULL auto_increment,
size varchar(15) NOT NULL default '',
PRIMARY KEY (sideID)
) TYPE=MyISAM AUTO_INCREMENT=7 ;