maxby Questions
1
Solved
I am migrating some PostgreSQL queries to Snowflake and I am struggling to replicate the following query:
WITH test_table(col1, col2, col3, col4) AS (
VALUES
(1, 1, 7, 5),
(1, 1, 6, 4),
(1, 2,...
Hereford asked 26/1, 2021 at 17:50
2
Solved
Here is my JSON test.jsonfile :
[
{
"name": "nodejs",
"version": "0.1.21",
"apiVersion": "v1"
},
{
"name": "nodejs",
"version": "0.1.20",
"apiVersion": "v1"
},
{
"name": "nodejs",
"ve...
Disseisin asked 17/7, 2019 at 8:0
3
Solved
Enumerable#max_by and Enumerable#min_by return one of the relevant elements (presumably the first one) when there are multiple max/min elements in the receiver. For example, the following:
[1, 2, ...
1
© 2022 - 2024 — McMap. All rights reserved.