Hi Everyone,
I have a problem. So here is my setup.
TABLE1
id | firstname
------------------------
1 | John
2 | Susan
3 | Michael
TABLE2
userid | date | payment
-------------------------------
1 | 2009-12-28 | Unpaid
2 | 2010-02-10 | Paid
3 | 2010-02-28 | Unpaid
This is my select statement
select table1.id, table1.firstname, table2.userid, table2.date, table2.payment from table1 inner join table2 on table2.userid=table1.id where payment='Unpaid' order by table1.id
My problem is I want to only select/print the row, where the date is past due and unpaid.
Can someone help me figure this out, I can't get it to work and i'm new at this.
Thanks