I am new to SQL. I want to find the peak and valleys in a timeseries data. I have a clickhouse DB and I can pull data into python where I can process this as mentioned in argrelextrema explained However I am looking for a solution in SQL so I don’t […]