Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: davidn ; Forum: MySQL and child forums
Forum: MySQL Jul 16th, 2009
Replies: 3
Views: 428
Posted By davidn
*edit* I misunderstood your post, sorry.
Forum: MySQL Jul 14th, 2009
Replies: 4
Views: 399
Posted By davidn
You probably could run an update after each delete that would look something like:

UPDATE number1 SET number = number-1 where number > *deleted name id num*

and just set the *deleted name id...
Forum: MySQL Jul 13th, 2009
Replies: 2
Views: 266
Posted By davidn
You should be able to do a group by on the state and then select the max of the counts of names.

It'd be something like:

select max(totalnames) as highest_total from ( select state,...
Forum: MySQL Jun 29th, 2009
Replies: 4
Views: 717
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 25th, 2009
Replies: 8
Views: 1,654
Posted By davidn
To clarify a little, you are getting a password prompt because you are specifying -p which is normally used as -p[password] but you are not supplying a password after the -p so it prompts you for...
Forum: MySQL Jun 24th, 2009
Replies: 6
Views: 868
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 6 of 6

 


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

©2003 - 2009 DaniWeb® LLC