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

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:

主站蜘蛛池模板: 阳江市| 双峰县| 营口市| 进贤县| 上虞市| 阜阳市| 德江县| 安阳县| 乌兰察布市| 三河市| 胶州市| 桃园市| 昌乐县| 白银市| 休宁县| 公安县| 加查县| 土默特右旗| 合山市| 阿克陶县| 将乐县| 康定县| 南木林县| 墨江| 苏尼特左旗| 哈尔滨市| 内江市| 阿瓦提县| 兴化市| 蒲江县| 安西县| 乌鲁木齐市| 新晃| 若羌县| 八宿县| 云浮市| 北安市| 临猗县| 调兵山市| 建德市| 富平县|