arrow
返回

Horizontal Aggregations in SQL to Prepare Data Sets for Data Mining Analysis

delete2012-04-01
delete18
PRE
AI
C
Carlos Ordońẽz *
Z
Zhibo Chen
DOI:10.1109/TKDE.2011.16delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Preparing a data set for analysis is generally the most time consuming task in a data mining project, requiring many complex SQL queries, joining tables, and aggregating columns. Existing SQL aggregations have limitations to prepare data sets because they return one column per aggregated group. In general, a significant manual effort is required to build data sets, where a horizontal layout is required. We propose simple, yet powerful, methods to generate SQL code to return aggregated columns in a horizontal tabular layout, returning a set of numbers instead of one number per row. This new class of functions is called horizontal aggregations. Horizontal aggregations build data sets with a horizontal denormalized layout (e.g., point-dimension, observation-variable, instance-feature), which is the standard layout required by most data mining algorithms. We propose three fundamental methods to evaluate horizontal aggregations: CASE: Exploiting the programming CASE construct; SPJ: Based on standard relational algebra operators (SPJ queries); PIVOT: Using the PIVOT operator, which is offered by some DBMSs. Experiments with large tables compare the proposed query evaluation methods. Our CASE method has similar speed to the PIVOT operator and it is much faster than the SPJ method. In general, the CASE and PIVOT methods exhibit linear scalability, whereas the SPJ method does not.
Keyword:
Aggregation
data preparation
pivoting
SQL

期刊

IEEE Transactions on Knowledge and Data Engineering 封面图
IEEE Transactions on Knowledge and Data Engineering
IF:
10.4
论文数:
6.8K
被引数:
3.2W

机构

U
university of houston system
学者数:
1.4W
论文数: 1.4W
被引数: 16
引用论文

引用论文

A Study of the Use of Social Network Sites for Language Learning by University ESL Students
err2013-01-01
err0
PREAI
errMin Liu; Matthew K. Evans; Elaine Horwitz; Sunjung Lee; Monica McCrory; Jeong-Bin Park; Claire Meadows Parrish
err分享
err收藏
CHAPTER 15. Functional Membranes Based on Amphiphilic Polymer Co-networks
err2020-01-01
err0
errOAAI
errSebastian Ulrich; Luciano F. Boesel; Nico Bruns
err分享
err收藏
err分享
err收藏
err分享
err收藏
Prevalência de alcoolemia em vítimas de causas externas admitidas em centro urbano de atenção ao trauma
err2002-02-01
err0
errOAAI
errCynthia Gazal-Carvalho; Beatriz Carlini-Cotrim; Ovandir Alves Silva; Naim Sauaia
err分享
err收藏
Intestinal healing in rats submitted to ethanol ingestion
err2012-03-01
err0
errOAAI
errRodrigo Severo de Camargo Pereira; Cláudia Nishida Hasimoto; Leonardo Pelafsky; Juan Carlos Llanos; Daniele Cristina Cataneo; César Tadeu Spadella; José Guilherme Minossi
err分享
err收藏
学者 查看更多内容