Attribute in LIST help needed

Hi Everyone, I am new to Tessitura and we converted a bunch of Named Spaces that Constituents gave to during a Campaign to Constituent Attributes.  In LIST I see the Constituent Attribute as a selection criteria, but I am unsure how to use LIKE to say IS NOT NULL

The query looks like this but I need to figure out how to get TX_CUST_KEYWORD.key_value LIKE '0*' to be IS NOT NULL or whatever the equivalent is.

The data I am trying to retrieve looks like 

G. Mt Vernon Barn Company Cupola

or 

05. HAMMOCK LOUNGE

SELECT DISTINCT a.customer_nol
FROM V_CUSTOMER_WITH_PRIMARY_GROUP AS a WITH (NOLOCK)
WHERE a.inactive = 1
AND EXISTS (SELECT *
FROM TX_CUST_KEYWORD WITH (NOLOCK)
WHERE TX_CUST_KEYWORD.customer_no IN (SELECT customer_no
FROM V_CUSTOMER_WITH_PRIMARY_GROUP
WHERE customer_no = a.customer_no)
AND TX_CUST_KEYWORD.key_value LIKE '0*'
AND TX_CUST_KEYWORD.keyword_no = 470)
AND EXISTS (SELECT *
FROM TX_CUST_KEYWORD WITH (NOLOCK)
WHERE TX_CUST_KEYWORD.customer_no IN (SELECT customer_no
FROM V_CUSTOMER_WITH_PRIMARY_GROUP
WHERE customer_no = a.customer_no)
AND TX_CUST_KEYWORD.key_value LIKE '*'
AND TX_CUST_KEYWORD.keyword_no = 472)

Thank you for your help

Parents Reply
  • Gawain's answer is correct on that.  "Since you only care about them having the Attribute, technically you could get rid of that whole clause and just have the AND TX_CUST_KEYWORD.keyword_no = 472"

    UNLESS you're storing unrelated values in the same keyword number.  In that case, you have to find something they all have in common that the unrelated values don't have. 

Children