distinct_listGenerates a distinct list based on the values of a specified field. Syntaxvoid distinct_list(list-name,col) list list-name int col DescriptionReturns a list with a single column of distinct values.
This function sorts the list on the specified field to group the rows with duplicate values and then deletes the duplicate rows. Exampledistinct_list() can be used in a window query trigger to make a distinct list based on the values of a specified field.
{
...
query(query_max,G.query_buf); /* execute the query */
distinct_list(p.wl,@p.an); /* p.an is a field name */
...
}
Updated 19 May 1999. Copyright DataAspects Corp. 1998-1999 |