Expression | Result |
|---|---|
SELECT ClientName | All client names from the first lookup table containing the column ClientName |
SELECT ClientName WHERE 'Head Office Country' Is "USA" | Names of clients in USA from the first table containing ClientName and 'Head Office Country' |
SELECT ClientName FROM LOOKUP Customer WHERE 'Head Office Country' Is "USA" And 'Customer Type' Is ClientType | Names of clients in USA from the Customer table matching the value of the ClientType variable |
Expression | Result |
|---|---|
SELECT ClientID, ClientName | All client IDs and names from the first table containing both columns |
SELECT ClientID, ClientName WHERE 'Head Office Country' Is "USA" | IDs and names of clients in USA from the first matching table |
SELECT ClientID, ClientName FROM LOOKUP Customer WHERE 'Head Office Country' Is "USA" And 'Customer Type' Is ClientType | IDs and names of clients in USA from the Customer table matching the ClientType variable |
Parameter | Data Type | Description |
|---|---|---|
1 | Any / Any* | The name of a column, or a list of column names (when selecting multiple columns) |
2 | Any | The name of the lookup table (optional) |
3 | Boolean | The boolean expression over columns in the lookup table (optional) |