I have two db tables Fine and Fine_payment.
Fine has fields
* fine_id[pk]
* fine_amount.
Fine_payment has fields
* fine_payment_id[pk]
* fine_id
* payment_amount
So every Fine can have multiple payments. How would I go about selecting those Fines that haven't been paid fully and show the unpaid amount?
Oracle DB.