Skip to content
Advertisement

How to insert a inner join from 3 different tables

I am making a view pulling data from 3 different tables for the query. Here is my code so far, I’m just not sure how to integrate the inner joins since I already have a select statement, I can’t picture it. A rewrite of my code would be appreciated!

Advertisement

Answer

You already have an inner join; you just wrote it using the legacy comma join syntax rather than the (more modern) ANSI syntax.

If you want to explicitly rewrite it using ANSI syntax then:

  • replace the commas with the join type; then
  • after the identifier for the table being joined add an ON clause containing the join condition.
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement