Customer Intimacy Analytics MS SQL Queries