Values from 2 tables in one column

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=========> RE: queries

Post by kfleming » Fri Feb 25, 2005 5:14 pm

Try adding some extra ()^s to force the order of evaluation:____TABLE01->FIELD01 is equal to ParameteRR01 __or (TABLE02->FIELD02 is equal to ParameteRR02 __and (TABLE02->FIELD03 is equal to _KE*_ __or TABLE02->FIELD03 is equal to _KS*_))____This will OR the table1 condition with the table2 condition where the table2 condition first OR^s the two field3 condition and then ands the result with tha parameter comparison.__So there are two sets of extra parentheses that are added.____As long as there are records in each scan that meet the condition it should work.____Kathleen __R&R Support__

happydermis
Posts: 63
Joined: Tue Oct 10, 2017 12:44 pm

==========> RE: queries

Post by happydermis » Fri Mar 04, 2005 9:29 am

Thanks Kathleen,____I am still working on finding the right query. I will keep you informed :-)____Dekers

happydermis
Posts: 63
Joined: Tue Oct 10, 2017 12:44 pm

===========> RE: queries

Post by happydermis » Thu Mar 10, 2005 1:14 pm

Well, the solution was not that difficult (as usually...)____TABLE01->FIELD01 is equal to ParameteRR01__or (TABLE02->FIELD02 is equal to ParameteRR02__and TABLE02->FIELD03 is in the list "KE*","KS*")____I simply used "in the list" instead of two separate queries____Thanks for the support, Dekers

Post Reply