Skip to content

Instantly share code, notes, and snippets.

View v20100v's full-sized avatar
💭
In startiflette we trust !

v20100v

💭
In startiflette we trust !
View GitHub Profile
@v20100v
v20100v / evolutions_indicators_confluence.sql
Created November 4, 2022 11:06
Evolution of number of Confluence spaces and more per period in raw SQL
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)
@v20100v
v20100v / select_all_confluence_spaces.sql
Last active December 19, 2024 08:32
List all Confluence spaces with indicators in raw SQL
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,