Skip to content
Advertisement

Is there anybody who can help me with mysql query?

This is my query! And I always have an issue of this, “Subquery returns more than 1 row”…..

Advertisement

Answer

I think that you are looking for conditional aggregataion:

This will give you, for each day, the sum of kwh over the 3 distinct time slots (daytime, peaktime, offpeaktime).

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