Calculating date fields in MySQL from VB.Net? -


i working vb.net , mysql database. have 2 tables called: customer, dvd_soft , rent in mysql database.

customer: cust_id, name, phone, email> dvd_soft: dvd_id, dvd_name, dvd_desc, rent_price_per_day rent: cust_id, dvd_id, retal_date, return_date, total_fee

i have done total_fee calculation is:

total_fee = datediff(dateinterval.day, rental_date, return_date)*rent_price_per_day>

but need add penalty fee total_fee when customer return_date exceeded. want follows vb.net mysql

total_fee = (rent_price_perday*exceeded_date)+total_fee>


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -