Create all the relations in a Microsoft Access database. Consider each attribute in every table and make appropriate choices regarding data types & sizes, indexes, required/not required and validation...


Create all the relations in a Microsoft Access database. Consider each attribute in every table and make appropriate choices regarding data types & sizes, indexes, required/not required and validation rules. Your choices should be appropriate for each attribute and should support data integrity. (Note: see the Data Integrity section below for specific data integrity requirements) • Create relationships as appropriate. Enforce referential integrity for all appropriate relationships in the database. Apply cascade update and/or delete options wherever necessary. • Review the default index created by Access for each table. You should ensure that the indexes follow the guidelines given in the unit textbook. • Populate the database with sample data of your own. You must include sufficient sample data to test your queries and report. Please note that the expected result of query questions may depend on the actual sample data populated. Data integrity You are required to implement integrity constraints within the database to enforce the following requirements: • Fees/Charges should be positive currency and expressed in 2 decimals only. • Date values should not be predated. • Name of patients/medical specialists should not be null. • State values should be limited to Australian States/Territories only. • Skills and experience values should not be null. • Discount amount should be positive and cannot exceed $50.   Information requests Create queries to answer the following information requests. Note: Do not use the Access query builder (QBE) to create your queries – you should type the queries manually using SQL view/editor. The marking process of the queries for information requests may also consider the effectiveness of your SQL statements that have been used in the queries. It is important that your SQL statement must reflect the correct business logic & SQL syntax. (Use enough sample data so that the output is produced by each and every query). 1. Display the details of medical specialist(s) who has/have never performed/completed any appointment. 2. Display the details of appointment, name of the patient and medical specialist involved in the most expensive appointment. 3. For each of the medical specialists, display his/her name and the number of appointments completed so far. 4. For each of the appointment completed, display the date, (start) time, name of the patient and total fees/charges of the appointment, discount amount and final amount payable. (Final amount payable = total appointment charges – discount amount ) 5. Which patients have consulted more than one specialist? Display the details of such patients only. 6. Display the details of the patient(s) whose name contains the word “more”. Show the results in ascending order of the name.





Oct 07, 2019
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here