|
| | |
|
Consider the following database table "Products":
Code
|
Name
|
Stock |
001
|
Coca Cola
|
100
|
002 |
Pepsi Cola |
200
|
003
|
Pork Chops
|
300
|
|
|
|
|
|
|
Example 1
|
|
Example 2 |
Lookup(Products, Stock, >, 100)
Result = TRUE
|
|
Lookup(Products, Stock, >, 300)
Result = FALSE |
|
|
|
Example 3 |
|
Example 4 |
Lookup(Products, Stock, >, 100, Stock, < 300)
Result = TRUE |
|
Lookup(Products, Name, LIKE, "%Cola")
Result = TRUE |
|
|
|
Example 5 |
|
Example 6 |
Lookup(Products, Name, LIKE, "Cola%")
Result = FALSE |
|
Lookup(Products, Name, LIKE, "%Cola", Stock, >, 100)
Result = TRUE |
- When you specify more than one condition, the operator used between the conditions is "AND". Therefore, something like "select (...) from (...) where (...) AND (...)" will be executed.
|
Updated: 3/22/2013 4:15 PM |
| |
|
|
|