'How to read from a file instead of hardcoding string in redash in SQL

In redash you can write string that you can look for in a table.

Say I have a CSV file with 500 strings I want to look for the string in a table. How can I look for it.

Table

Names      salary
Chris.     500
Adam       800
Stewart    1000
Fabiana    20000

How can I read from a file instead of doing this

Name = "Chris"

I will read from file all the names then look for them in a table.

This applies to PostgreSQL and SQL.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source