
PUZZLE 55 PLAYING THE PONIES 221
PUZZLE
55 PLAYING THE PONIES
You have just become the database manager for your bookie. He keeps
records on horse races for statistical purposes, and his basic table looks
like this:
CREATE TABLE RacingResults
(track_id CHAR(3) NOT NULL,
race_date DATE NOT NULL,
race_nbr INTEGER NOT NULL,
win_name CHAR(30) NOT NULL,
place_name CHAR(30) NOT NULL,
show_name CHAR(30) NOT NULL,
PRIMARY KEY (track_id, race_nbr_date, race_nbr));
The track_id column is the name of the track where the race was
held,
race_date is when it was held, race_nbr is number of the each
race, and the other three columns are the names of the horses that ...