Dynamic data import / export

datenbank

simply more productive
Up to 10,000 records can be processed with the freeware version!
Welcome, Guest
Username: Password: Remember me
Welcome to the FlowHeater support forum.

Questions about using FlowHeater are answered here.

TOPIC: Merging data from two SQL tables

Merging data from two SQL tables 6 years 2 months ago #2032

  • FlowHeater-Team
  • FlowHeater-Team's Avatar
  • Offline
  • Administrator
  • Posts: 240
Translated submission in the German forum. You can read the original entry here.

Hello,

Is it now possible, or will it be possible in a future version, to open two SQL database tables on the READ side at the same time and merge their data into a single stream? As a reference field, a key exists in both SQL tables.

Thanks and greetings,
Roland
Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
The administrator has disabled public write access.

Re:Merging data from two SQL tables 6 years 2 months ago #2033

  • FlowHeater-Team
  • FlowHeater-Team's Avatar
  • Offline
  • Administrator
  • Posts: 240
Hi Roland,

You can already merge two tables with the current version. You just need to amend the SQL on the READ side from

Select * from YourTable

to something like

Select table1.field1, table1.field2, table2.field1, table2.field2 from table1 inner join table2 on table1.field1 = table2.field1

Admittedly, this does require some manual entry.

If you are using MS SQL Server, you can even merge tables on two different databases in this way, provided the databases exist on the same SQL Server. To achieve this it is necessary to prefix each table name with the database name (punctuated with two dots), for example:.

database1..table1.field1 = database2..table2 .field1

Please note: The specific SQL join syntax depends on the actual database server you use.

In a later version of FlowHeater we plan to make it possible to attach several Adapters to both the READ and WRITE sides. These will provide syntax independent connection using specified fields, in a similar way to the above SQL joins.
Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
The administrator has disabled public write access.
Moderators: FlowHeater-Team
Time to create page: 0.070 seconds