4D v13.4REDUCE SELECTION |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
REDUCE SELECTION
REDUCE SELECTION
REDUCE SELECTION creates a new selection of records for aTable. The command returns the first number of records from the current selection table. REDUCE SELECTION is applied to the current selection of aTable in the current process. It changes the current selection of aTable for the current process; the first record of the new selection is the current record. Note: If the statement REDUCE SELECTION(0) is executed, there is no longer any selection nor any current records in the aTable. The following example first finds the correct statistics for a worldwide contest among the dealers in over 20 countries. For each country, the 3 best dealers who have sold product worth more than $50,000 and who are among the 100 best dealers in the world are awarded a prize. With a few lines of code, this complex request can be executed by using indexed searches: CREATE EMPTY SET([Dealers];"Winners") ` Create an empty set |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: < 4D v6 SEE ALSO
ORDER BY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||