57.2.8 Query Store: Command: Order by Formula
This command allows you to sort using a formula. The result of the formula determines the position of the record within the selection. The result can be a numeric, string, boolean, date or time.
a It is slow. In fact it excruciatingly slow. Avoid it at all costs!
b It is easy to make errors in the formula definition
After selecting Order by Formula from the drop down menu or after clicking on a Order by Formula line in the Order By Display pane, you will see the Order by Formula editor controls:
To enter a Formula click on the Formula Button. The following page will display:
The result of a formula MUST be a numeric, string, boolean, date or time. A formula may reference any fields from a related table.
This area consists of several items:
Single Character Buttons - Displayed at the top of the page. These remind you of the Operators and Special Symbols that you can use in a Formula. Just Click the Buttons to automatically add or insert the character in to the Formula Text.
Fields area - Select the Field you require and then click Move Field Button to enter the selected field into the Formula area.
Function area - Not completed yet. We may add special functions that you can call from here later. Do not use at present.
Once you have completed your function, click on OK to record your Formula in the Editor.
|