Mysql – I can't find the issue with this SQL funtion
Here is the code of the (My)SQL function (it works outside of the function), but I can't manage to save it as a function for further reuse... This is an example of the working query: SELECT ( SUM(Items_Available * Store_Sales)…