Jump to content

get multiple zero count !


mounika

Recommended Posts

HI,

Can any one tell what should be the query to count from two tables where we have to get zero count for null.

Ex:
[b]Table 1:                  Table 2:[/b]
[b]ID Name                  ID  Subjects  Table1ID [/b]   
1  abc                        1    English    1
2  xyz                        2    Maths      1
3  mno                      3    Science    1

Result should be:

[b]Name  count(subjects)[/b]
abc      3
xyz      0
mno      0

Thanks in Advance!
Link to comment
https://forums.phpfreaks.com/topic/26409-get-multiple-zero-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.