Forum: Database Design Jul 20th, 2009 |
| Replies: 10 Views: 2,106 I'd imagine ithlep is talking about making a database that stores an ID for every citizen along with other personal information like their name, address, those sorts of things. Something possibly... |
Forum: MySQL Jul 16th, 2009 |
| Replies: 3 Views: 421 *edit* I misunderstood your post, sorry. |
Forum: MySQL Jul 14th, 2009 |
| Replies: 4 Views: 394 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: 263 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: Database Design Jul 8th, 2009 |
| Replies: 1 Views: 330 I would imagine storing it somewhere would be faster since it wouldn't require a whole scan/count. |
Forum: MS SQL Jul 6th, 2009 |
| Replies: 2 Views: 1,143 You should be able to do the following in SQL Server Management Studio Express:
Right click on the databases folder in the object explorer and select "Attach" then "Add." From there you can just... |
Forum: MySQL Jun 29th, 2009 |
| Replies: 4 Views: 697 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,602 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: Database Design Jun 24th, 2009 |
| Replies: 4 Views: 487 Not to push the RDM product line too much but http://docs.raima.com/rdms/8_2/Content/UG/Chapter15.htm does provide an overview of replication and how it can be used. |
Forum: MySQL Jun 24th, 2009 |
| Replies: 6 Views: 866 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... |