Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create new group
Message
From
21/01/2019 03:17:31
 
 
To
21/01/2019 03:06:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01665534
Message ID:
01665575
Views:
61
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform