Your question is a bit unclear for me.
Do you ask how to write SQL to sum up
the total of each item ?
『Please use the Topic Tools button to mark as Solved
Upvote the answer(s) that helped you to solve the issue』
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.