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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -