Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SELECT workaround needed
Message
From
16/05/1996 08:30:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL SELECT workaround needed
Miscellaneous
Thread ID:
00001375
Message ID:
00001375
Views:
102
There is a bug in the view designer which prevents me from creating the SELECT I want to use because it scrambles the parenthesis. I am creating an application with a search which allows the user to enter multiple substrings and retrieves these records. Ordinarily, the SELECT statement would look like this:

SELECT {fields}
FROM {table}
WHERE ((table.subject = m.Term1a) OR
(table.subject = m.Term1b)) AND
((table.subject = m.Term2a) OR
(table.subject = m.Term2b)) AND
(table.subject = m.Term3) AND
(table.subject = m.Term4) AND
(table.subject = m.Term5)

The user can enter 5 terms, the first two of which can be one field OR the other (For entering a word and an abbreviation. The last three are single terms used in the search.
Next
Reply
Map
View

Click here to load this message in the networking platform