Menu
mediumTenaga Nasional · basics

Label TNB bills as on-time, late, or unpaid

TNB wants a status label for every electricity bill:

- Unpaid if it hasn't been paid yet (paid_date is missing) - Paid on time if it was paid on or before the due date - Paid late if it was paid after the due date

Return customer, amount, and status.

Schema

bills
idINT
customerTEXT
amountNUMERIC
due_dateDATE
paid_dateDATE

Example input

bills
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.