![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Unlike SQL you don't need the brackets ... the query is "understood" as plain english .... so list customer customer-id with customer-id = "10" or with dept = "sales" will give you the required results |
#4
| |||
| |||
|
|
SELECT filename WITH ITEM1 = "A" "B" "C" AND WITH ITEM2 = "D" OR WITH ITEM3 = "E" AND WITH ITEM2 = "D" |
|
Hi Anish, I don't know about D3 specifically, but in mvBASE, R83 and probably most other multi-value systems you need to also understand how the system parses the statement. The system will parse on the OR in the statement. So, if your selection criteria includes both AND and OR, make sure to repeat all required ANDs on both sides of the OR. For instance: SELECT filename WITH ITEM1 = "A" "B" "C" AND WITH ITEM2 = "D" OR WITH ITEM3 = "E" AND WITH ITEM2 = "D" In this statement records with ITEM2 = "D" will be selected as long as either ITEM3 = "E" or ITEM1 has a value of "A", "B" or "C". The implied OR for ITEM1 does not affect the parsing. If you don't repeat the ITEM2 = "D" on the right-hand side of the OR, all records with ITEM3 = "E" will be selected regardless of the value of ITEM1 or ITEM2. Good luck, Steve "Ross Ferris" <rossf (AT) stamina (DOT) com.au> wrote in message news:1142852899.347469.98190 (AT) v46g2000cwv (DOT) googlegroups.com... Unlike SQL you don't need the brackets ... the query is "understood" as plain english .... so list customer customer-id with customer-id = "10" or with dept = "sales" will give you the required results |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |