EEEE4115: Course work 1 – Database tasks 22/23

联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981

On moodle you will find in the Excel Document EEEE4115 – Theme 2 – Marks Data for Task – 2022-23 – Definitive that contains data on students, modules, marks etc.

A database is to be created in Access to hold this information (which is to be processed into the tables via SQL queries), following which a set of required queries/reports are to be generated.

The practical tasks you are required to complete are as follows

Practical Database Work

1. Database Table generation

To rationalise the data into a series of tables (remembering to consider field sizes/types, constraints etc.)

Define the relationships between the tables; they must be created in such a fashion as to ensure complete data integrity across the database

Note: The queries used to create and/or populate the tables created from the original data MUST be included in the database supplied. The data is NOT to be manipulated outside of the database (e.g. in Excel) and simply imported.

The names of tables, queries, reports etc. should be appropriate to the task each performs (i.e. not ‘query 1’, ‘query 2’).

2. Statistics table
A specific requirement of the database is that there is a table of student IDs & full year statistics (credits taken, credits passed, year average etc.).

You are free to add additional columns to this table to support the stated query/report requirements.

3. Queries
Once the tables have been created, you are to generate queries to achieve the following

Q1 Produce a list of students and their marks. The data is to be sorted according to the following hierarchy

oThe academic Year (descending)
oCourse Code (ascending)
oStudent sorted
By Year average highest to lowest (descending)
Names are to be sorted A-Z by family name, given name (applicable where more than one student has the same year average)

Q2 Produce a list of students who failed to pass in a specific academic year. There are three ways this occurs

oAn overall year average of < 40 oMore than 20 credits in the range 30-39 oA mark below 30 The query should state the reason for failing and is to be sorted by student family name ascending (i.e. A -> Z)

Q3 Display the statistics and pass/fail outcome for a specified student in a given academic year (the Student ID & academic year should be prompted for when the query is executed)

Q4 Display the marks for a specified student in a given academic year (the ID & academic year should be prompted for when the query is executed)

Note: Queries should provide those fields as would make the data usable (i.e. a list of marks would need to include details such as the student ID, Name etc.). Wildcard returning of all fields is not acceptable.

3. Reports

Develop reports to display, in a format suitable for printing, the results of queries Q1 & Q2

Produce a ‘marks’ report suitable for presentation as an ‘end of year’ certificate. The user is to be prompted for the student ID and academic year

It should provide the following information

oThe student’s name, SID & department
oA weighted average of all marks
oThe summary statistics
oA list of modules studies and the mark achieved
oThe overall Pass/Fail outcome & reason for failing
oThe date the report was produced

Hint: You may wish to display the output from multiple queries (e.g. Q3 & Q4) to achieve this

4. Data processing queries

A set of queries (one per statistic) is to be developed to update the statistics table from the marks data (i.e. when a student’s mark is updated, the queries would then be run to update the statistics table).

5. Calculation of weighted average

All semester/year averages are to be weighted averages, calculated as

Average = sum ( module_mark * module_credits ) / sum (module_credits)

This is perhaps the most ‘challenging’ query to write – to help, I have provided hints in

the document: How to use DSum
the accompanying database: HelpWithUpdateQueries_NZ_Example_too – IQ

Submission details/Marking Approach

You need to upload your database file (the ‘.accdb’ file) as the submission for this coursework (the deadline for this is 3pm Wednesday 16/11/2022).

The marking for this task will be as per the rubric EEEE4115 – Theme 2 – Rubric based marking scheme – 2022-23 – Locked.

发表回复