Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Reims
Contributor
Contributor

Join two entries rows ( Start time and End time) as a single row in Talend

I have Data coming from a MS SQL Database, it is concerning the the working hours of employees.

The problem is that, the start time and the end time are stored as 2 different entries, so when the employee comes, he scans his badge and this is considered arrival time, and when he leaves, he scans his badge again and this is considered departure time. There is one column that helps to make the difference between the start and the end time (CodeNr column : B1 = StartTime, B2 = EndTime)

so this is how my Table looks like

0693p000008vR8AAAU.png

Now i need this data as a single entry, in Talend oder from the Database,

so that should looks like

0693p000008vR8FAAU.png

What to use in order to achieve this please (specially in Talend and when to complicate than in MS SQL)?

Labels (2)
2 Replies
manodwhb
Champion II
Champion II

@not specified not specified​ , til the End Minute you can get it by using tAggregaterow ,if the data needs to be sort then use tSortrow component before tAggregaterow and the use tMap or tjavarow to calculate Duration hours and Minutes.

 

Thanks,

Manohar

vikramk
Creator II
Creator II

do you think we can achieve this with tAggregaterow, because the he needs the start and end date into different columns, right now they are in same column, could you elaborate more how to do this