Hi, I've been stuck with this issue for days, which is something like calculating the numbers of weeks that lies between two days, for example:
Select @Days = (datediff( week, @pdtFromDate, @pdtToDate) - 1) * 5
This returns the output as 257.
I need to convert this script into MySQL.
Any suggestions?