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

hostname-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: hostname-bin.001 hostname-bin.002 hostname-bin.003 etc. (obviously with hostname being replaced with the name of the computer) I also have files like...

Re: hostname-bin.001 Files

2004-09-28 Thread Rob Best
, 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: hostname-bin.001 hostname-bin.002 hostname-bin.003 etc. (obviously with hostname being replaced with the name of the computer) I also

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

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

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

2004-07-23 Thread Rob Best
. That way you can avoid updating the balance with only part of the information. Yours, Shawn Green Database Administrator Unimin Corporation - Spruce Pine Rob Best [EMAIL PROTECTED] wrote on 07/23/2004 07:24:02 AM: I hope this isn't a stupid question but this is my best place to ask... I have