ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now

Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
SOLVED

Is 'does not contain' the same as 'not like' in the SQL editor?

Katie_K
7 - Meteor

Hi folks, bit of a rookie question here, but I'm fairly new to using the SQL editor in Alteryx.

 

I am currently using a filter tool in a workflow and want to instead put that filter at the starting input tool via the SQL editor.

 

Is using 'not like' in the SQL editor the same thing as using a filter tool on the same field with 'does not contain'?

 

Thanks, Katie

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @Katie_K,

 

Yes I believe it would be, however you'll want to make sure to include percentage signs to convert it to be a wildcard contains search:

 

WHERE FieldName LIKE '%string%'

 

Would pick up where the FieldName contains string.

 

Kind regards,

Jonathan

Sebastiaandb
7 - Meteor

Hi @Katie_K ,

 

In SQL you probably want to use "VARIABLE not in ('1')' as in the Alteryx workflow filter you would use !=. 

So you're correct when stating they're different :-).

 

Hopefully this helps!

 

Greetings,

 

Seb 

Sebastiaandb
7 - Meteor

@Jonathan-Sherman **bleep** ACE members are always so fast haha 😉

Jonathan-Sherman
15 - Aurora
15 - Aurora

@Sebastiaandb we do try 😉

Katie_K
7 - Meteor

Thanks Jonathan!  Just tried it both ways now (with and without the wildcard signs) and I got the difference between the two ways that I was expecting... using the wildcard signs is the way to go.  You've made my day, cheers 🙂

Katie_K
7 - Meteor

Thanks Seb!!  Appreciate your response 🙂

Labels