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

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:

主站蜘蛛池模板: 芷江| 综艺| 论坛| 汪清县| 兴山县| 福泉市| 吴桥县| 平和县| 阿坝县| 竹溪县| 天全县| 巴南区| 奉贤区| 繁峙县| 菏泽市| 灌云县| 和田市| 凤冈县| 肥城市| 绵竹市| 翼城县| 沙雅县| 镇原县| 高尔夫| 三亚市| 潢川县| 黑山县| 和林格尔县| 临清市| 若羌县| 全南县| 青龙| 府谷县| 和平县| 渭源县| 永平县| 鸡东县| 策勒县| 莲花县| 崇州市| 上杭县|