Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE question
Message
 
 
À
20/08/2009 07:39:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01419198
Message ID:
01419207
Vues:
203
This message has been marked as the solution to the initial question of the thread.
UPDATE t0 SET n1 = tm.n1m ;
	FROM (lcCur) t0 JOIN ( ;
		SELECT t1.m1, t1.m2, MAX(t1.n1 * t2.f1) AS n1m ;
			FROM (lcCur) t1 JOIN Test2 t2 ON t2.Mx = t1.M1 OR t2.Mx = t1.M2 ;
			GROUP BY 1,2 ;
		) tm ON tm.m1 = t0.m1 AND tm.m2 = t0.m2
>Okay, this one works fine. Thank you.
>
>Now the tricky part
>
>test is not directly availabel
>
>All i now is a var just like
>
>lcCur = 'Test'
>
>
>
>lcCur = 'Test'
>UPDATE (lcCur) SET n1 = tm.n1m ;
>	FROM (lcCur) inner JOIN ( ;
>		SELECT t1.m1, t1.m2, MAX(t1.n1 * t2.f1) AS n1m ;
>			FROM (lcCur) t1 inner JOIN Test2 t2 ON t2.Mx = t1.M1 OR t2.Mx = t1.M2 ;
>			GROUP BY 1,2 ;
>		) tm ON tm.m1 = &lcCur..m1 AND tm.m2 = &lcCur..m2
>
>
>will not work.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform