I am wondering if there is a way of doing a between query join in SSIS without using a temp table on my server.
Given two tables, Accounts and Groups. Accounts contains a list of Accounts with a an upper and lower range to define a list of customers. Groups contain all the customers.
I want to be able join the tables so that I get all the accounts and the customers attached to those accounts. If it was just one account I required, I could use a conditional split however I want all accounts and all customers from the groups.
The tables come from separate systems so placing the query in one datasource is not an option.
If the tables were on the same system I could use the following query.
SELECT
Accounts.Account,
Groups.Customer
FROM
Accounts,
Groups
WHERE
Accounts.AccountType = 1 AND
Groups.GroupName BETWEEN Accounts.LowerGroup AND Accounts.UpperGroup
Any ideas on how to do this in a SSIS package. I really dislike my current method of saving both tables out to the server but I am struggling to find a way to do it in a single data flow task.