1. A database management system for in-database clustering, comprising: a first data table and a second data table, each data table including a plurality of rows of data; means for building a clustering model using the first data table; and means for applying the clustering model using the second data table to generate apply output data.