Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional append from
Message
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:
01614803
Views:
52
>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
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