Hello, I'm a beginner, I'm learning to do select, and I would like to receive help from this wonderful community.
I need to pick up only the invoices that are with the a_vencer status of each student, it would more or less group by id the invoices that are with the status a_vencer.
I have a table called invoices with the following fields: id, child_id, value, expiration and status where each student has several invoices, each invoice has the student id, some invoices are paid and others are due, and I wanted to make a select in this table and find students who have only 1 invoice in arrears.
How would I do this? I thank the help of all you! Thank you