Hello... total newb here... I know how to achieve a "sum" by using the following statement:
SELECT SUM(Quantity) AS TotalItemsOrder ed FROM OrderDetails;
but... I don't know how to display the result? I realize the "AS" is the column header for the answer but I don't know how to echo it.
All help is appreciated.
Thank you!
SELECT SUM(Quantity) AS TotalItemsOrder ed FROM OrderDetails;
but... I don't know how to display the result? I realize the "AS" is the column header for the answer but I don't know how to echo it.
All help is appreciated.
Thank you!
Comment