Search Results

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: davidn ; Forum: MySQL and child forums
Forum: MySQL Jun 29th, 2009
Replies: 4
Views: 753
Posted By davidn
Hi,

You can do something similar to what I did below.

update products set p_price = p_price * 1.10 WHERE p_code LIKE 'ffc%' or p_code LIKE 'dcc%';
Forum: MySQL Jun 24th, 2009
Replies: 6
Views: 890
Posted By davidn
If you want to do all the math through just SQL, you can do something similiar to the following:

SELECT session, SUM((markup/100.0* price + price)* amount * units) AS total FROM cart, fruit WHERE...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC