M
Mark Burns
Just a question - not really a pressing issue, but I was wondering something
based upon somebody else's question in the .forms section.
Field Data Sample:
Field1: Text(50)
Sales
Yadda
Non-Sales
Low Sales
High Sales
Bonus Sayes
Yadda Yadda
Overstock Sales
Sales - East
Sales - West
Non Sales Northwestern
etc.,.
If, when querying this data you would like to Query for all the "sales" data
("Non-Sales" being, by definition not sales data). What is the best way to go
and get this sort of data.
a Query Expression of: Like "*Sales*" (/ Alike "%Sales%") would not do
because it would retrieve those pesky "Non-Sales" rows. Now, we could easily
exclude them with a specific '... and [Field1] <> "Non-Sales"...' condition
expression, but that can be cumbersome, hard to maintain, and inaccurate over
time.
What would be the best way to query in a situation like this?
I was thinking about a combined Like/Alike and IN operator something along
the lines of:
(Field1 Like in ("* Sales", "Sales *") )
and (field1 not like in ("non Sales *", "No*Sale? *")) .
....or is there some Regular Expressions sort of way I'm not thinking of
here...?
based upon somebody else's question in the .forms section.
Field Data Sample:
Field1: Text(50)
Sales
Yadda
Non-Sales
Low Sales
High Sales
Bonus Sayes
Yadda Yadda
Overstock Sales
Sales - East
Sales - West
Non Sales Northwestern
etc.,.
If, when querying this data you would like to Query for all the "sales" data
("Non-Sales" being, by definition not sales data). What is the best way to go
and get this sort of data.
a Query Expression of: Like "*Sales*" (/ Alike "%Sales%") would not do
because it would retrieve those pesky "Non-Sales" rows. Now, we could easily
exclude them with a specific '... and [Field1] <> "Non-Sales"...' condition
expression, but that can be cumbersome, hard to maintain, and inaccurate over
time.
What would be the best way to query in a situation like this?
I was thinking about a combined Like/Alike and IN operator something along
the lines of:
(Field1 Like in ("* Sales", "Sales *") )
and (field1 not like in ("non Sales *", "No*Sale? *")) .
....or is there some Regular Expressions sort of way I'm not thinking of
here...?