>>SELECT Detail.*, count(*) as Total, Codes.desc; >> FROM ; >> detail ; >> LEFT OUTER JOIN codes ; >> ON Detail.bccode = Codes.code; >> GROUP BY Detail.bccode; >> ORDER BY Detail.bccode >>Ok, I kinda get a feel for "the rule". I agree with the notion that the best solution means not using SET ENGINEBEHAVIOR as a workaround --- but only with new stuff. I've got acres of old code by programmer-de-jour to support that I'm not going to "fix" with anything but SET ENGINEBEHAVIOR 70. (Ya know, I've actually found some of these 'junk' fields referenced in code.)
SELECT Detail.bccode, count(*) as Total, Codes.desc; FROM ; detail ; LEFT OUTER JOIN codes ; ON Detail.bccode = Codes.code; GROUP BY Detail.bccode, Codes.desc; ORDER BY Detail.bccode