You are on page 1of 1

Database Exercise 1. Download the database from Moodle. 2. Construct the following queries and save them.

(a) Find all the convicts who committed a crime involving highway. Note it is spelled Highway and Hwy. Save this query as Highway Crimes (b) Find all the convicts younger than 30 who committed the crime Larceny. Save this query as Age<30 and crime=larceny (c ) Find all the convicts who where involved in a crime associated with assault and whose trade is labourer. Save this query as Crime Assault and trade labourer (d) Find all the teenage convicts. Save this query as Teenage Convicts (e ) Find all the Second Hand Dealers convicted of Larceny. Save this query as Second Hand Dealers-Larceny 3. Construct the following Reports (a) Build a report to which shows all the female convicts sorted in order of age from the oldest to the youngest. (b) Build a report which shows all the 21 year olds sorted in order of crime. (c ) Build a Report showing all the convicts tried at Cornwell sorted in order of their crime. (d) Build a Report showing all the male convicts tried at Devon, Lincoln and Kent. (e ) Build a Report showing the convicts who where older than 50 and were involved in animal theft 4. Build an Input screen to add new convicts to the database using the wizard in the Form and add your details.

You might also like