Hi,
I'm using this SQL statement to retrieve Value and Date which will then be plotted on a graph:
SELECT DISTINCT assets.SEDOL,assets.Quantity,stock_names.value,stock_names.Fileid,date_header.dateid
FROM assets,stock_names,date_header
WHERE assets.Client_ref = '$clientref' AND stock_names.SEDOL = assets.SEDOL
AND date_header.fileid = stock_names.fileid
I'm also selecting Quantity. Instead of having to multiply out the arrays, how can I multiply value and quantity inside the SQL statement and then just return Value (multiplied by quantity)?