Re: What's wrong with this query?

2003-07-10 Thread Keith C. Ivey
On 10 Jul 2003 at 13:20, Chris Boget wrote: SELECT certificate.cert_num, master_info.uid FROM certificate JOIN master_info ON ( certificate.uid = master_info.uid ) LEFT JOIN endorsements ON ( certificate.cert_num = endorsements.cert_num ) WHERE certificate.active = 1 AND

RE: What's wrong with this query?

2003-07-10 Thread Jennifer Goodie
what would be causing the error: SELECT certificate.cert_num, master_info.uid FROM certificate JOIN master_info ON ( certificate.uid = master_info.uid ) LEFT JOIN endorsements ON ( certificate.cert_num = endorsements.cert_num ) WHERE certificate.active = 1 AND certificate.referred = 0 AND

Re: What's wrong with this query?

2003-06-23 Thread Chris Boget
Why isn't the key being used in the c (certificate) table? SELECT DISTINCT a.uid, a.company, a.firstname, a.lastname FROM master_info a, logins lsl, logins lc, certificate c WHERE a.uid = lsl.uid AND lc.parent = lsl.uid AND lc.uid = c.uid AND c.void 1 AND c.status IN ('CP', 'MC',

Re: What's wrong with this query?

2003-06-19 Thread Keith C. Ivey
On 19 Jun 2003 at 16:18, Chris Boget wrote: Why isn't the key being used in the c (certificate) table? SELECT DISTINCT a.uid, a.company, a.firstname, a.lastname FROM master_info a, logins lsl, logins lc, certificate c WHERE a.uid = lsl.uid AND lc.parent = lsl.uid AND lc.uid = c.uid AND