This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
t1.period_greatest, | |
COALESCE(SUM(t2.nb_of_spaces), 0) as evol_nb_of_spaces, | |
COALESCE(SUM(t2.nb_of_pages), 0) as evol_nb_of_pages, | |
COALESCE(SUM(t2.nb_of_blogposts), 0) as evol_nb_of_blogposts, | |
COALESCE(SUM(t2.nb_of_attachments), 0) as evol_nb_of_attachments, | |
COALESCE(SUM(t2.nb_of_customs), 0) as evol_nb_of_customs, | |
COALESCE(SUM(t2.nb_of_pages), 0) | |
+ COALESCE(SUM(t2.nb_of_blogposts), 0) | |
+ COALESCE(SUM(t2.nb_of_attachments), 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT | |
s.spaceid as space_id, | |
s.spacename as space_name, | |
s.spacekey as space_key, | |
s.spacetype as space_type, | |
s.spacestatus as space_status, | |
sd.body as space_description, | |
s.creationdate as space_creation_date, | |
up.username as space_creator_username, | |
u.display_name as space_creator_displayname, |