How to count number of unique records of a field in progress openedge 4gl? -


i have customer table field age . how can count how many distinct ages there ?

you can in abl using for-loop , break , counter. there built in aggregate functions (accum) in abl seen in wild...

define variable integer     no-undo.  each record no-lock break record.age:     if last-of(record.age) do:         = + 1.     end. end. message "there " " unique ages" view-as alert-box. 

or crippled built in sql:

select count(distinct age) record. 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -