title: For joins in SQL, Is common column not compulsory?
body: <p>I came to know that we can use other than <code>JOIN ON a.col = b.col</code>, with <code>JOIN ON a.col CONDITION b.col2</code>. How does it works?.</p>
  <p>Example:<br />
  2 Tables are:</p>
  <p><a href="https://i.stack.imgur.com/Cfc7p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cfc7p.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/XASvX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XASvX.png" alt="enter image description here" /></a></p>
  <p>We can join them as follows (ignoring the required output code, how is that join worked?)</p>
  <pre><code>SELECT Students.Name, Grades.Grade, Students.Marks FROM Students 
  INNER JOIN Grades ON Students.Marks BETWEEN Grades.Min_Mark AND Max_Mark
  WHERE Grades.Grade &gt; 7 
  ORDER BY Grades.Grade DESC, Students.Name ASC;
  </code></pre>