Using PySpark to calculate Orders and Promotion in Incorta


First of all, I have an OnlineBookStore database. I have Orderitems and Promotion tables.



Orderitems Table:


Promotion Table:


I want to calculate the total price of each order from the Orderitems table. Then compare with promotion and find the corresponding gift. So I used PySpark calculate Order Amount in Incorta.






OrderAmount Table:

Comments

Popular posts from this blog

How to create histogram in Incorta use bin function.

Using Time Series Analysis Electric Production by ARIMA Model