Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WEEK in select SQL
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165550
Message ID:
01165582
Views:
16
>Maybe something along the lines of
>
>
>SELECT WEEK(Rtv_Head.RtvDate) as nWeek, MIN(Rtv_Head.RtvDate - Dow(Rtv_Head.RtvDate) + 1)) as dWeek_Start, ;
>	SUM(Qty*Price) AS Ret_Total ... from ... group by 1
>
>
>Completely untested and without giving it a second thought, so it might be completely wrong
>
>[Update]I wrote Week instead of Dow, just corrected it

Thanks, it worked.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform