A method for extracting information from a database, which comprises a number of data tables (Table 1 - Table 5) containing values of a number of variables, each data table consisting of at least one data record including at least two of said values, said information being extracted by evaluation of at least one mathematical function operating on one or more selected calculation variables, said extracted information being partitioned on one or more selected classification variables, c haracterised by the steps of: initially reading the data records of said database into the primary memory of a computer, and assigning a different binary code to each unique value of each variable in the database and storing the data records in the primary memory in binary-coded form; identifying all data tables containing at least one value of one of said selected calculation or classification variables, such data tables being boundary tables (Table 1; Table 3; Table 22; Table 23); identifying all data tables that have variables in common with said boundary tables and connect the same, such data tables being connecting tables; identifying all selected calculation variables for which the number of occurrences of each value is necessary for correct evaluation of said mathematical function; electing a starting table (Table 2; Table 20) among said boundary and connecting tables; building a conversion structure that links the binary codes assigned to values of each selected variable in said boundary tables to the binary codes assigned to corresponding values of one or more connecting variables in said starting table by successively reading data records of each of said boundary tables and creating a link between each unique value of the connecting variable and a corresponding value of the selected calculation or classification variable, each connecting variable linking the starting table (Table 2; Table 20) with the boundary tables (Table 1; Table 3; Table 22; Table 23), while including data on said number of occurrences of each value in said conversion structure; and evaluating said mathematical function for each data record of said starting table, by using said conversion structure to convert the binary code assigned to each value of each connecting variable into at least one value of at least one corresponding selected variable, such that said evaluation yields a final data structure containing a result of said mathematical function for every unique value of each classification variable. initially reading the data records of said database into the primary memory of a computer, and assigning a different binary code to each unique value of each variable in the database and storing the data records in the primary memory in binary-coded form; identifying all data tables containing at least one value of one of said selected calculation or classification variables, such data tables being boundary tables (Table 1; Table 3; Table 22; Table 23); identifying all data tables that have variables in common with said boundary tables and connect the same, such data tables being connecting tables; identifying all selected calculation variables for which the number of occurrences of each value is necessary for correct evaluation of said mathematical function; electing a starting table (Table 2; Table 20) among said boundary and connecting tables; building a conversion structure that links the binary codes assigned to values of each selected variable in said boundary tables to the binary codes assigned to corresponding values of one or more connecting variables in said starting table by successively reading data records of each of said boundary tables and creating a link between each unique value of the connecting variable and a corresponding value of the selected calculation or classification variable, each connecting variable linking the starting table (Table 2; Table 20) with the boundary tables (Table 1; Table 3; Table 22; Table 23), while including data on said number of occurrences of each value in said conversion structure; and evaluating said mathematical function for each data record of said starting table, by using said conversion structure to convert the binary code assigned to each value of each connecting variable into at least one value of at least one corresponding selected variable, such that said evaluation yields a final data structure containing a result of said mathematical function for every unique value of each classification variable.