Re: [PHP-DB] LEFT JOIN not working

2003-01-15 Thread Ignatius Reilly
ornemann > > -Oprindelig meddelelse----- > Fra: Lisi [mailto:[EMAIL PROTECTED]] > Sendt: 14. januar 2003 18:47 > Til: Ignatius Reilly > Cc: PHP-DB > Emne: Re: [PHP-DB] LEFT JOIN not working > > > Still not working. I made the change, and I'm still getting all results.

Re: [PHP-DB] LEFT JOIN not working

2003-01-14 Thread Miles Thompson
= '01' (if your table ads_displayrate has such date fields). HTH Ignatius - Original Message - From: "Lisi" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 6:54 PM Subject: Re: [P

Re: [PHP-DB] LEFT JOIN not working

2003-01-14 Thread Lisi
H(ads_displayrate.date) = '01' (if your table ads_displayrate has such date fields). HTH Ignatius - Original Message - From: "Lisi" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]> Sent: Thurs

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Ignatius Reilly
L PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 6:54 PM Subject: Re: [PHP-DB] LEFT JOIN not working > Cool! It's mostly working now, the only problem is it's ignoring the other > clauses in the ON clause that select the d

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Ignatius Reilly
m?" D. Ivester, CEO, Coca Cola - Original Message - From: "Lisi" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]>; "PHP-DB" <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 1:11 PM

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Lisi
uot;) Ignatius - Original Message - From: "Lisi" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]>; "PHP-DB" <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 12:18 PM Subject: Re: [PHP-DB] LEFT JOIN not working > OK

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Ignatius Reilly
ent: Thursday, January 09, 2003 12:18 PM Subject: Re: [PHP-DB] LEFT JOIN not working > OK, this helped a bit. Now I have, in addition to the three rows of ads > that have ben clicked on, a fourth row with no ad name, 0 clickthroughs, > and 24 displays. That plus the other three account f

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Lisi
OK, this helped a bit. Now I have, in addition to the three rows of ads that have ben clicked on, a fourth row with no ad name, 0 clickthroughs, and 24 displays. That plus the other three account for all the displayed ads. However, since it is returning a null value for any ad name that has not

Re: [PHP-DB] LEFT JOIN not working

2003-01-09 Thread Ignatius Reilly
problem 1: move the WHERE clauses to the ON clauses problem 2: Obviously your intent with " COUNT(ads_clickrate.date) " is to count the number of non-null occurences of click. But COUNT() is not the appropriate function to do this (it will simply give you the number of rows inside a group). Try r