Skip to content
Advertisement

I want to make monthly report from SQL using 3 tables [closed]

I want to make a report from 3 tables like this

I saw this answer on this forum that telling me I could SELECT 3 tables directly like that but the output unexpectedly duplicated so much. This is how it looks like enter image description here

Advertisement

Answer

You are cross joining everything — you want left joins… I’m guessing what the joins are but it would look something like this:

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