Ted Roche wrote:
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
Thanks, Ted. That was it. You just beat me to the post. <g> The
parms ('TRIAL' and 1) were hardcoded for example above, but in my code
they're really parms with the ?pcClient and ?tiRoleID notation. What's
cool is that I had never used parms in JOIN conditions before and was
happily surprised to see they worked there too (in addition to WHERE
clauses).
--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"
_______________________________________________
Post Messages to: [email protected]
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.