join - mysql count records by subquery on same table -
my problem joining 4 tables left join cant use group rather sub query. how count of main table based on specific column tips . possible. in advance
i have tried way.
select * ,sql_1.trans table1 left join table b on condition left join ( select count(*) trans,dentist_id did3 table1 group dentist_id ) sql_1 on did3=a.dentist_id a.current_tab='pack'
Comments
Post a Comment