Students must complete all the following parts of this assessment task:
Download the Microsoft Access database, CQInsurance.accdb, from the unit website and use it to complete this assessment task.
If you get a security warning message when opening the downloaded database, then you need to open/click the options and then choose the option "enable this content".
Do not modify the structures of the tables and relationships. Do not create additional tables. It is not recommended to delete any of the existing records from the downloaded database (hereafter referred as 'your database').
You must create SQL queries in your database and make sure those queries produce the desired results as shown in Part A. Save and name those queries suitably such as Q1, Q2, ......, Q10 respective to the question that you are answering.
You also need to create a MS Access-form and a MS Access-report that are related to Part B and Part C and save them in your database.
The database, CQInsurance.accdb, contains the following tables:
Using your database, write SQL queries to answer all questions in this part. Each of the following questions has an information request followed by the expected results when your database has the given sample data.
Please note:
1.List all persons who are having policies. Display the person id and person name in ascending order of person name.
Expected result using sample data:
PersonId | PersonName |
2 | Mary Smith |
1 | Peter Collins |
2.How many policies that each person is holding/having? List their id, name and number of policies in descending order of person name.
Expected result using sample data:
PersonId | PersonName | NumPolicies |
1 | Peter Collins | 3 |
2 | Mary Smith2 | 2 |
3.List the person Id and person name of all persons who have more than two policies. Expected result using sample data:
PersonId | PersonName | NumPolicies |
1 | Peter Collins | 3 |
4.List the person name and email Id of those persons whose name contains the word 'Smith'. Expected result using sample data:
PersonName | emailId |
Mary Smith | m.smith@cqu.edu.au |
John Smith | john2020@optus.net.au |
5.List the Person Id and person name of the persons who do not have any policy.
Expected result using sample data:
PersonId | PersonName |
3 | Madhav Kumar |
4 | John Smith |
6.List the yearly premium amount for all the policies. Note: Yearly premium of a policy is calculated based on its content items' insured amount and their respective premium rate percent.
Expected result using sample data:
PolicyId | YearlyPremiumAmount |
1 | $2,236.00 |
2 | $1,315.00 |
3 | $1,494.00 |
4 | $2,358.75 |
5 | $444.50 |
7.List all the policies that do not cover jewels.
Expected result using sample data:
PolicyId | EffectiveFromDate | PropertyId |
2 | 23-Jun-20 | 2 |
3 | 26-Jun-20 | 6 |
4 | 20-May-20 | 4 |
5 | 10-Jun-20 | 5 |
8.What is the total amount covered by each policy? List the policy Id and total coverage amount in ascending order of policy Id. Note: A policy's coverage amount is equal to the sum of insured amount of all the content items in that policy.
Expected result using sample data:
PolicyId | PolicyCoverageAmount |
1 | $24,800.00 |
2 | $11,400.00 |
3 | $13,000.00 |
4 | $19,750.00 |
5 | $3,900.00 |
9.Which policies are having the highest policy coverage amount? Note: A policy's coverage amount is equal to the sum of insured amount of all the content items in that policy.
Expected result using sample data:
PolicyId | PolicyCoverageAmount |
1 | $24,800.00 |
10.List the person Id and person name who hold(s) the highest insured amount of painting that has been covered in any of the policies.
Expected result using sample data:
PersonId | PersonName |
1 | Peter Collins |
Using the CQInsurance database, develop a form that can be used for data entry for Policy. You are allowed to use any number of tables and any suitable layout for developing that form. Name the form as Policy Entry.
Using CQInsurance database, create a report that lists policies and all content items covered by the policy. Your report should