A method and system analyze data in a database. The method and system include defining a plurality of set of rules, wherein each set of rules corresponds to a predictive model, storing the each set of rules corresponding to the predictive model in a library as a user-defined function, and calling the user-defined function via a standard sequel language.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method for analyzing data in a database, the method comprising: a. defining a plurality of set of rules, wherein each set of rules corresponds to a predictive model; b. storing the each set of rules corresponding to the predictive model in a library, wherein the each set of rules corresponding to the predictive model is stored as a user-defined function in the library; and c. calling the user-defined function, Wherein the user defined function is called to analyze data in the database. 2. The method as claimed in claim 1, wherein the user-defined function is configured to operate on one or more rows in the database. 3. The method as claimed in claim 1, wherein the user-defined function is called via a standard sequel language. 4. A system for analyzing data in a database, the system comprising: a. a rule definition module, wherein the rule definition module is configured to define a plurality of set of rules, wherein each set of rules corresponds to a predictive model; b. a storage module, wherein the storage module is configured to store the each set of rules corresponding to the predictive model in a library as a user defined function; and c. a function-calling module, wherein the function-calling module is configured to call the user defined function. 5. The system as claimed in claim 4, wherein the function-calling module calls the user defined function via a standard sequel language. 6. The system as claimed in claim 4, wherein the function-calling module applies the called user defined function on one or more rows in the database.