60.5k views
0 votes
Create a copy of the Transfer Credits query. Name the copy Transfer Calculations. Open the new query in Design view. Remove the criteria from the AdmissionDate field. Create a calculated field in the first empty field cell of the query named LostCredits that subtracts CreditsTransferred from CreditsEarned. Create another calculated field named TuitionPayments that uses the payment function and determines tuition paid in four installments. The student's tuition payment and a 2.5% interest rate should be used in the function. Use 0 for the future value and type arguments. Ensure that the payment appears as a positive number. Format the TuitionPayments calculated field as Currency. Create another calculated field named FirstPayment after the TuitionPayments field. To calculate the due date, add 30 to their AdmissionDate. Run the query and verify that the three calculated fields have valid data. Add a total row to the datasheet. Sum the TuitionDue column and average the TuitionPayment column. Save and close the query.

User Sarene
by
8.5k points

2 Answers

2 votes

Final answer:

To modify a query in a database, create a copy and rename it, remove criteria, add calculated fields for LostCredits and TuitionPayments, format outputs, and add summary calculations for TuitionDue and TuitionPayments before saving and closing the query.

Step-by-step explanation:

To address your question on creating and modifying a query in a database system, here's a step-by-step guide:

Create a copy of the "Transfer Credits" query and rename it to "Transfer Calculations".

Open the new query in Design view and remove any criteria from the AdmissionDate field.

To create the calculated field LostCredits, in the first empty field cell, enter:

LostCredits: [CreditsEarned] - [CreditsTransferred]

For TuitionPayments, use the payment function PMT: TuitionPayments: -Pmt([InterestRate]/100/12, 4, [TuitionPayment], 0, 0)

Ensure you replace [InterestRate] with 2.5 and [TuitionPayment] with the student's tuition payment. Format this field as Currency.

Add another calculated field named FirstPayment using the expression: FirstPayment: [AdmissionDate] + 30

Run the query to ensure that data in the three calculated fields appears correct.

Add a total row to summarize the TuitionDue and average the TuitionPayments.

Save and close the query.

Each step represents a crucial part of modifying a query to include calculated fields and formatting outputs in a database application.

User Yogus
by
8.9k points
3 votes

Final answer:

To address the student's request, a copy of the 'Transfer Credits' query is made and renamed 'Transfer Calculations.' Adjustments in Design view include removing criteria, adding new calculated fields, formatting, and running the query to ensure valid data output.

Step-by-step explanation:

To create a copy of the Transfer Credits query and name it Transfer Calculations, you would usually copy the original query in your database management system, such as Microsoft Access, and then rename the copied query accordingly. Once done, open the new query in Design view and proceed to make the necessary adjustments.

Next, remove the criteria from the AdmissionDate field to ensure it does not filter out any records based on the date. Then, you'll create a calculated field named LostCredits by typing in the expression 'CreditsEarned - CreditsTransferred' in the first empty field cell.

To calculate the TuitionPayments, you will use the payment function (PMT in Microsoft Access). Assume the loan has an interest rate of 2.5% and is paid quarterly, and the function is represented by 'Payment(0.025/4, 4, TuitionDue, 0, 0)'. Make sure to convert the result to a positive number, if necessary, and set the format to Currency. Following TuitionPayments, create a calculated field named FirstPayment, with the formula '[AdmissionDate] + 30', to represent the due date 30 days after admission.

Run the query to ensure that the calculated fields display valid data. Subsequently, to add total and average calculations, switch to datasheet view and use the Totals feature to sum the TuitionDue column and average the TuitionPayments column.

After verifying the accurate computation and reviewing the results, save the query and close it.

User Arganzheng
by
8.4k points