Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compare and update master table?
Message
 
To
04/05/2006 14:33:35
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01119103
Message ID:
01119322
Views:
20
>> 3. Present in both tables, but different
>This point not works for me. Different or not, all is included.

I can't try it because I didn't have VFP7 installed but both versions here (8 and 9) gives me correct result:
CREATE CURSOR Test  (Fld1 Int, Fld2 Char(10))
CREATE CURSOR Test1 (Fld1 Int, Fld2 Char(10))
INSERT INTO Test VALUES (1, [Val 1])
INSERT INTO Test VALUES (2, [Val 2])
INSERT INTO Test VALUES (3, [Val 3])

INSERT INTO Test1 VALUES (1, [Val 1])
INSERT INTO Test1 VALUES (4, [Val 4])
INSERT INTO Test1 VALUES (3, [Val 5])

SELECT * FROM Test;
UNION;
SELECT * FROM Test1;
INTO CURSOR crsTest
SELECT crsTest
BROWSE NORMAL

**** RESULT:
****
1    Val 1
2    Val 2
3    Val 3
3    Val 5
4    Val 4
Are you sure you didn't use UNION ALL instead of just UNION?
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