> From: MB Software Solutions <[EMAIL PROTECTED]>
> 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).

Just a heads up on the order of use in an SQL Query:
1) Join / From condition
2) Where clause
3) Group by
4) Having
5) column list
6) order by.


I am in the process of revamping some older reporting queries and if I
structure the where as part of the join, it cranks instead of time out.
 

YMMV.



_______________________________________________
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.

Reply via email to