%SelectDistinct meta-SQL element
Syntax
%SelectDistinct(:num [ prefix])
Description
%SelectDistinct is shorthand for selecting all fields in the specified record, wrapping DateTime fields with %DateOut, %TimeOut, and so on.
The pseudocode looks like this:
Select DISTINCT(AllFields, :num correlation_id) from %Table(:num) prefix
This shortcut is only appropriate if the statement is being used in PeopleCode or Application Engine to read data into memory. Dynamic views should retain the internal database formats for DateTime fields.