I have a table that logs variou开发者_高级运维s transactions for a CMS. It logs the username, action, and time. I have made the following query to tell me how many transactions each user made in the p
I have a table that records every single sales for 350+ products in a store; column includes product name and date.
I have an employee table which contains a manager ID as a column. If I need to get the manager of manager of a certain employee, how would I do it efficiently? How about if we are required to a 5 laye
Here is a query I have that returns the chain of supervisors for an employee but it uses a bunch of nested SELECT statements.
I\'ve been tearing my hair out trying to figure out how to code a messaging system capable of the following:
I have the following query: SELECT `date`, al.cost, SUM(l.bnd) AS bnd, l.type, count(*) AS amount FROM alogs AS al
Long story from my weekend with an EC2 instance. Dumped the data I massaged there into a 685MB dump file to move over to my server. Early morning so didn\'t detect that I had the option set for an ext
The following query isn\'t efficient and I need to make it run much faster. idselect_type tabletypepossible_keyskey key_len ref rowsExtra
I am working on something that uses Zen Cart. Changing the site from Zen Cart is not optional at this point. The site works fine most of the time, but every week or so, the site takes a performance hi
This is a followup to debugging a mysql insert fail in php as I now have time to continue on the project.