On 6/19/06, MB Software Solutions <[EMAIL PROTECTED]> wrote:
select f1.cfuncname, ifnull(r1.crights,'11') as crights from functions f1 left join rights r1 on f1.iid = r1.ifunctionid where r1.cclient = 'TRIAL' and r1.iroleid = 1
Your WHERE clause may be filtering out all of the r1 records that come back NULL. Try insteadL SELECT f1.cfuncname, ifnull(r1.crights,'11') as crights FROM functions f1 LEFT JOIN rights r1 ON f1.iid = r1.ifunctionid AND r1.cclient = 'TRIAL' and r1.iroleid = 1 -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.