Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11726221
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
834 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/sql/db-A/agora/operations-grimoire-older-pages.sql b/sql/db-A/agora/operations-grimoire-older-pages.sql
new file mode 100644
index 0000000..b31093a
--- /dev/null
+++ b/sql/db-A/agora/operations-grimoire-older-pages.sql
@@ -0,0 +1,18 @@
+-- Agora
+-- What Operations Grimoire pages are older than 6 months?
+
+USE nasqueron_wiki;
+
+SELECT
+ -- page_link example: [Operations grimoire/Kubernetes|Kubernetes]]
+ REPLACE(CONCAT("[[", page_title, "|", SUBSTRING(page_title, 21), "]]"), "_", " ") as page_link,
+
+ -- age in days (1 day = 86400 seconds)
+ FLOOR((UNIX_TIMESTAMP() - UNIX_TIMESTAMP(page_touched)) / 86400) as age
+FROM
+ page
+WHERE
+ LEFT(page_title, 20) = "Operations_grimoire/"
+ AND LEFT(page_title, 29) != "Operations_grimoire/Incidents"
+HAVING age > 180
+ORDER BY page_touched DESC;
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 19, 01:22 (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2992030
Default Alt Text
(834 B)
Attached To
Mode
rRPRT Nasqueron internal reports
Attached
Detach File
Event Timeline
Log In to Comment