how to use cardinality function of postgresql

join shbcf.ru