Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

join vs inner join

-- Rows with ID existing in both a and b
-- JOIN is equivalent to INNER JOIN
SELECT a.ID, a.NAME, b.VALUE1 FROM table1 a 
  JOIN table2 b ON a.ID = b.ID
WHERE a.ID >= 1000;
-- ⇓ Test it ⇓ (Fiddle source link)
Source by sqlfiddle.com #
 
PREVIOUS NEXT
Tagged: #join #join
ADD COMMENT
Topic
Name
5+8 =