I need a query that returns me the average of a relative month, and a day of the week.
For example:
I need to know the components for the month of February, the day of the week Monday.
It is possible to define some expression for DATA
, DATA
is of date type in sql
SELECT AVG(P.Quant) AS Expr1
FROM P
WHERE (Pro.Tipo = 'B') AND (V.ID= 1)
AND (DATA =:....")