[sql] See whether an item appears more than once in a database column