Employee:
EmployeeID EmployeeName EmployeeNumber StartDate StopDate
1 Tom 7887 3/1/2014 3/1/2015
2 Harry 7888 3/1/2013 3/1/2015
3 Frank 7889 3/1/2012 3/1/2015
4 John 7890 3/1/2011 3/1/2015
I have an Employee table in Sql Server .I am using employee information to pass values in to an Oracle query to get the data from Oracle using data flow task. But I never tried with pl/sql as it looking different from sql. My oracle query looks like
SELECT *
FROM Components A INNER JOIN Values b
on A.Rowid=B.Rowid
and A.Contact IN(:EmployeeName)
and A.Sub IN(:EmployeeNumber )
WHERE
A.time BETWEEN TO_DATE(:StartDate) AND TO_DATE(:EndDate) + 0.99999
How can I pass my Employee table values in to above sql query using for loop Container.