Database / SQL
Explain different types of SQL joins.
There are different types of joins available in SQL:
LEFT JOIN: returns all rows from the left table, even if there are no matches in the right table.
RIGHT JOIN: returns all rows from the right table, even if there are no matches in the left table.
FULL JOIN: combines the results of both left and right outer joins.
The joined table will contain all records from both the tables and fill in NULLs for missing matches on either side.SELF JOIN: joins a table to itself as if the table were two tables, temporarily renaming at least one table in the SQL statement.
CARTESIAN JOIN: returns the Cartesian product of the sets of records from the two or more joined tables.
![](https://raw.githubusercontent.com/javatutorials2016/jp/master/img/sql_join.png)
Dogecoin
! Earn free bitcoins up to $250 now by signing up.
Earn bitcoins upto $250 (free), invest in other Cryptocurrencies when you signup with blockfi.
Use the referral link: Signup now and earn!
![](https://raw.githubusercontent.com/javatutorials2016/jp/master/img/blockfi.jpeg)
Using BlockFi, don't just buy crypto - start earning on it. Open an interest account with up to 8.6% APY, trade currencies, or borrow money without selling your assets.
![](https://raw.githubusercontent.com/javatutorials2016/jp/master/img/coinbase.png)
Join CoinBase
! We'll both receive $10 in free Bitcoin when they buy or sell their first $100 on Coinbase! Available in India also.
Use the referral Join coinbase!
![](https://raw.githubusercontent.com/javatutorials2016/jp/master/img/robinhood.png)
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
![](https://raw.githubusercontent.com/javatutorials2016/jp/master/img/webull770x770.jpeg)
Webull
! Receive free stock by signing up using the link: Webull signup.
More Related questions...