This is probably a FAQ for you guys, but I'm not having much luck with the board's search feature at present.
Here's the jist of it:
mysql>select gc.id,gc.title,gce.name,gce.value,gce.question as qid,gc.live
from good_cookies as gc left join good_cookies_extra as gce on (gc.id = gce.class_id) and (gc.live=1) limit 5;
+-----+------------------------------------------------+-------+-------+------+------+
| id | title | name | value | qid | live |
+-----+------------------------------------------------+-------+-------+------+------+
| 151 | White Chip Macadamia Nut | NULL | NULL | NULL | 0 |
| 146 | Chocolate Chip | NULL | NULL | NULL | 0 |
| 195 | Pecan Sandies | Brand | Ricoh | 310 | 1 |
| 198 | Rocky Road | Brand | Ricoh | 310 | 1 |
| 147 | Oatmeal Raisin Wunderschnitzel | NULL | NULL | NULL | 0 |
+-----+------------------------------------------------+-------+-------+------+------+
I don't mind the NULLs (after all, that's why the LEFT JOIN), but I can't wrap my head around only getting results with live=1 ... 🙁
I've spent a tad too much time trying to read up today and my brain's starting to smoke; I thought perhaps one of you DBA wonder-types would have a Good Word for me 🙂
Thank you!