Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inconsistent Query Results
Message
De
13/04/2005 08:34:07
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
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 9
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01003809
Message ID:
01004110
Vues:
23
>Try (VFP9 only)
SELECT RoseBran.ItemNo, ;
>		RoseBran.Descrip, ;
>		RoseBran.Descrip1, ;
>		SUM(ARST.Shipped) as Shipped ;
>	FROM RoseBran ;
>	LEFT OUTER JOIN (
>		SELECT SUM(Shipped) AS Shipped, ItemNo FROM ARSTrans
>		WHERE BETWEEN(DateShip, DATE(2005,01,01), DATE());
>                GROUP BY 2) ARST ;
>	ON RoseBran.ItemNo = ARST.ItemNo ;
>	GROUP BY 1, 2, 3 ;
>	ORDER BY 1 ;
>	INTO CURSOR TEMP
>
>
Sergey, you are amazing! I was just getting ready to send a message saying you're previous answer worked from the command window but didn't work from within a form method when I saw your second approach. Tried it and it works. So, you're getting so fast that you answer my questions before I ask them! ;-)

Thanks again,
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform