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

  • 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:

主站蜘蛛池模板: 安西县| 和平区| 沧源| 孟津县| 南充市| 吴江市| 芜湖市| 南城县| 通化县| 客服| 娱乐| 从江县| 墨竹工卡县| 景洪市| 屏山县| 赤壁市| 东乌珠穆沁旗| 根河市| 江孜县| 溧阳市| 香港| 朝阳市| 长顺县| 涞源县| 孟州市| 积石山| 青铜峡市| 旌德县| 丰台区| 彩票| 新建县| 陇南市| 玛沁县| 马公市| 历史| 巴青县| 衡东县| 祁东县| 五河县| 襄汾县| 栾城县|