Question: Write a SQL Query that deducts one percent from the amounts paid for purchases made in the month of December. The amounts customers paid are

Write a SQL Query that deducts one percent from the amounts paid for purchases made in the month of December. The amounts customers paid are listed in the payments table. The output of your script should show the payments before the rebate and the payments after the rebate.

The MySQL sample database schema consists of the following tables:

Customers: stores customers data.

Products: stores a list of scale model cars.

ProductLines: stores a list of product line categories.

Orders: stores sales orders placed by customers.

OrderDetails: stores sales order line items for each sales order.

Payments: stores payments made by customers based on their accounts.

Employees: stores all employee information as well as the organization structure such as who reports to whom.

Offices: stores sales office data.

Thank you.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!