skip to Main Content

Mysql sum on self table select

I'm looking for the right sql query to do the following operation: I need to display all record for today and for each make sum of price field for the curent user and date < today Table Commandes: (today =…

VIEW QUESTION

Mysql – How to SUM two column in My SQL left join

So i have table Project --------------------------------- project_id | name| --------------------------------- 1 | project 1 | 2 | project 2 | --------------------------------- table 02 report ---------------------------------------------------- report_id | report_emp | report_hours |report_project_id| --------------------------------------------------- 1 | 1 | 5 | 1 |…

VIEW QUESTION
Back To Top
Search