Guys, I currently have a table called products in my database, and inside the products there is a column called “value”.
How do I create a function where I can sum all the values at once?
Note: All values are transformed to Float.
I want to call my template like this:
<%= ProjectWeb.Structure.Product.sum_value =>
Is it possible to do that?