Last answered:

12 Mar 2024

Posted on:

11 Mar 2024

0

not in vs not like

what is the difference between not like and not in

1 answers ( 0 marked as helpful)
Instructor
Posted on:

12 Mar 2024

0

Hi Goodness Abija!

Thanks for reaching out!

Typically, NOT LIKE is used to filter out rows that match a specific string pattern, while NOT IN - to eliminate rows that correspond to certain values or the outcomes of a subquery. While NOT IN works with any data types, NOT LIKE is specifically used for string comparisons.

Hope this helps.

Best,

Ivan

Submit an answer