For a purpose of reporting I need to present data from table:
table A (column1, column2, date1, date2, date3,…,dateN)
My query need to present all dates in one column separated with # .
(YYYY-MM-DD# YYYY-MM-DD#..)
But problem is that number of date columns is not fixed, because from product to product can be different number of dates.
Any idea ?
Best Answer
I'm was thinking about some ugly query such as:
But we could do better using something like: