Question: Below you will find the schema assoicated to the Battlestar Galactica schema. This schema essentially keeps track of data for a fleet of space ships.
Below you will find the schema assoicated to the Battlestar Galactica schema. This schema essentially keeps track of data for a fleet of space ships. bsg_people are the individuals on the ships. bsg_planets are planets that those people may have originally came from. bsg_cert is a list of certifications the people may have, it has a standard relationship table linking it to bsg_people. bsg_ship_assignment lists the ship instances individuals may be assigned to.
Ships are the most complex piece of this database. Ships are broken into classes which are fruther broken down into variants. So there is a Viper class of ships, but there are several variants, for example the Mk II and the MK VII, each variant having its own class ID but sharing the class name. Then there are ship instances. The ship instance has a class and an id as a composite key. Additionaly a ship can be based within another ship. In this cas the table references itself to indicate which ship instanced an instance is based in.
If you wish to use the database locally or see how it was made, you can use the following file to load it into a MySQL server instance: BSG_Backup.sql.
bsg cert INT bsg cert people title VARCHAR(255) INT INT fname VARCHAR( 25 Inam e VARCHAR(255) homeworld INT age INT INT bsg_planets INT name VARCHAR(255) populaton BIGINT(20) anguage VARCHAR (255) capital VARCHAR(2 bsg_ship_class INT name VARCHAR (1000) VAROHAR(1000) lbsg_ship_assignment LOA INT INT INT sid INT ew_capacity INT bsg_ship_instance INT bsg ship_assignment is associated to bsg_ship_instance using a composite key. cid references bsg_ship_instance.dass and sid references bsg_ship_instance.id. ass INT operatonal TINYINT(1) INT based in_lass INT (11) bsg ship_instance has a safrefere composite foreign key which references its own composi mary keyStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
