🙏 Thank you for your support. Last month we received only $32. That covers servers, but not development, so there will be no new lessons or features this month. If you can, please support next month. Support now →
SQL code copied to buffer
RU PT FR
Task 26:

Generate monthly bill

Create a monthly billing report for customer Dorothy Taylor, itemizing film rentals from August 2005.The bill shoul be a table with next columns: 
title - rented film names
rental_date, return_date, payment_date - relevant dates,
rental_rate - film's rental rate, 
lateness_penalty - difference between rental rate and paid amount
amount - paid amount
Sort the table by payment_date. Add summary row to the bill with Total in title column, nulls in all data columns and sums in other columns.

Use MySQL syntax to write your answer. Descriptions of tables are provided in the right pane.

Write your request in the field below and click the "Check it!" button.
Get hint
Copy code Clear editor

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.