From c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c Mon Sep 17 00:00:00 2001
From: Martial Simon <msimon_fr@hotmail.com>
Date: Mon, 15 Sep 2025 01:08:27 +0200
Subject: add: graphs et rushs

---
 graphs/sql/file_archaeology/req05.sql | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 graphs/sql/file_archaeology/req05.sql

(limited to 'graphs/sql/file_archaeology/req05.sql')

diff --git a/graphs/sql/file_archaeology/req05.sql b/graphs/sql/file_archaeology/req05.sql
new file mode 100644
index 0000000..a53e4de
--- /dev/null
+++ b/graphs/sql/file_archaeology/req05.sql
@@ -0,0 +1,14 @@
+SELECT
+    owner,
+    COUNT(filename) AS num_files
+FROM dtf.madelines_files
+GROUP BY owner
+HAVING
+    COUNT(filename)
+    = (
+        SELECT MIN(test)
+        FROM
+            (SELECT COUNT(filename) AS test FROM dtf.madelines_files GROUP BY owner
+            ) AS n
+    )
+ORDER BY owner
-- 
cgit v1.2.3

