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

INNER JOIN

This join returns records matching in both tables and returns relevant records. For example, the Order table used in any Ecommerce applications:


For example, the Customer table used in ecommerce application which consists Customer data:


The following query would fetch all order records with customer details. As the customer IDs 37 and 77 are not present in the customer table, it will fetch only the matching rows excluding customer IDs 37 and 77:

SELECT order.order_id, customer.name
FROM order
INNER JOIN customer ON order.customer_id = customer.customer_id;
主站蜘蛛池模板: 尚志市| 云和县| 通渭县| 长兴县| 崇阳县| 南召县| 镇平县| 信阳市| 栾川县| 盱眙县| 安新县| 安国市| 保亭| 阿拉尔市| 应用必备| 富源县| 荣成市| 凉城县| 平昌县| 凤阳县| 子洲县| 汨罗市| 稷山县| 惠安县| 两当县| 敖汉旗| 天等县| 彰化县| 临汾市| 宁化县| 遂溪县| 婺源县| 辰溪县| 琼中| 大港区| 吉安县| 郓城县| 仪陇县| 榆中县| 化德县| 成都市|