I have 3 tables:
users(id, account_balance) grocery(user_id, date, amount_paid) fishmarket(user_id, date, amount_paid)
Both fishmarke
fishmarke
It's because when the user table joins to the grocery table, there are 3 records matched. Then each of those three records matches with the 4 records in fishmarket, producing 12 records. You need subqueries to get what you are looking for.