Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add duplicate line whenever there is a rehire date

Status
Not open for further replies.

rmtchris

IS-IT--Management
Sep 17, 2010
1
US
Running ADP ReportSmith 5.1.2.1
I am in the Sysadmin Reports.V_Employee table and am extracting the data to csv for an Oracle conversion.

Some of the data, however, needs to be repeated because of certain criteria.

What they need is:
EmployeeName and ServiceDate where ServiceDate contains a date of hire or rehire (which are 2 diff fields in ADP).

Most emp have just one date, the hiredate. But some emp have been rehired and thus have both the hiredate and rehiredate fields populated.
If that is the case then a new line needs to be created, see below.

Example of what is needed:
Name ServiceDate
John Smith 1/1/09 (hiredate)
John Smith 5/1/10 (rehiredate)

Currently in ADP it is one line of data:
Name HireDate ReHireDate
John Smith 1/1/09 5/1/10

How do I do that?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top