A data acquisition device comprising: a command acceptance unit configured to accept, from an application execution device, a query command to acquire data from a database that stores data which is associated with a variable defining the data and having a value , the query command including a range of values corresponding to the data to be acquired; an acquisition definition storage unit configured to store acquisition definition information that includes a plurality of further ranges of values and each of the further ranges of values is associated with a corresponding acquisition method to acquire data from the database wherein none of the further ranges of values has an overlap with any other of the further ranges of values; and a command generation unit configured to judge for each further range of values, by using the query command and the information stored in the acquisition definition storage unit , whether an overlapping range that overlaps with the range of values exists in the respective further range of values , and when the overlapping range is judged to exist, analyze the query to determine whether there are any candidate parts that needs to be rewritten, when there is a candidate part that needs to be rewritten, rewrite the query command based on the information stored in the acquisition definition storage unit , and generate, based on the query command and the information stored in the acquisition definition storage unit , a data acquisition command to acquire data corresponding to a value which is included in the overlapping range, using the acquisition method corresponding to the respective further range of values ; and a data acquisition unit configured to acquire the data from the database by using the data acquisition command generated by the command generation unit and provide the acquired data to the application execution device in response to the accepted query; wherein the acquisition method is a calculating formula. a command acceptance unit configured to accept, from an application execution device, a query command to acquire data from a database that stores data which is associated with a variable defining the data and having a value , the query command including a range of values corresponding to the data to be acquired; an acquisition definition storage unit configured to store acquisition definition information that includes a plurality of further ranges of values and each of the further ranges of values is associated with a corresponding acquisition method to acquire data from the database wherein none of the further ranges of values has an overlap with any other of the further ranges of values; and a command generation unit configured to judge for each further range of values, by using the query command and the information stored in the acquisition definition storage unit , whether an overlapping range that overlaps with the range of values exists in the respective further range of values , and when the overlapping range is judged to exist, analyze the query to determine whether there are any candidate parts that needs to be rewritten, when there is a candidate part that needs to be rewritten, rewrite the query command based on the information stored in the acquisition definition storage unit , and generate, based on the query command and the information stored in the acquisition definition storage unit , a data acquisition command to acquire data corresponding to a value which is included in the overlapping range, using the acquisition method corresponding to the respective further range of values ; and a data acquisition unit configured to acquire the data from the database by using the data acquisition command generated by the command generation unit and provide the acquired data to the application execution device in response to the accepted query; wherein the acquisition method is a calculating formula. <EOS>