nzzl6 opened a new issue, #2312:
URL: https://github.com/apache/doris-website/issues/2312

   Path:/zh-CN/docs/sql-manual/sql-functions/aggregate-functions/min-by
   
   +------+------+------+------+
   | k1   | k2   | k3   | k4   |
   +------+------+------+------+
   |    0 | 3    | 2    |  100 |
   |    1 | 2    | 3    |    4 |
   |    4 | 3    | 2    |    1 |
   |    3 | 4    | 2    |    1 |
   +------+------+------+------+
   
   select min_by(k1, k4) from tbl;
   
   +--------------------+
   | min_by(`k1`, `k4`) |
   +--------------------+
   |                  4 |
   +--------------------+ 
   
   
   如何得出最小的k4对应的最小的k1,如上就是得出3?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to