4D v14.3QUERY SELECTION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
QUERY SELECTION
|
QUERY SELECTION ( {aTable }{;}{ queryArgument {; *}} ) | ||||||||
Parameter | Type | Description | ||||||
aTable | Table |
![]() |
Table for which to return a selection of records, or Default table, if omitted | |||||
queryArgument | Expression |
![]() |
Query argument | |||||
* | Operator |
![]() |
Continue query flag | |||||
QUERY SELECTION looks for records in aTable. QUERY SELECTION command changes the current selection of table for the current process and makes the first record of the new selection the current record.
QUERY SELECTION works and performs the same actions as QUERY. The difference between the two commands is the scope of the query:
For more information, see the description of the command QUERY.
This example illustrates the difference between QUERY and QUERY SELECTION. Here are two queries:
` Find ALL companies located in New York City
QUERY([Company];[Company]City="New York City")
` Find ALL companies doing Stock Exchange business
` no matter where they are located
QUERY([Company];[Company]Type Business="Stock Exchange")
Note that the second QUERY simply “ignores” the result of the first one. Compare this with:
` Find ALL companies located in New York City
QUERY([Company];[Company]City="New York City")
` Find companies doing Stock Exchange business
` and that are located in New York City
QUERY SELECTION([Company];[Company]Type Business="Stock Exchange")
QUERY SELECTION looks only among the selected records, therefore, in this example, among the companies located in New York City.
Product: 4D
Theme: Queries
Number:
341
Modified: 4D v6.5
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)