You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/08/10 02:34:27 UTC

[GitHub] [shardingsphere] Superainbower edited a comment on issue #11437: The result isn't right in Row to Column scenario

Superainbower edited a comment on issue #11437:
URL: https://github.com/apache/shardingsphere/issues/11437#issuecomment-895075521


   The error log is Function '{fn ifnull}' is not defined
   I refer to your suggestion, but you said ss will do it, it make me confused
   
   We need to rewrite the SQL to the following format:
   SELECT order_id, {fn IFNULL(SUM(cnt), 0)} AS totoal FROM (
   	SELECT order_id, user_id, COUNT(1) AS cnt FROM t_order GROUP BY order_id, user_id
   ) a GROUP BY order_id;
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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