Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create new group
Message
From
21/01/2019 04:49:48
 
 
To
21/01/2019 03:17:31
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:
01665576
Views:
57
>>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.

Sir your codes works in sqlserver management studio but it takes long time to update table.
I think the query of Sir Rick Hodgin will work fine because I have tested his previous query that works with great speed.

Thand and regards
Previous
Reply
Map
View

Click here to load this message in the networking platform