Link to home
Create AccountLog in
Avatar of Zack
ZackFlag for Canada

asked on

MYSQL Join Help

Hi - I have 2 tables eeconf and eereminders.  I want to display everything * from eeconf but I want to count how many appearances of the column `code` that appears in eereminders.   I'm not sure how the join would look.  `code` is common to eeconf and eereminders.  I want to display every record from eeconf even if there isn't a `code` match in eereminders.

Hope I was clear enough! :)

Thanks - Zack
ASKER CERTIFIED SOLUTION
Avatar of Sharath S
Sharath S
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
try this
select * from eeconf
left outer join eereminders
on eeconf.code = eereminders.code

Open in new window

SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Zack

ASKER

Thanks all!  Sharath and pratima worked properly so I split the points!

Thanks!!