Re: How to get count(id) when count is zero?

2004-07-03 Thread Michael Dykman
This should work select C.cId cc, count(D.catId) dd from C left outer join D on C.cId = D.catId group by cc; - michael dykman - [EMAIL PROTECTED] Kapoor, Nishikant wrote: Hello List, It sounds like a simple query but I have spent quite a few hours already, and still do not have a

How to get count(id) when count is zero?

2004-07-02 Thread Kapoor, Nishikant
Hello List, It sounds like a simple query but I have spent quite a few hours already, and still do not have a solution. Would greatly appreciate your response. Here is what I am trying to do: --- create table C (cId tinyint(4) NOT NULL); insert into C values (1),

Re: How to get count(id) when count is zero?

2004-07-02 Thread Martijn Tonies
Hi, It sounds like a simple query but I have spent quite a few hours already, and still do not have a solution. Would greatly appreciate your response. Here is what I am trying to do: --- create table C (cId tinyint(4) NOT NULL); insert into C values (1), (2),