Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace record from other dbf
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00994807
Message ID:
00995167
Views:
21
SELECT 38
ZAP
alias38 = ALIAS()

SELECT 6
mcode  = LCode
msec   = Sec
alias6 = ALIAS()

INSERT INTO (alias38) (scode, lcode, sec, nostudent);
             SELECT DISTINCT scode, lcode, sec,;
                    (SELECT COUNT(*) FROM (alias6) WHERE admtd=1 and lcode=mcode.and. sec=msec);
             FROM (alias6) group by scode,lcode,sec WHERE admtd=1

sele 38
...
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform