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';
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';
types of joins in mysql
Joins are used with select statement. it is used to select data from multiple table.
Types:
MySQL INNER JOIN (or simple join)
MySQL LEFT OUTER JOIN (or LEFT JOIN)
MySQL RIGHT OUTER JOIN (or RIGHT JOIN)
Inner JOIN :
The INNER JOIN is used to return all rows from multiple tables where the join condition is satisfied. It is the most common type of join.
Left Outer Join:
The LEFT OUTER JOIN returns all rows from the left hand table specified in the ON condition and only those rows from the other table where the join condition is fulfilled.
Right Outer Join:
The Right Outer Join returns all rows from the RIGHT-hand table specified in the ON condition and only those rows from the other table where he join condition is fulfilled.
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