RE: RE: Re(2): [SQL] optimize sql

2000-07-28 Thread Henry Lafleur
fine true to be the max. Henry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 27, 2000 9:28 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: RE: Re(2): [SQL] optimize sql but active is a boolean field. [EMAIL PROTECTED] writes: >I

RE: Re(2): [SQL] optimize sql

2000-07-27 Thread Henry Lafleur
If you know that 't' will always be the highest character in the active field for all records: SELECT name FROM office, office_application WHERE code = office_code GROUP BY name HAVING MAX(active) < 't' Of course, if you have an active that is 'z' for example, then this won't work. I think this