Skip to content
Advertisement

Find the difference between 1 column depending on date

When I run this:

I see 62 rows

but when I do

I see 59

I want to see what NAME’s are missing when it ran for _LOAD_DATETIME::date = ‘2022-02-01’

I thought this would work but it doesn’t:

Advertisement

Answer

You have to use MINUS for your purposes:

If we are talking about PostgreSQL, you have to use EXCEPT instead of MINUS.

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