Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I am having one field called created date with value as 19/12/2015 15:45:34 (this format). Also having 2 more fields as start time and end time in same format.
One record is having unique number for identification. One record will have only one created time but there could be many records with start n end time. It means one to many relation. Here comes my requirement -
I want to have only start and end time capture for one unique number. For example;
Created time -19/12/2015 15:45:34
Start time -19/12/2015 15:43:34
End time -19/12/2015 15:47:34
Start time -19/12/2015 15:44:34
End time -19/12/2015 15:48:34
I want to have first record because start date falls between first start and end time and that is the most closest one.
Kindly suggest me the solution.
Regards,
Imran Khan
Sorry, I haven't understood why you want the first and not the second record. What do you mean with 'most closest one'? Close to what?
Because one unique id will have only one original start time and end time. When you call up the customer care , you will be directed to ivr where not necessary all the directed calls to ivr get connected to representative.
Hope you understood this now.
Just want to pick my created time falls between start time and end time
Imran Khan wrote:
Just want to pick my created time falls between start time and end time
Isn't that valid for both records?
Yes.. it's not valid for both the records. I want show only one output on basis if created date falls between start and end time.
search for intervalmatch()
regards
Marco
I tried intervalmatch but it is not working. I know interval match is the right solution for this case but not working for me. I am not sure what mistake i am doing.
Attached is the same data
Dataset A
CREATED TIME | Contact | Interaction ID |
01/11/2015 20:09:51 | 9619137131 | 12797733 |
01/11/2015 20:24:04 | 9619137131 | 12797764 |
01/11/2015 20:30:44 | 9619137131 | 12797775 |
Dataset B
Start Time | EndTime | NEW Talk Time |
01/11/2015 20:22:35 | 01/11/2015 20:10:03 | 00:00:40 |
01/11/2015 20:05:50 | 01/11/2015 20:24:03 | 00:04:12 |
01/11/2015 20:25:54 | 01/11/2015 20:30:54 | 00:04:58 |
Want to do intervalmatch with Created Time and want to look if created time falls between Start Time and End time and would like to tag row with respective Interaction ID