Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pulling from one table, saving into another
Message
 
 
To
17/12/2001 11:55:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00595171
Message ID:
00597239
Views:
26
>I have a view which I'm using to pull aggregate data from various tables.
>
>I want to append that data as is into a separate table. I set up the view to pull from table1 and table2, and to save to table3. It doesn't work. I set all the update fields to represent the fields in table3, and set the fields to updatable.
>
>Is this something that is possible to do?
>
>To work around it, I created a separate view based on table3, which I load with nodata, append in the first view, then save it. I'd like to be able to do it all in one step.
>
>Thanks,
>
Hi David,

What about
Select Table3
APPEND FROM (DBF("myview"))
BTW, It can be done easily in Sql Server
INSERT INTO MyTable  (PriKey, Description) 
       SELECT ForeignKey, Description 
       FROM SomeView 
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform