Forum Discussion

dmzhou's avatar
dmzhou
Regular Visitor
7 years ago
Solved

Group by rows based on different columns

Hi Experts, 

I have a requirement which needs your advice

Assuming I have data below

Customer

createTime

closeTime

a

2018-09-11

2018-09-23

b

2018-09-11

2018-09-25

Expecting the result below

Time

CreatedCustomer

ClosedCustomer

2018-09-11

2

0

2018-09-23

0

1

2018-09-25

0

1

 

 

 

 

 

 

How can I achieve this?