I have 3 tables with a common 'type_id' column. its a foreign key from Table_type
Table_1 id,type_id,date... Table_2 id,type_id,date... Table_3 id,type_id,date...
Table_Type id, type_name, description
select type_id, count(*) from Table_1 GROUP BY type_id
gives the count from individual table.
i want to know how many times is a particular type used.
type_id, count(from 3 tables) 1 , 10 2 , 5 3 . , 3