By default, Information Object Designer removes GROUP BY columns automatically. If you disable automatic grouping, you must remove GROUP BY columns manually.SELECT orderNumber, productCode, (SUM(quantityOrdered * priceEach)) AS TotalYou remove the productCode column from the SELECT clause. Information Object Designer automatically removes productCode from the GROUP BY clause:
You manually add a column to the GROUP BY clause that does not appear in the SELECT clause and then enable automatic grouping.The productCode column appears in the GROUP BY clause but not in the SELECT clause. You enable automatic grouping. Information Object Designer automatically removes productCode from the GROUP BY clause:You remove the aggregate column SUM(quantityOrdered * priceEach) from the SELECT clause. Information Object Designer automatically removes the GROUP BY clause:You remove the orderNumber column from the SELECT clause. Information Object Designer automatically removes the GROUP BY clause:
|
|
Copyright Actuate Corporation 2012 |