Fastest Results

2004-11-02 Thread Rob Best
I have a database that contains a cable of 'customers'. 'Customers' does not change on a regular basis but is queried frequently so I have setup a 'customers_cache' table, which is exactly the same as 'customers', except 'customers_cache' is a memory based table. Before doing a query on 'custom

Re: -bin.001 Files

2004-09-28 Thread Rob Best
ep 28, 2004, at 4:49 AM, Rob Best wrote: On my mysql servers, I've noticed some unexpected files in the /usr/local/mysql/data/ directory. Specifically, I have files like: -bin.001 -bin.002 -bin.003 etc. (obviously with being replaced with the name of the computer) I also have files like... inn

-bin.001 Files

2004-09-28 Thread Rob Best
On my mysql servers, I've noticed some unexpected files in the /usr/local/mysql/data/ directory. Specifically, I have files like: -bin.001 -bin.002 -bin.003 etc. (obviously with being replaced with the name of the computer) I also have files like... innodb.status.410 innodb.status.411 innodb.st

Select non-matching fields

2004-08-06 Thread Rob Best
This is probably a very easy question for many of you. I have two tables, 'Purchases' and 'Purchased_Items'. For every purchase there is one entry in 'Purchases' and 1 or more entries on 'Purchased_Items' (depending on how many items were purchased'. The two tables are linked by a 'ticket_number'

Re: Sum two column selects and put results in a different column

2004-07-23 Thread Rob Best
ication I would either lock the tables to prevent outside updates during the computation, or I would wrap the whole process with a transaction. That way you can avoid updating the balance with only part of the information. Yours, Shawn Green Database Administrator Unimin Corporation - Spruce Pine R

Sum two column selects and put results in a different column

2004-07-23 Thread Rob Best
I hope this isn't a stupid question but this is my best place to ask... I have a database where I need to do a sum of a returned select... SELECT SUM(purchases.amount_of_credit_used) WHERE customer_id="jdoe"; and do a sum of another returned select... SELECT SUM(amount) from deposits WHERE customer