Skip to content
Advertisement

How to join 3 tables in SQL

I have 3 tables:

Table 1

Table 2

Table 3

I want to join table 1 to table 2 and table 3.

Get all rows of table 1 and table 3 sku1 + count qty by sku1 with email + count order of customer has ‘sku1’

I want get a result like this:

Can someone help me? Thanks all <3

Advertisement

Answer

I think you want left joins and aggregation:

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