skip to Main Content

Mysql SUM with UNION ALL and JOIN

I have 2 tables and I like to get sum of values and also to group by the result. I have this query: SELECT SUM(tr_amount) as total, projects.pr_type from transactions INNER JOIN projects ON projects.pr_name = transactions.tr_pr_name WHERE tr_amount <…

VIEW QUESTION

Display Line chart with data retrieved from MySQL Database

I am using a template built on Bootstrap 4 & 5. There is a line chart already featured, with hardcoded values being displayed. Hardcoded values: <div class="sparkline" data-type="line" data-spot-Radius="0" data-offset="90" data-width="100%" data-height="50px" data-line-Width="1" data-line-Color="#604a7b" data-fill-Color="#a092b0">1,4,2,3,6,2</div> </div> And it looks like…

VIEW QUESTION
Back To Top
Search