summaryrefslogtreecommitdiff
path: root/graphs/sql/socially_unfit
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
commitc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch)
tree3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /graphs/sql/socially_unfit
add: graphs et rushs
Diffstat (limited to 'graphs/sql/socially_unfit')
-rw-r--r--graphs/sql/socially_unfit/req01.sql2
-rw-r--r--graphs/sql/socially_unfit/req02.sql2
-rw-r--r--graphs/sql/socially_unfit/req03.sql3
-rw-r--r--graphs/sql/socially_unfit/req04.sql6
-rw-r--r--graphs/sql/socially_unfit/req05.sql5
5 files changed, 18 insertions, 0 deletions
diff --git a/graphs/sql/socially_unfit/req01.sql b/graphs/sql/socially_unfit/req01.sql
new file mode 100644
index 0000000..cd0c60b
--- /dev/null
+++ b/graphs/sql/socially_unfit/req01.sql
@@ -0,0 +1,2 @@
+SELECT * FROM public.people
+LIMIT 100
diff --git a/graphs/sql/socially_unfit/req02.sql b/graphs/sql/socially_unfit/req02.sql
new file mode 100644
index 0000000..2178826
--- /dev/null
+++ b/graphs/sql/socially_unfit/req02.sql
@@ -0,0 +1,2 @@
+SELECT id,first_name,last_name FROM public.people
+LIMIT 100 OFFSET 42
diff --git a/graphs/sql/socially_unfit/req03.sql b/graphs/sql/socially_unfit/req03.sql
new file mode 100644
index 0000000..4f1d62d
--- /dev/null
+++ b/graphs/sql/socially_unfit/req03.sql
@@ -0,0 +1,3 @@
+SELECT DISTINCT first_name,last_name,death_date,social_credit_balance FROM public.people
+WHERE death_date IS NOT NULL
+ORDER BY death_date DESC,social_credit_balance DESC LIMIT 100
diff --git a/graphs/sql/socially_unfit/req04.sql b/graphs/sql/socially_unfit/req04.sql
new file mode 100644
index 0000000..a11948a
--- /dev/null
+++ b/graphs/sql/socially_unfit/req04.sql
@@ -0,0 +1,6 @@
+SELECT first_name,last_name,birth_date,job_id,social_credit_balance
+FROM public.people
+WHERE job_id IS NOT NULL
+AND social_credit_balance > 0
+AND death_date IS NULL
+ORDER BY social_credit_balance DESC,birth_date,job_id LIMIT 100 OFFSET 200
diff --git a/graphs/sql/socially_unfit/req05.sql b/graphs/sql/socially_unfit/req05.sql
new file mode 100644
index 0000000..45029d8
--- /dev/null
+++ b/graphs/sql/socially_unfit/req05.sql
@@ -0,0 +1,5 @@
+SELECT id,person_id,credits_change,action_description
+FROM public.social_credit_history
+WHERE date >= '2059-12-03 17:00' AND date <= '2059-12-03 22:00'
+ORDER BY credits_change,id
+LIMIT 10