vertica query for customer_IDs with profile attributes set