create database snazzy;
use snazzy;
A couple of tables...
create table color (
colorID int AUTO_INCREMENT NOT NULL PRIMARY KEY
,name varchar(20)
,red int
,green int
,blue int
);
A few inserts...
## ---------------------------------------------------------------
insert into color(name, red, green, blue)
values('fire engine red', 255, 10, 25)
,('watermelon' , 100, 100, 0)
,('Green Apple' , 91, 194, 54)
;
## ---------------------------------------------------------------
#-- What are some good names for some good colors?
#-- color thesaurus site has some good single word names
#-- some names are built-in to html/css understanding
#-- like ... DarkOrchid
#-- like ... SlateBlue
#-- like ... DarkSeaGreen
#-- like ... Crimson versus red
#-- sherwin-williams is a line of paint; they've got millions of names
#-- and an insanely popping round website to show them (ugh!!!)
What would this table look like?
HARDER
How would you keep this track of this sort of information in the database above?
Output info might look something like the following...
Note, the last two lines are not in error.
There are 2 filled ovals that special color of red.
triangle fire engine red
square green
FilledOval blue
triangle red
triangle blue
FilledOval fire engine red
FilledOval fire engine red