79318455

Date: 2024-12-30 19:36:59
Score: 0.5
Natty:
Report link

Not sure what database or SQL flavor you're using but array_contains works for querying an array of strings:

SELECT *
FROM table
WHERE ARRAY_CONTAINS(column_name, "string") = True;

Doing it this way generate the actual rows of data, not just a Boolean as shown in the documentation.

https://docs.data.world/documentation/sql/reference/functions/array_contains.html

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Spencer