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)
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)
use of where in left join in mysql
SELECT bk1.book_name,bk1.isbn_no,bk1.book_price,bk1.pub_lang
FROM book_mast bk1
LEFT JOIN book_mast bk2 ON bk1.book_price<bk2.book_price
WHERE bk2.pub_lang='German';
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us