I have only 1 column. I need statistics about it’s values and their usage:
Value | Count
-----------------
NULL | 41 (91%)
'' | 3 (3%)
'FOO' | 2 (2%)
'BAR' | 1 (1%)
Also I need to perform such query for every column in database. Is there utility to help me with such reports? I asking about Postgresql/Mysql.
Replace
tablefor your table name andvaluefor your column nameWith Percentages: