summaryrefslogtreecommitdiff
path: root/graphs/sql/socially_unfit/req03.sql
diff options
context:
space:
mode:
Diffstat (limited to 'graphs/sql/socially_unfit/req03.sql')
-rw-r--r--graphs/sql/socially_unfit/req03.sql3
1 files changed, 3 insertions, 0 deletions
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