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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -