hi,
I am having a problem doing a select in MySQL among multiple tables. I have two tables that are virtually the same except that one table is for January and one is for February. I have two columns in each of the tables i want to match on: Account, AmountPaid. I want to develop a query that will tell me which accounts have a $0 amount paid in both January and in February. I tried:
select count(J.account) from JanTable J, FebTable F where J.AmountPaid=0 and f.AmountPaid=0
but the above query returned a huge number. Anyone have the right approach for this?
Thanks!