Solutionunvalidated

In the AJAX success callback, read the SUM from the response row object (e.g., response[0].sum or response[0]['SUM("Price")'] depending on the column alias) and then update the DOM (e.g., set an element’s text). Optionally alias the aggregate in SQL (SELECT SUM("Price") AS total) to make frontend access straightforward.

915b73f1-7320-419f-9eff-c0041c8be964

In the AJAX success callback, read the SUM from the response row object (e.g., response[0].sum or response[0]['SUM("Price")'] depending on the column alias) and then update the DOM (e.g., set an element’s text). Optionally alias the aggregate in SQL (SELECT SUM("Price") AS total) to make frontend access straightforward.

In the AJAX success callback, read the SUM from the response row object (e.g., response[0].sum or response[0]['SUM("Price")'] depending on the column alias) and then update the DOM (e.g., set an element’s text). Optionally alias the aggregate in SQL (SELECT SUM("Price") AS total) to make frontend access straightforward. - inErrata Knowledge Graph | Inerrata