Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statment!!!
Message
 
 
To
04/03/2000 02:03:15
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00341645
Message ID:
00341669
Views:
22
>
>Table1
>Date   ABal
>
>Table2
>Date   BBal
>
>How could I combine these 2 tables into one as the following format?
>
>Table3
>Date    ABal        BBal
>
select table1.*, space(x) as BBal from table1 ;
   union select table2.*, space(x) as ABal from table2 ;
   into cursor c_result
Replace the X with the width of the field in the other table. if the field is numeric, replace space(x) with a numeric representation of the field.

Ex.
N(7) - replace with 0000000
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform