Course web page: Introduction to problem solving with applications James Tam | Return to the course web page |
For this assignment you are to use the initial database: [Access 2007 database] - it won't work with Access 2003 because the latter program won't have the features that you need for the assignment. If you're having trouble opening the 2007 database then you can at least get the information for the fields from the following set of spreadsheets [Excel 2003 version: <Employees table> <Locations table> <Titles table>]. In the latter case however you will need to add a new field in the 'Employees' table before you can add image data.
The database consists of three tables: 'Employees', 'Locations' and 'Titles'. The Employees table is a data table while the Titles tables is a validation table. The Locations table provides features of a lookup table but also contains data.
Fields of the Employees table |
|
|
|
|
|
|
|
|
|
Fields of the Locations table |
|
|
|
|
|
|
Fields of the Titles table |
|
|
You should modify the database to account for the above requirements. If the user enters invalid data, useful error messages should be provided (whenever it's possible) that describes the format of the input e.g., "Age cannot be less than zero and greater than 123 years". Also you should provide addition information in the 'Description' attribute in the datasheet view for the person who maintains the database so that he or she is aware what information is contained within a field as well as formatting or range constraints. You should also make sure that the way in which information is stored in the database is appropriate to the data (e.g., something that will be used in calculations should be numeric). Finally a picture is needed for each employee (you choose the image) and an appropriate primary key must be set for each table.
Using the notation that you learned in lecture draw out an ERD (Entity-Relationship diagram) for the three database tables, their attributes and the relationships between the tables as well as the multiplicity. You can use a drawing program to draw out your diagram, it needn't be done in a dedicated program. However your diagram must use the correct notation and it must be clear enough for your marker to understand. Save your ERD in one of the following formats: gif. jpg, png and upload it to D2L along with your database.
|
|
|
|
|
|
|
|
|
|
||
|
|
For the remaining queries you need to use the following formula: Actual Salary = Base salary * (1 + (Years of service/100)) |
|
|
|
|
|
|
|
|
For the last query (#7 employees with extreme pay), generate a report showing the query results. Below is a sample report. Results should be reasonably neat-looking and formatted.
Upload your database and an image representing your ERD via [D2L]