Hello All,
I've a query like below
SELECT PRD_DATE,
Count(DISTINCT PRD_AMT), Sum(PRD_TAX) AS TAX
FROM PRODUCT
WHERE REL_DATE= '2023-06-25' AND PROD_ID = '123'
AND PRD_DATE<= '2023-06-25' AND PRD_DATE >= '2023-06-19' (this should be 7 days back from REL_DATE)
GROUP BY 1
Here I want to update the REL_DATE and PRD_DATE dynamically (updating any specific date other then '2023-06-25') using the excel file so that I can also schedule it in the server.
Please advise.
NOTE - I can't use current date as there are chances that the data might not be available for that date. Hence I want to update the particular date
BR
Swapsingh