Skip to content

Commit ec9eb66

Browse files
Improve argMaxIf.md example numbers
Previously the example data did not give a great example of the argMaxIf functionality. The laptop would have been the returned product irregardless of the sales_count >= 10 condition. I believe my change makes the use of argMaxIf clearer, since the expensive watch is excluded by the condition.
1 parent 4733df6 commit ec9eb66

File tree

1 file changed

+1
-1
lines changed
  • docs/guides/examples/aggregate_function_combinators

1 file changed

+1
-1
lines changed

docs/guides/examples/aggregate_function_combinators/argMaxIf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ INSERT INTO product_sales VALUES
3636
('Laptop', 999.99, 10),
3737
('Phone', 499.99, 15),
3838
('Tablet', 299.99, 0),
39-
('Watch', 199.99, 5),
39+
('Watch', 1199.99, 5),
4040
('Headphones', 79.99, 20);
4141

4242
SELECT argMaxIf(product_name, price, sales_count >= 10) AS most_expensive_popular_product

0 commit comments

Comments
 (0)