jayjaybigs
IS-IT--Management
I have a file of records:
empid , Name, effdate, home_date, salary_date
200095,BIB STEVEN, 5/1/2003 10/1/1993 5/1/2003
200095,BIB STEVEN, 5/1/2004 10/1/2003 5/1/2002
200095,BIB STEVEN, 5/1/2003 5/1/2002 5/1/2003
200095,BIB STEVEN, 5/1/2004 10/1/1993 5/1/2005
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 5/23/2001 1/02/2001 1/1/2001
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 1/1/2001 5/23/2001 1/02/2001
Does anyone have script that could loop through all the records and do the following
extract the record for a particular empid where salary_date does match any
effdate or home_date in any row of a particular employee(say 200095);
Hence, based on the above, I should get:
200095,BIB STEVEN, 5/1/2004 10/1/1993 5/1/2005
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
Thanks
empid , Name, effdate, home_date, salary_date
200095,BIB STEVEN, 5/1/2003 10/1/1993 5/1/2003
200095,BIB STEVEN, 5/1/2004 10/1/2003 5/1/2002
200095,BIB STEVEN, 5/1/2003 5/1/2002 5/1/2003
200095,BIB STEVEN, 5/1/2004 10/1/1993 5/1/2005
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 5/23/2001 1/02/2001 1/1/2001
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 1/1/2001 5/23/2001 1/02/2001
Does anyone have script that could loop through all the records and do the following
extract the record for a particular empid where salary_date does match any
effdate or home_date in any row of a particular employee(say 200095);
Hence, based on the above, I should get:
200095,BIB STEVEN, 5/1/2004 10/1/1993 5/1/2005
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
200099,BEN TAMMY, 5/29/2000 5/29/2000 5/04/2002
Thanks