Jump to content

Select fields from linked table with more than one foreign key


jkkenzie

Recommended Posts

The code below is not giving me records in tbl_business with ONLY more than 1 related records in tbl_activities

SELECT tbl_activities.act_code, tbl_business.bid, tbl_business.appformno, tbl_activities.appformno 
FROM tbl_business
INNER JOIN tbl_activities ON tbl_business.appformno = tbl_activities.appformno
HAVING tbl_activities.appformno >1
LIMIT 50

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.