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
Post a Comment