Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I fill one field with several values
Message
 
 
To
05/03/2009 16:43:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01385968
Message ID:
01386010
Views:
56
>I know this isn't right:
>
>UPDATE Table2 SET Column2 = TRIM(Table1.Column1) + TRIM(Table1.Column3) FROM Table2 INNER JOIN Table1 ON Lower(Alltrim(Table2.Column1)) == Lower(Alltrim(Table1.Column2))
>
>What is right?
>
>I know I sound like an idiot, I am pretty new to this stuff.

Which database we're talking about here? SQL Server or VFP?

In VFP the syntax is correct, but it would not be Rushmore optimized. Can you do a join by PK (or integer field) instead of a character field?

If the tables are small, then it would not matter much.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform