I have this query:
but I don’t show SUM
Why ? @Teodor
I want show SUM of “Codice Articolo”
Please provide a link to your page.
https://erp.decoresin.com/app/test/test-classifica-prodotti-a-quantita.php
this is a test page
Please add an alias for the SUM column and use it in the table generator then
Sorting is not working because the column you need to sort by is totale_articolo
.
Which is not accessible here in query builder.
Remove the sorting condition from query builder, and just add the column alias name in Server Connect’s sort property as below:
I did the same and it worked for me.
See here: http://wappler.slashash.co/test/sortalias.php
Can you share a link of your page?
Two observations:
totale_articolo
is returned as numeric, whereas in my test url, the SUM column sumal
is being returned as a string. Don’t exactly know why - probably has something to do with MySQL version.