Assisted query building and data retrieval
A generic query having a dynamic query parameter may be executed for a specified process. One or more expected parameters for the query are determined based on the dynamic query parameter and the process, where the one or more expected parameters are tagged to the dynamic query parameter for the process. One or more measured parameters are accessed based on the one or more expected parameters from one or more databases accessible over a network. The one or more measured parameters are returned responsive to the query.
1 . A method implemented by a processor, the method comprising:
storing, by the processor, a lot characteristic associated with a first raw material lot including a raw material;
creating, by the processor, tables for producing a product including the raw material, the tables including one or more intermediary tables and a product table;
tracking, by the processor, the first raw material lot during production of the product by recording an amount of raw material from the first raw material lot in at least one of the one or more intermediary tables and the product table; and
generating, by the processor, a product characteristic corresponding to the product by, using the product table, aggregating the lot characteristic of the first raw material lot based on the tracking of the first raw material lot;
wherein generating the product characteristic corresponding to the product by aggregating the lot characteristic of the first raw material lot based on the tracking of the first raw material lot is based on a recursive determination of the recording of the amount of raw material from the first raw material lot used during production of the product.
2 . The method of claim 1 , wherein aggregating the lot characteristic of the first raw material lot based on the tracking of the first raw material lot occurs responsive to a query for the product characteristic of the product.
3 . The method of claim 1 , further comprising:
tracking, by the processor, a second raw material lot of the raw material during production of the product; and
wherein generating the product characteristic further comprises aggregating the lot characteristic of the second raw material lot based on the tracking of the second raw material lot with the aggregated lot characteristic of the first raw material lot.
4 . The method of claim 3 , wherein tracking, by the processor, the second raw material lot during production of the product includes recording an amount of raw material from the second raw material lot used during production of the product in at least one of the one or more intermediary tables and the product table.
5 . The method of claim 4 , wherein aggregating the lot characteristic of the second raw material lot with the lot characteristic of the first raw material lot comprises:
adjusting, by the processor, the lot characteristic of the second raw material lot based on an amount of raw material from the second raw material lot used during production of the product; and
adjusting, by the processor, the lot characteristic of the first raw material lot based on an amount of raw material from the first raw material lot used during production of the product.