Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set relationship
Message
From
07/02/2014 14:33:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01593576
Message ID:
01593696
Views:
30
>>>Should I be able to test each of the selects separately, starting from the bottom? In the top select, does the line
>>>
>>>NVL(T1.RatingSum,0) + NVL(T2.RatingSum) as TotalRating, ;
>>>
>>>presuppose that a field named RatingSum already exists, or can it be a field that is defined in this query
>>>Thanks
>>>Steve
>>
>>To test, start from the query defined in parenthesis and run it with output to a cursor and then browse that cursor (remember my suggestion in your other thread).
>>
>>In fact, I think it will be easier for you to first run all your sums into cursors and only after you get the intermediate data for each hour and verify them, join all these cursors together and get the final result you're after.
>
>OK. I have the two bottom selects working, but the top one still produces an error in the second line which is:
>
>
>NVL(T1.RatingSum,0) + NVL(T2.RatingSum) as TotalRating,;    && too few arguments
>
NVL(T2.RatingSum,0)
Previous
Reply
Map
View

Click here to load this message in the networking platform