I have this sql code
which gives me this list:
I would like to transform this into a new list like this:
Can I use concat() with my Oracle 10 and change the SQL to accomplish this?
</Morten>
Code:
select source_name, round(sysdate-sup_date) as nday, count(article_id) as arts
from articles_contents_xml
where round(sysdate-sup_date) <=14
group by
source_name, round(sysdate-sup_date)"
order by source_name, nday
which gives me this list:
Code:
Source_name nday arts
Adresseavisen 1 17
Adresseavisen 3 38
Adresseavisen 4 35
Adresseavisen 5 29
Adresseavisen 6 33
Aftenposten 1 14
Aftenposten 4 23
I would like to transform this into a new list like this:
Code:
Source_name Day1 day2 Day3 Day4 Day5 Day6
Adresseavisen 17 - 38 35 29 33
Aftenposten 14 - - 23 - -
Can I use concat() with my Oracle 10 and change the SQL to accomplish this?
</Morten>