Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexpected query result
Message
From
17/07/2001 09:05:24
 
 
To
17/07/2001 07:34:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00483532
Message ID:
00531469
Views:
15
Obviously I am being dense today, but I still cannot see why changing the order of the 2 expressions changes the results.
select ... where (a.fld2a=b.fld2b) AND (trim(a.fld1a)=trim(b.fld1b))
and
select ... where (trim(a.fld1a)=trim(b.fld1b)) AND (a.fld2a=b.fld2b)
really ought to give the same results & the results should be consistent regardless of setting ansi (I know setting it to on affects the results & leads to consistent results, but even if off the results should be consistent).

I described the problem somewhere as asking for a list of all people called Len and having fair & then asking for a list of all people with fair hair and called Len. Would you (intuitively) expect to get different results ?
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform