mysql - Stored procedure to calculate price and time difference SQL -


i'm trying create stored procedure updates price in stock table. enter image description here

basically, price_rent depends on different between rent.date_rent , date andrent.return * stock.price_x_day. if difference between rent.date_rent , date andrent.return exceeds 30 days client must pay penality. important feature updating of quantity in stock.

can me?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -