Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find nearest date in select sql
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01186568
Message ID:
01186588
Views:
13
>
>select sum(quantity)*sum(price)/sum(quantity) as navgpriceB where fischetype= m.lcfishcode2 and ;
>between(ldate,m.ldfirst,m.ldend) into cursor CrsBuyings
>
>
>if navgpriceB=0 at CrsBuyings in some records i wantto use nearest price as a first date in 3rd query

First after ldend?

Also, the following expression doesn't make sense to me. Can you explain?
... sum(quantity)*sum(price)/sum(quantity)
is the same as
sum(price)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform