DISTINCT
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
In a SELECT statement, the DISTINCT keyword is used
to retrieve unique values from a table.
Example
The following example illustrates a
In this example,
SELECT statement with the
DISTINCT keyword when fetching a DDM-configured field.
|
CustNum is a DDM-configured field.
Regardless of your DDM privileges, the SQL engine processes the
DISTINCT keyword by retrieving the unique and unmasked values
of CustNum internally. Upon retrieval, the engine then masks these
values if you do not have the required unmasking privileges and returns them;
otherwise, it returns unmasked and distinct values of CustNum.