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/where_is_waldo/req01.sql | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 graphs/sql/where_is_waldo/req01.sql

(limited to 'graphs/sql/where_is_waldo/req01.sql')

diff --git a/graphs/sql/where_is_waldo/req01.sql b/graphs/sql/where_is_waldo/req01.sql
new file mode 100644
index 0000000..9ab6dfb
--- /dev/null
+++ b/graphs/sql/where_is_waldo/req01.sql
@@ -0,0 +1,8 @@
+SELECT sales.id AS sales_id,product_id,sales.checkout_id,sale_timestamp,cashier_shifts.id AS shift_id,employee_id,start_timestamp AS shift_start_timestamp,end_timestamp AS shift_end_timestamp
+INTO dtf.shifts_and_sales_78
+FROM nexus_stores.sales
+INNER JOIN nexus_stores.cashier_shifts ON sales.checkout_id = cashier_shifts.checkout_id
+AND sales.store_id = 78
+AND start_timestamp = timestamp '2059-12-01 13:00:00'
+AND sale_timestamp >= start_timestamp
+AND sale_timestamp < end_timestamp
-- 
cgit v1.2.3

