Oracle Hash Group By
Starting with 10g, Oracle introduced “Hash
Group By” as the default grouping by mechanism.
Oracle employs a hash algorithm to
calculate the hash value for each row based on the GROUP BY columns. This
allows rows with identical column values (and hence identical hash values) to
be "brought together" without performing a full sort. And then the
aggregation is performed upon each group. The hash group by does not guarantee
the order of the output, one should use “order by” clause to ensure the order.
select time_id, sum(amount_sold) from sales
group by time_id;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/638844/viewspace-776150/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 資料庫的sort group by和hash group by資料庫
- Oracle GroupOracle
- 10.2版本中hash group by一些爭議
- ORACLE Hash JoinOracle
- Oracle group by使用Oracle
- Oracle Column Group StatisticsOracle
- Oracle中group by用法Oracle
- oracle partition by group by,詳解partition by和group by對比Oracle
- Oracle ASM spfile in a disk groupOracleASM
- oracle全文索引之SECTION GROUP_6_PATH_SECTION_GROUPOracle索引
- oracle全文索引之SECTION GROUP_5_AUTO_SECTION_GROUPOracle索引
- oracle全文索引之SECTION GROUP_4_XML_SECTION_GROUPOracle索引XML
- oracle全文索引之SECTION GROUP_3_HTML_SECTION_GROUPOracle索引HTML
- oracle全文索引之SECTION GROUP_2_BASIC_SECTION_GROUPOracle索引
- oracle全文索引之SECTION GROUP_1_NULL_SECTION_GROUPOracle索引Null
- oracle -- Hash演算法原理Oracle演算法
- oracle hints ? use_hash ? ordered ?Oracle
- Oracle ASM ACFS disk group rebalanceOracleASM
- Oracle ASM User Directory and Group DirectoryOracleASM
- Oracle ASM Disk Group AttributesOracleASM
- oracle中Window和Window GroupOracle
- Oracle PL/SQL之GROUP BY CUBEOracleSQL
- Oracle中的Hash Join祥解Oracle
- Oracle 的 hash join連線方式Oracle
- oracle hash join演算法原理Oracle演算法
- Oracle中的Hash Join詳解Oracle
- oracle hash join原理及注意事項Oracle
- oracle hash partition雜湊分割槽(一)Oracle
- oracle中的幾個hash函式Oracle函式
- Oracle中的Hash Join詳解 ztOracle
- oracle中distinct和group by的區別Oracle
- Oracle和MySQL分組查詢GROUP BYOracleMySql
- oracle group by的按照不同粒度聚合方法Oracle
- oracle 高階分組group by cube擴充Oracle
- oracle group by與分組列為null空OracleNull
- Oracle中的Hash Join祥解(R2)Oracle
- oracle hash partition雜湊分割槽(二)_操作限制Oracle
- oracle實驗記錄 (計算hash join cost)Oracle