I have the following table daysTurns
:
How can I get a result like this?
date turn mail
2017-04-03 turn11 luis@geen.com
2017-04-03 turn12 luis@geen.com
2017-04-03 turn13 luis@geen.com
2017-04-03 turn21 luis@geen.com
2017-04-03 turn21 luis@geen.com
2017-04-03 turn21 luis@geen.com
2017-04-04 turn11 luis@geen.com
2017-04-04 turn12 luis@geen.com
2017-04-04 turn13 luis@geen.com
2017-04-04 turn21 luis@geen.com
2017-04-04 turn22 luis@geen.com
2017-04-04 turn23 luis@geen.com
I assume I would need a query like SELECT * FROM daysTurns
.
And this is the expected OUTPUT: