Super Richman
04/13/2023, 9:07 AMJaromir Hamala
04/13/2023, 9:11 AMSuper Richman
04/13/2023, 9:19 AMJaromir Hamala
04/13/2023, 9:28 AMSuper Richman
04/13/2023, 9:29 AMPARTITION BY
PARTITION BY
is DAYJaromir Hamala
04/13/2023, 9:53 AMjavier ramirez
04/13/2023, 10:45 AMwith minitrades AS (select date_trunc('day', timestamp) as theday, * from trades
where timestamp between '2023-04-12T23:59:59' AND '2023-04-13T00:00:01'
)
select * from minitrades a LT join minitrades b ON (theday)
with minitrades AS (select date_trunc('day', timestamp) as theday, * from trades
where timestamp IN '2023-04-12T23:59:59;2s;-1d;7'
)
select * from minitrades a LT join minitrades b ON (theday)
Super Richman
04/13/2023, 2:23 PMjavier ramirez
04/13/2023, 2:24 PMSuper Richman
04/13/2023, 2:24 PMcoalesce
can it help?javier ramirez
04/13/2023, 2:30 PMwith minitrades AS (select concat(symbol, date_trunc('day', timestamp)) as symbol_plus_day, * from trades
where timestamp IN '2023-04-12T23:59:59;2s;-1d;7'
)
select * from minitrades a LT join minitrades b ON (symbol_plus_day)
Super Richman
04/13/2023, 2:37 PMSELECT * FROM (with minitrades AS (select date_trunc('day', timestamp) as theday, * from trades
where timestamp IN '2023-04-12T23:59:59;2s;-1d;7'
)
select * from minitrades a LT join minitrades b ON symbol)
WHERE timestamp1 IS NOT NULL
javier ramirez
04/13/2023, 2:39 PMSuper Richman
04/13/2023, 2:39 PMjavier ramirez
04/13/2023, 2:40 PMSuper Richman
04/13/2023, 2:42 PMSELECT * FROM
((SELECT * from trades where timestamp between '2023-04-12T23:59:59' AND '2023-04-13T00:00:01') LT join trades ON symbol)
WHERE date_trunc('day', timestamp)=date_trunc('day', timestamp1)
javier ramirez
04/13/2023, 2:57 PMSuper Richman
04/13/2023, 2:58 PMjavier ramirez
04/13/2023, 3:08 PMSuper Richman
04/13/2023, 3:21 PMjavier ramirez
04/13/2023, 3:24 PMwith minitrades AS (select concat(symbol, date_trunc('day', timestamp)) as symbol_plus_day, * from trades
where timestamp between '2023-04-12T23:59:59' AND '2023-04-13T00:00:01'
)
select * from minitrades a LT join minitrades b ON (symbol_plus_day)
SELECT * FROM
((SELECT * from trades where timestamp between '2023-04-12T23:59:59' AND '2023-04-13T00:00:01') LT join trades ON symbol)
-- WHERE date_trunc('day', timestamp)=date_trunc('day', timestamp1)
Super Richman
04/13/2023, 3:26 PMjavier ramirez
04/13/2023, 3:29 PMSuper Richman
04/13/2023, 4:17 PM