I am new to MYSQL and this forum, so please bear with me. I have been trying to figure this one out, but have so far drawn a blank. If anyone could help me out with the right SQL syntax for an Update Query, I would be most grateful, thanks.
I have two tables, A and B.
Table A contains:
match_key
corporate_stays
Table B contains:
match_key
corporate_stay_category
For each record on Table A, there will be one or many table B records, using the match_key as the join on both tables. Each matching Table B record will have either corporate_stay_category = "C", or blank (Not Null)
I want to be able to Update the corporate_stays on each record on table A, with a count of matching table B records that have a corporate_stay_category = "C".