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/traffic_offense/req04.sql | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 graphs/sql/traffic_offense/req04.sql

(limited to 'graphs/sql/traffic_offense/req04.sql')

diff --git a/graphs/sql/traffic_offense/req04.sql b/graphs/sql/traffic_offense/req04.sql
new file mode 100644
index 0000000..f616e3a
--- /dev/null
+++ b/graphs/sql/traffic_offense/req04.sql
@@ -0,0 +1,9 @@
+SELECT V2.id,V2.description,V2.violation_date,V2.street_id,V2.license_plate FROM public.traffic_violations AS V1,public.traffic_violations AS V2
+WHERE V1.license_plate LIKE 'AZ__36_'
+AND V1.violation_date >= timestamp '2059-12-03 21:00:00' - interval '1 h'
+AND V1.violation_date <= timestamp '2059-12-03 21:00:00' + interval '1 h'
+AND (
+    V1.description = 'SPEED_AND_TRAFFIC_VIOLATION'
+    OR V1.description = 'RECKLESS_AND_DANGEROUS_DRIVING'
+)
+AND V1.license_plate = V2.license_plate
-- 
cgit v1.2.3

