Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine 2 tables - better way?
Message
From
23/02/2004 17:58:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Combine 2 tables - better way?
Miscellaneous
Thread ID:
00880102
Message ID:
00880102
Views:
49
hello everybody.

currently i have the following (simplyfied):
sele a.idfld ;
   from 'history\frames' a ;
   where SomeCondition ;
   into cursor cur_temp1

sele a.idfld ;
   from 'current\frames' a ;
   where ;
      SameCondition .and. ;
      a.idfld not in (select temp.idfld from cur_temp1) ;
   into cursor cur_temp2

(make cur_temp1 read/write)

sele cur_temp1
append from cur_temp2
use in cur_temp2
is there a better, more propper way of doing this (preferably with 1 sql command)?

thanks for all your help!
Next
Reply
Map
View

Click here to load this message in the networking platform