Answer the question
In order to leave comments, you need to log in
How to take into account the number of weeks in a SQL query?
There is a task. In SQL query, 2 dates "from" and "to" can be substituted.
You need to take "from", round up to the 1st of the month. From "to" is the same only until the last day of the month.
It is necessary to calculate how many calendar weeks are affected during this period and in the future to use these time periods as selection conditions from another table. How to implement it?
Week count example:
******1
2*****8
9*****15
16*****22 23
*****
28
29.30
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question