Integrating K-means clustering with a relational DBMS using SQL
Scaling Clustering Algorithms to Large Databases