• To improve performance, you should also want to take isc.data_type into account, you won't be storing email addresses in datetime, interger etc columns.
    You may however, have columns with the TEXT data type, and this throws an error:

    Operand data type text is invalid for count operator.