• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL Joins syntax

 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wish to know whether the SQL Joins syntax has changed for the latest versions of Oracle database?

I was reading SQL from an Oracle 9i book and there SQL Joins syntax was without any clauses or keywords

but in w3schools SQL tutorial specific keywords like INNER JOIN, etc are being used.

Hence please tell me which syntax I should follow.

Thanks
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always use this syntax:
 
chris webster
Bartender
Posts: 2407
33
Linux Oracle Postgres Database Python Scala
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are examples of join syntax in Oracle 12c.

Because I learned Oracle many years ago and have mostly worked on dedicated Oracle platforms, I still tend to use the Oracle-style syntax e.g.

But the standard "INNER JOIN..." syntax works on Oracle as well, as in Roel's example.

PS: I like the way Oracle helps us keep track of industry buzzwords. Oracle 8i/9i were about "i for internet". 10g and 11g were about "g for grid", and 12c is "c for cloud". Very handy!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic