MIS 610: DB Assignment (30 points) Before you start, please READ

advertisement
MIS 610: DB Assignment (30 points)
Before you start, please READ below instruction VERY carefully




Make sure that all the outputs do not contain unnecessary data, information and fields.
Otherwise, you will be penalized.
Make sure that your database file extension is ".accdb" which is an official file extension
of MS Access.
As soon as you finish, submit your database thru Blackboard.
Make sure to CLOSE the “Access” database application COMPLETELY before
submitting the assignment database. Otherwise, you will receive ZERO POINT because
ONLY title of your database file will be processed and accepted by Blackboard
without including actual contents of your assignment file.
PART 1 – 4 points
Mr. Choi is responsible for tracking the daily payments received from CSUB clients. You’ll help
him maintain a database by completing the following:

Create a new Access database. Your database name must be YOUR LAST NAME AND
FIRST INITIAL OF FIRST NAME. And then create a table using below information.
Your table name must be YOUR LAST NAME. If your table contains unnecessary
information and fields, you will be penalized.
Field Name
PayNumber
CompanyNum
DateOfPaid
AmtPaid
Data Type
Text
Text
Date/Time
Currency
Description
Primary Key
Foreign Key
Field Properties
field size (10)
format: short date
format: currency
1. Add the records shown in below table to the table.
PayNumber
20131
20102
20115
CompanyNum
1111
1147
1151
DateOfPaid
06/03/2015
06/01/2015
06/02/2015
AmtPaid
$2,500.00
$2,700.00
$2,000.00
2. Make the following changes to the structure of the table:
a. Add a new field between the PayNumber and CompanyNum fields, using following
properties:
Field Name: DepositNum
Data Type: Text
Field Size: 3
b. Move the DateOfPaid field so that it follows the AmtPaid field.
3. Use the table Datasheet View to update the database using follows:
a. Enter following DepositNum values for the three records:
101 for PayNumber 20102
102 for PayNumber 20115
103 for PayNumber 20131
b. Add a record to the Payment datasheet with these field values:
PayNumber: 20105
DepositNum: 117
CompanyNum: 1103
AmtPaid: $1,250.00
DateOfPaid: June 20th, 2015
c. Save the revised table structure.
PART 2 – 5 points
1. Import the three Excel Worksheets (Supplier, Employee, and Order) into the existing
database that you created in PART I using your last name and first initial of your first
name.
• Use headings from the each Excel sheet for each Access table.
• Define each imported table’s primary key using below:
 Supplier table: SupplierID
 Employee table: EmployeeID
 Order table: OrderID
2. Establish relationship among ONLY three imported tables using common fields.
3. Enforce the following referential integrity rules: Cascade Update Related Fields and
Cascade Delete Related Records.
PART 3 – 16 points (2 points each)
 There are following three tables in the CSUBbank database: Customers, Loans, and
Payments. Import them (three tables) into the existing database that you created in PART 1.
 Remember! If your query contains unnecessary information (e.g., tables or queries), you will
be penalized.
1) I would like to have a list of all the CUSTOMERS names with a last name beginning
with the letter P. Name this query as your last name and query 1 (i.e., SmithQuery1).
2) I would like to have a list of all the CUSTOMERS names with a last name beginning
with H OR a first name beginning with M. Name this query as your last name and query
2.
3) I would like to have a list of all the CUSTOMERS names with a last name beginning
with S and Customers who live in CA . Name this query as your last name and query 3
4) I would like to have a list of the LoanID, the InterestRate and the Amount of any loans
with interest rate that exceeds 8.5%. Name this query as your last name and query 4
5) I would like to have a list of CUSTOMERS First Name, Last Name, and Amount of any
customers whose loan amount exceeds $100,000. Also, since any payment can be late, I
would like to calculate a 5% late charge for each Amount. Name this query as your last
name and query 5
6) I would like to have a list of CUSTOMERS First Name, Last Name, Amount, and Date
of any customers whose loan amount is less than $150,000 and loaned date is between
1/15/99 and 4/15/99. Name this query as your last name and query 6
7) I would like to know Sum, Average, Max. and Min. of Loans (These four items must all
appear in the same query). Name this query as your last name and query 7
8) I would like to know Sum, Average, Max. and Min. of Loans based on type of loan.
Name this query as your last name and query 8
PART 4 – 10 points (5 points each)
1) Create a form using the Loans table, and then save as your last name and form (i.e.,
SmithForm). Each step of the Form wizard, make sure to select first option (just like inclass lecture).







Select all the fields from the Loans table for creating the form.
Following fields: LoanID, Type, and CustomerID must be on same line.
There are some changes: (1) change LoanID to Loan Number, (2) change Type to Loan
Type, and (3) change CustomerID to Customer Number.
The Date field should be on a line by itself.
Also the Amount field should be on a line by itself.
The InterestRate field and the Term field must be on same line.
Add a label in the Form Header section. The label for your form should be Loan with
Payment Entry Form. The font size should be a minimum 16. Your title must be
centered. You need to change the font color of your label text and the color of your
label so that your form label is easily viewable on your computer screen.
2) Create a report using the Loans table, and then save as your last name and Report (i.e.,
SmithReport). Each step of the Report wizard, make sure to select first option (just like
in-class lecture).
 Select all the fields from the Loans table for creating the report.
 The Amount field should be sorted in ascending order.
 Center the title in the middle of the page.
 There are some changes: (1) Change LoanID to Loan Number, (2) Change CustomerID
to Customer Number, and (3) Change InterestRate to Interest.
 Adjust vertical alignment of each field. All words in the report must be clearly visible.
Download