Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional append from
Message
From
03/02/2015 15:13:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01614800
Message ID:
01614836
Views:
46
>>I have Table1 and Cursor1
>>
>>Both have student_number field.
>>
>>What I need to do is:
>>
>>Select table1
>>
>>Append from cursor1 ( but only student_number that still does not exist in table1)
>>
>>Moises
>
>
>INSERT INTO Table1 (field list here);
>SELECT field list here;
>FROM Cursor1;
>LEFT JOIN Table1 ON Table1.Student_Number = Cursor1.Student_Number;
>WHERE Table1.Student_Number IS NULL
>
I'm a little mechanical in my approach but I would query the cursor into a "final" cursor for the append, thus eliminating the items I did not want.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform