Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create new group
Message
 
 
À
21/01/2019 03:06:16
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 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01665534
Message ID:
01665575
Vues:
63
>Sir, how to use your codes in sqlserver management studio?
>
>

In SQL Server you need to move the FROM part to the end. I cannot test it here because I don't have SQL Server installed, but I believe it looks like the following:

UPDATE Junk Set max_qty = 1
From Junk Join (SELECT MAX(qty) as qty, Idid FROM Junk Junk2 GROUP BY Idid) Junk_Max ON Junk.qty = Junk_Max.qty AND Junk.Idid = Junk_Max.Idid


In MySQL and VFP the From part goes after the Update.
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform