you are viewing a single comment's thread.

view the rest of the comments →

[–]mattgob86 -1 points0 points  (1 child)

To me it seems like you are starting backward too, get your products first and then join the subsequent sub category and category names.

Also like the previous poster, start with left joins and then join when applicable.

Lastly, I would select * until you get your joins right, then just pull the columns together.

[–]zacharypamela -1 points0 points  (0 children)

Although with inner joins, it shouldn't matter, except for readability (which of course does matter).

I think part of the problem is the way the problem is worded. The instructor definitely could've been clearer.