I am very new to SSIS and I am building a package which will import files. I have a Execute SQL Task which will execute a SQL statement which will return files that needs to be imported, but the files will need to go into different tables depending on which file is being imported.
I have 2 Data Flow Tasks in my foreach container but now based on the file type it needs to execute 1 of them
How can I achieve this?

EDIT
This is the query that will be executed:
SELECT ReconMedicalAidFile.fReconMedicalAidFileID, ReconMedicalAidFile.fReconMedicalAidID,
ReconMedicalAids.fMedicalAidID, ReconMedicalAidFile.fFileName,
ReconMedicalAidFile.fFileLocation, ReconMedicalAidFile.fFileImportedDate, ReconMedicalAidFile.fNumberRecords, ReconMedicalAidFile.fUser,
ReconMedicalAidFile.fIsImported
FROM ReconMedicalAidFile INNER JOIN
ReconMedicalAids ON ReconMedicalAidFile.fReconMedicalAidID = ReconMedicalAids.fReconMedicalAidID
WHERE (fIsImported = 0) AND (fNumberRecords = 0)
So the condition is based on fMedicalAidID


ForEachloop. How are the file types recognized? By the extension?