• Home
  • Search
  • Hortizontal Aggregation in SQL for Data Mining Analysis to Prepare Data Sets
  • https://doi.org/10.6084/m9.figshare.1065518.v1Copy DOI Icon

Hortizontal Aggregation in SQL for Data Mining Analysis to Prepare Data Sets

  • Jun 21, 2014
  • Journal Ijmer +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

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, where as the SPJ method does not. In a relational database, especially with normalized tables, a significant effort is required to prepare a summary data set that can be used as input for a data mining or statistical algorithm. Most algorithms require as input a data set with a horizontal layout, with several Records and one variable or dimension per column. That is the case with models like clustering, classification, regression and PCA; consult. Each research discipline uses different terminology to describe the data set. In data mining the common terms are point-dimension. Statistics literature generally uses observation-variable. Machine learning research uses instance-feature. This article introduces a new class of aggregate functions that can be used to build data sets in a horizontal layout (denormalized with aggregations), automating SQL query writing and extending SQL capabilities. We show evaluating horizontal aggregations is a challenging and interesting problem and we introduced alternative methods and optimizations for their efficient evaluation. II. MOTIVATION As mentioned above, building a suitable data set for data mining purposes is a time- consuming task. This task generally requires writing long SQL statements or customizing SQL Code if it is automatically generated by some tool. There are two main ingredients in such SQL code: joins and aggregations; we focus on the second one. The most widely- known aggregation is the sum of a column over groups of rows. Some other aggregations return the average, maximum, minimum or row count over groups of rows. There exist many aggregations functions and operators in SQL. Unfortunately, all these aggregations have limitations to build data sets for data mining purposes. The main reason is that, in general, data sets that are stored in a relational database (or a data warehouse) come

Similar Papers
  • Research Article
  • Citations52

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

  • Apr 01, 2012
  • IEEE Transactions on Knowledge and Data Engineering
  • Carlos Ordonez +1
  • Book Chapter
  • Citations6

Introduction to 3DM: Domain-Oriented Data-Driven Data Mining

  • May 17, 2008
  • Guoyin Wang
  • Research Article
  • Citations1

Customized M-clustering Algorithm Comparison with Clustering Algorithms in Data Mining with the Case Study of Lead Generation Techniques

  • Jan 20, 2016
  • Indian Journal of Science and Technology
  • E Manigandan
  • Conference Article
  • Citations1

Study on the Data Mining Web Service Recommendation Engine

  • May 11, 2012
  • Jianwei Wang +3
  • Research Article
  • Citations8

HEART DISEASE PREDICTION USING DATA MINING

  • May 25, 2020
  • International Journal of Advanced Research in Computer Science
  • Shamanthdl Shamanthdl +4
  • Conference Article
  • Citations3

Power system state recognition using data mining algorithms

  • Sep 01, 2013
  • Prem Alluri +3
  • Research Article
  • Citations1

Review on Application of Data Mining Educational Big Data

  • Sep 25, 2020
  • Rishiram +1
  • Research Article

Classification of Liver cirrhosis via data mining algorithm: A new tool to detect disease

  • Jun 30, 2021
  • Annals of Hepato-Biliary-Pancreatic Surgery
  • Manvendra Singh
  • Research Article
  • Citations84

Extracting Actionable Knowledge from Decision Trees

  • Jan 01, 2007
  • IEEE Transactions on Knowledge and Data Engineering
  • Qiang Yang +3
  • Conference Article
  • Citations5

Bio inspired Ensemble Feature Selection (BEFS) Model with Machine Learning and Data Mining Algorithms for Disease Risk Prediction

  • Sep 01, 2019
  • Syed Javeed Pasha +1
  • Research Article
  • Citations2

Decision support based on optimized data mining techniques: Application to mobile telecommunication companies

  • Jun 22, 2020
  • Concurrency and Computation: Practice and Experience
  • Lamia Berkani
  • Conference Article
  • Citations4

<title>Data mining for multiagent rules, strategies, and fuzzy decision tree structure</title>

  • Mar 13, 2002
  • Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE
  • James F Smith Iii +2
  • Conference Article
  • Citations9

Analysis of a Cascade Scaling Algorithm using Data Mining Methods

  • Jun 17, 2022
  • Satyajit S Uparkar +1
  • Supplementary Content
  • Citations1

Programming abstractions, compilation, and execution techniques for massively parallel data analysis

  • Apr 28, 2015
  • DepositOnce
  • Stephan Ewen
  • Book Chapter

Development of Control Signatures with a Hybrid Data Mining and Genetic Algorithm

  • Jan 01, 2008
  • Alex Burns +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.