Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find nearest date in select sql
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01186568
Message ID:
01186588
Vues:
22
>
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform