官术网_书友最值得收藏!

  • MySQL 8 for Big Data
  • Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
  • 122字
  • 2021-08-20 10:06:13

SQL JOINS

Join is used to retrieve data from multiple tables. For example, if there are two tables, order and customer, and we want to retrieve data, it is possible using the JOIN clause.

The different types of JOIN are as follows:

  • INNER JOIN: Returns only those records which have matching values in both tables.
  • CROSS JOIN: Returns only those records which are have matching values in either the left or right table.
  • LEFT JOIN: This will returns all records from the left table and only matching records from the right table.
  • RIGHT JOIN: This will returns all records from the right table and only matching records from the left table.

The following figure illustrates the example that we looked at briefly:

主站蜘蛛池模板: 洛南县| 手机| 望都县| 石台县| 和顺县| 荆门市| 松桃| 株洲县| 长子县| 阳东县| 乡宁县| 湛江市| 冀州市| 徐汇区| 桑日县| 博野县| 平遥县| 巴林左旗| 栾城县| 伊春市| 连云港市| 白河县| 乐亭县| 高台县| 孙吴县| 彩票| 饶阳县| 吐鲁番市| 崇文区| 海兴县| 武邑县| 道孚县| 安吉县| 浠水县| 常宁市| 深泽县| 彭山县| 荆门市| 棋牌| 洪江市| 稷山县|