Forum: MySQL Jul 16th, 2009 |
| Replies: 3 Views: 428 *edit* I misunderstood your post, sorry. |
Forum: MySQL Jul 14th, 2009 |
| Replies: 4 Views: 399 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 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 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 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 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... |