Skip to content
Advertisement

Why I am getting multiple rows instead of single row of a particular date from database while I am trying to get sum of revenue as Date Wise

I am trying to get a table which sum the total revenue of a particular date, but using the following code I am getting multiple row each date instead of single row: –

JavaScript

JavaScript

I want to get results like this: –

JavaScript

Advertisement

Answer

JavaScript

you need to group by date so append group by date; in the query.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement