This is an individual assignment. All work must be your own. You should not look at any other student's work (in whole or in part, on paper or on screen), nor allow anyone else to look at yours, during the course of this assignment. Nor may you submit the work of software programs [or hardware devices] as your own.
Upload to the CS Homework system or email to the professor on or before midnight on 16 Oct 2023. Typed, in a plain text, PDF or MS Word document. (Subject line: "cs4250, hwk 2")
(Typed homework, in all cases. DO NOT submit a photograph of handwritten scribbles.)
Note that you will need to be on campus, or on the campus VPN, to access the CS Homework system. Instructions on how to get onto the campus VPN are on the main page, under 'Campus Resources'.
Consider the following relations:
Engineer (engineerID: integer, lname: string, fname: string, jobtitle: string,
email: string, speciality: string)
MemberOf (teamID: integer, engineerID: integer, role: string, hoursAWeek: integer, startedOn: date, stoppedOn: date)
Team (teamID: integer, name: string, creationDate: date, projectID: integer)
SpaceProject(projectID: integer, name: string, destination: string, launchDate: date, costEstimated: integer, description: string, sponsorOrganization: string)
SolarSystemLocation(officialname: string, nickname: string, type: string, distanceMinKM: integer, distanceMaxKM: integer)
The relations capture some basic information about a engineers, who work on teams that build machines to travel to various destinations in our solar system.
Engineers have job titles and specialities.
Engineers join and leave Teams during their careers. engineerID
in MemberOf is a foreign key referencing engineerID in Engineers. teamID in
MemberOf is a foreign key referencing teamID in Teams.
Multiple Teams cooperate to build a SpaceProject. projectID in Teams
is a foreign key referencing projectID in SpaceProject.
For example, there could be a Communications Team working on the system that would
let a satellite communicate with Earth, a Navigation Team working on the correct
route to get the satellite to a particular planet, and a Shields Team working on
protective measures to keep satellite equipment safe from micrometeorites, solar
flares, and other threats. And so on.
SolarSystemLocations are where SpaceProjects are sent. destination
in SpaceProject is a foreign key referencing officialname in
SolarSystemLocation. Locations
might be the asteroid 101955 Bennu, the planet Saturn, the moon Titan, the Moon, etc.
The database tracks the minimum and maximum distances, in kilometers (KM) from Earth,
of solar system locations, over the course of orbits around the solar system.
You may make the simplifying assumption that comparisons on "date" or "timestamp" fields will work with basic =, <, >, etc, boolean operators. This is not the case in many DBMS products; for real work you would need to consult the documentation for your particular DBMS software.
Write the following queries in SQL.