Skip to content
Advertisement

SQL query – not null

I have sql query:

I got this table

id position10 position20 position30
1 2021-05-02 2021-05-02 2021-05-3
2 2021-05-15 2021-05-16 2021-05-18
3 2021-07-08 NULL NULL

And I want lines where NULL values are not picked up. A try this:

But it still chooses to me where the NULL value appears somewhere.

Advertisement

Answer

You need to change OR to AND in WHERE clause

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