Answers for "mysql inner join 2 tables"

SQL
1

mysql join two tables

SELECT user_id, user_name
FROM users
UNION
SELECT organization_id, organization_name
FROM organizations
Posted by: Guest on December-07-2020
6

mysql 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)
Posted by: Guest on July-09-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language