IPT home IPT A Virtual Approach by Peter Whitehouse
Quick Links:
 
 
IIS home
Information and Intelligent Systems Social and Ethical Implications Human Computer Interaction Software and Systems Engineering eXercise Files Course Outline and Assessment A-Z of Geeky Acronyms Terrace Work Program 2004 Sillybus FAQ = Frequently Asked Questions Help
 
 

Database Languages

eXercise #8


The FIRST FLEET Database - a mSQL Investigation

As you probably know, Australia was originally a penal colony (a place where criminals were sent to complete their sentence). The first batch of people to be sent out were called the first-fleeters. The following MySQL investigation requires you to interrogate the database of information about this intrepid band of settlers, criminals and military personnel, and formulate valid queries.

The ONLINE Query Engine is made with PHP and MySQL

(alternatively, you could download the FIRSTFLEET Database (MsAccess 2000))

What follows is a complete description of the database:

FFleet Relationships

A word of warning: This database contains some very LARGE tables (i.e. many rows). If you choose to JOIN tables (which may in some cases be the only way to a solution) my server may not have enough RAM to build the answer table unless you work with a query in OPTIMAL form. Also, don't be too surprised if some of your queries take a little while to complete - the sheer volume of information being dealt with may cause my server to slow down a little (blame Canada!).


Single Table Queries

PEOPLE table

  1. list the christian names of all 'SMITH's
  2. list the number of 'SMITH's in this table
  3. list details for anyone with your surname
  4. list details of all males over 50
  5. list names of Free female settlers
  6. list names of convicts that have surnames starting with 'J'
  7. list details of anyone whom has no ship recorded
  8. list sexes and the number of people in each
  9. list the number of free males, free females, together with the number of convict males and the number of convict females (use a group by) *
  10. what was the average age of transportees

CONVICTS table

  1. list details of all who committed the crime of felony
  2. list details of all crimes involving sheep *
  3. list details of anyone sentenced to other than 7 years
  4. list the id of all who committed a crime involving theft of money
  5. list details of all who committed a crime involving theft of money or lead *
  6. list details of anyone involved in theft of lace
  7. list the sentence(s) given for burglary
  8. list details of anyone who had a previous conviction and sentence of death
  9. list details of people convicted of assault & theft
  10. list details of people convicted of a crime involving pigs
  11. list a tally of the number of people that had a previous conviction
  12. list a tally of the number of people that didn't have a recorded prior conviction
  13. list the trial locations and the number of people tried at each
  14. list details of people tried in May of any year
  15. list details of people tried in the year 1786
  16. list details of people tried in 'The Old Bailey'
  17. list the crimes of people tried in 'Bristol'

DEATH_DETAILS table

  1. list the ids of people who died at Sydney Cove
  2. list the ids of people who died 'At sea'
  3. list the ids of people for whom a death date is unknown *
  4. list the number of people who died in 1788
  5. list the details of people who died at age 40
  6. what was the average age

SHIPS table

  1. list in alphabetic order the names of all ships
  2. list ship types and the number of each

MARINES table

  1. list the ranks and the number of each
  2. list the commanders along with a tally of his crew

PRE_TRAN_OCCUPS table

  1. list the ids of any gardeners
  2. list the number of people who used to be servants
  3. list the ids of either 'Hawker's or 'SilverSmith's

SETTLEMENT_OCCUPS table

  1. list the number of builders
  2. list the ids of either 'Carpenter's or 'Shingler's
  3. list the ids of any 'Chaplain's

Multi-Table Queries

(YOU decide on the base tables)

  1. list the ids of anyone who persued the same occupation before and after being transported
  2. list the name(s) of the chaplain(s)
  3. list the names of the ships, along with the number of people that arrived in then
  4. list the names and sex of anybody who died in 1790 that was male and a convict
  5. name the people involved in a 'Companion' relationship *
  6. Name the crime that was committed by 'Thomas ACRES'
  7. What was the occupation (if any) of 'Sarah AULT' after she settled, and when and where did she die?
  8. 'George CLEAR' - was he a criminal of a free settler - look for evidence in as many places as you can.
  9. Name the people that shared the same crime as 'William HOGG'
  10. Name the crew of the ship commanded by a Commander named 'James CAMPBELL'
  11. What was Samuel WIGFALL's pre and post transport occupation (if recorded)
  12. How long was James MAPP sentenced, and for what?
  13. Did Charlotte Sprigmore have any prior convictions, if so list them.
  14. how many 'SMITH's came out on the HMAS 'Scarborough'
  15. how many people (in total) were transported on the HMAS 'Fishburn'
  16. how many 'private's sailed on the HMAS 'Friendship' and what was the Shipmaster's name?
  17. What was the approximate population of Australia by 1800 (use conviction date) and name them.

Harder Queries

(you need to decide where the answers to these queries is BEFORE you start writing mSQL, they involve, usually, multiple tables and often the answer is an empty answer table)

  1. What was the real (full) name, and date and place of death of someone who also went under the name of 'ECCLES'?
  2. What was the name of the ship and the bosuns name for that ship that a person who had an alias of 'RAW' travelled on?
  3. list the names of anybody that shared the same date_of_death as anybody else
  4. What was the names of all convicts who were sent to Austraila for 'life', and list their settlement_occups?
  5. How old were each of the surgeons when they died?

SOLUTIONS


wonko@wonko.info
©Copyright t 1992..2017+. Edition 25.150117
wonkosite
Creative Commons License
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 2.1 Australia License
.