Task 2 - Database
Task 2 - Database
You are asked to use a suitable application to manage data on candidates nominated to contest
seats in the general elections. Three tables must be used to store the data.
The CONSTITUENCY DATA table should include: Constituency Number, Constituency
Name, Number of Voters
The table with relevant PERSONAL DATA on each candidate should include: Candidate ID
(candidate’s initial and three numbers), Title, Candidate Name (First Name and Last
Name), Address, Age, Sex, Profession, Constituency Number, Party, Votes Received.
QUERIES:
1. List the name, sex, age and profession of all candidates from The United Progressive
Movement (UPM). Save your query as Query 1.
2. List the candidate name, party, number of voters and number of votes received for candidate
in constituencies with more than 7,200 voters and where the candidates received less than
2500 of the votes. Sort the data in descending order on the number of votes received by the
candidate. Save your query as Query 2.
3. Using the calculated field below; determine the total number of votes cast in each
constituency.
Save your query as Query 3.
REPORT:
4. Generate a report which lists the consistency, number of voters in the constituency, name of
candidates, gender, party and number of votes received. The report should be grouped by
constituency. Within each constituency, the report should be sorted in descending order by
number of votes received by each candidate. It should also give the total and average
number of votes in each constituency. The report should have a two-line title as follows:
Official Results
Trinbarjam Elections Commission
CONTROL FORMS: