Jackie-Jiang commented on issue #8040: URL: https://github.com/apache/pinot/issues/8040#issuecomment-1016744432
Currently `1 + N at first level` queries need to be fired to solve this. I think this query can be modeled using subquery (not supported yet): `SELECT Country, salesPersonName, SUM(AmountSold) FROM sales WHERE Country IN (SELECT Country FROM sales GROUP BY Country ORDER BY SUM(AmountSold) DESC LIMIT 2) GROUP BY Country, salesPersonName ORDER BY SUM(AmountSold) DESC` Some information is missing though: sales per country, no guarantee that N persons are returned from each country -- 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...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org