Re: query efficiency

2011-09-27 Thread Hal�sz S�ndor
2011/09/27 05:32 -0700, supr_star Here's a simple query: select name,status,min(dt), max(dt),count(*) from mytable group by name I need an efficient way to get this data, along with the status of the row with the max(dt). 'status' is not in the group by, so I get apparently random sta

query efficiency

2011-09-27 Thread supr_star
Here's a simple query: select name,status,min(dt), max(dt),count(*) from mytable group by name I need an efficient way to get this data, along with the status of the row with the max(dt).  'status' is not in the group by, so I get apparently random statuses.  Is there any way to do this witho

Re: query efficiency

2004-01-12 Thread Matt W
nuary 12, 2004 2:48 AM Subject: Re: query efficiency > Thats not really what I meant. I have 5 (or whatever) columns in a table. > I need to update values changed in those columns during processing. But I > have no way of knowing what column values need updating. Is it worth my > w

query efficiency question

2002-06-18 Thread harm de laat
Hi all, I have two tables containing the following: table1: +--++ | UNID | DATE | +--++ | 08294D5D0F9ABE6D46663300BDB6521C | 2001-09-09 02:00:30| | FF

MySQL query efficiency - JOINs

2002-06-03 Thread Eivind A. Sivertsen
I have a question regarding the efficiency of an explicit JOIN statement vs. an implicit one. What I mean: I have a many-to-many mapping through a mapping table. I.e. I have different types of tools mapped to several categories in which they might belong. For instance, a complete programming sui