diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:08:27 +0200 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2025-09-15 01:08:27 +0200 |
| commit | c9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch) | |
| tree | 3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /graphs/sql/traffic_offense/req05.sql | |
add: graphs et rushs
Diffstat (limited to 'graphs/sql/traffic_offense/req05.sql')
| -rw-r--r-- | graphs/sql/traffic_offense/req05.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphs/sql/traffic_offense/req05.sql b/graphs/sql/traffic_offense/req05.sql new file mode 100644 index 0000000..41aaebd --- /dev/null +++ b/graphs/sql/traffic_offense/req05.sql @@ -0,0 +1,10 @@ +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 +AND V2.violation_date::date = '2059-12-03 21:00:00'::date |
