Skip to content
Advertisement

SQL comparing date

I want to compare the current date with a date from a database table.

This code:

gives me a date like this 2020-10

and i want that this code:

gets date like 2020-10 not 2020-10-12(some day)

Here is the whole sql query:

Thanks for help:)

Advertisement

Answer

This can make use of indexes

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