I have two (2) tables in one database, I want to display all members that are not paid for either payment:
I tried this but not working:
SELECT members.*, payments.amount='', paid_for='fee';
Table 1 "members" with ID, ROLL NO and NAMES
Table 2 "payments" with ID ROLL NO, AMOUNT, PAID_FOR, DATE, STATUS, RECEIPT NO
I want to select all where AMOUNT is empty , PAID FOR fee
That means if there no payment made, it display all members in database as not paid.