mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 04:54:21 +01:00
this causes sqlite and tursodb to interpret the value as just 'yyyy', e.g. '1995-01-01' becomes '1995', causing a lot of the queries not to return any results, which is not what we want.
10 lines
264 B
SQL
10 lines
264 B
SQL
select
|
|
sum(l_extendedprice * l_discount) as revenue
|
|
from
|
|
lineitem
|
|
where
|
|
l_shipdate >= '1994-01-01'
|
|
and l_shipdate < '1995-01-01' -- modified not to include cast({'year': 1} as interval)
|
|
and l_discount between 0.08 - 0.01 and 0.08 + 0.01
|
|
and l_quantity < 24;
|