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

Joining

While working on data model building, we often encounter a situation where we want to have some fields added from one table into another to do some sort of calculations. In such situations, we use the option of joining those tables based on the common fields between them.

Let's understand how we can use joins between tables with a simple example.

Assume you want to calculate the selling price of a product. The information you have is SalesQty in Sales Table and UnitPrice of product in Product Table. The calculation for getting the sales price is UnitPrice * SalesQty. Now, let's see what output we get when we apply a join on these tables:

主站蜘蛛池模板: 阿瓦提县| 江口县| 紫阳县| 诸暨市| 新田县| 西峡县| 高青县| 银川市| 宝山区| 惠来县| 雅安市| 芜湖市| 水富县| 察哈| 易门县| 湖南省| 忻城县| 额尔古纳市| 清新县| 南昌市| 安龙县| 青冈县| 凌云县| 安福县| 昌平区| 波密县| 来安县| 天祝| 习水县| 循化| 汝城县| 乌海市| 肥西县| 石狮市| 黄冈市| 迁安市| 辽中县| 祁阳县| 惠来县| 绥化市| 天柱县|