Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL and memory
Message
 
 
To
22/10/2003 14:55:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00841173
Message ID:
00841949
Views:
25
Gunnar,

I just tried running this test code and VFP can join on 9 columns:
create cursor gun1 ( pn i, opt1 c(5), opt2 c(5), opt3 c(5), opt4 c(5), opt5 c(5), opt6 c(5), opt7 c(5), opt8 c(5) )
create cursor gun2 ( pn i, opt1 c(5), opt2 c(5), opt3 c(5), opt4 c(5), opt5 c(5), opt6 c(5), opt7 c(5), opt8 c(5) )

for i = 1 to 100
   lcStr = padl( i, 5 )
   insert into gun1 values ( i, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr )
   insert into gun2 values ( i, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr, lcStr )
endfor

select * ;
   from gun1 ;
   left join gun2 on ;
      gun1.pn = gun2.pn and ;
      gun1.opt1 = gun2.opt1 and ;
      gun1.opt2 = gun2.opt2 and ;
      gun1.opt3 = gun2.opt3 and ;
      gun1.opt4 = gun2.opt4 and ;
      gun1.opt5 = gun2.opt5 and ;
      gun1.opt6 = gun2.opt6 and ;
      gun1.opt7 = gun2.opt7 and ;
      gun1.opt8 = gun2.opt8
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform