Skip to content
Advertisement

How to have different values of a single column in a condition where in sql?

I write a SQL query to get different sales information about stores.

The problem is that I would like to filter and take only some store numbers in my "GL_ETABLISSEMENT" column, if I just do AND (GL_ETABLISHMENT = "20897") it works but not if I add more behind, how can I do it?

Advertisement

Answer

Do you want in?

Note: use single quotes for literal strings instead of double quotes. This is standard SQL, which all databases support (while, in standard SQL, double quotes stand for identifiers).

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement