Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL statement in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01341107
Message ID:
01341145
Vues:
17
Sergey,

Thank you.


>Bob,
>
>Make sure to put approprite # of '0' in the IIF
>
>SELECT  ;
>	ord.OrderID, ;
>	SUM( IIF(shp.ShipDate <  ldFromDate, shp.ShipAmt, 000000000.00)) AS ShipAmtBefore, ;
>	SUM( IIF(shp.ShipDate >= ldFromDate, shp.ShipAmt, 000000000.00)) AS ShipAmtAfter ;
>  FROM Order ord
>     JOIN Shipment shp ON ord.OrderID = shp.OrderID ;
>GROUP BY ord.OrderID		
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform