| List: | General Discussion | « Previous MessageNext Message » | |
| From: | bruce | Date: | September 11 2004 3:16am |
| Subject: | strange group/max date question... | ||
| View as plain text | |||
hi... i have the following select... select itemID, process, status, tblType, max(date) from historyTBL where (tblType = '3' or tblType = '2') group by tblType; it seems to work, in that it gives me the rows for the two types that i'm grouping by. the problem is that i want the row that contains the max date. the query is only returning the max date, with the other elements in the row coming from who knows where in the table. any idea on how i can achieve the complete row containing the max date??? i've looked through google/mysql with no luck.... thanks. -bruce
| Thread | ||
|---|---|---|
| • group by issue...?? | bruce | 11 Sep |
| • Re: group by issue...?? | Paul DuBois | 11 Sep |
| • RE: group by issue...?? | bruce | 11 Sep |
| • RE: group by issue...?? | Paul DuBois | 11 Sep |
| • RE: group by issue...?? | bruce | 11 Sep |
| • strange group/max date question... | bruce | 11 Sep |
| • Re: strange group/max date question... | Andrew Kreps | 11 Sep |
| • Re: strange group/max date question... | Michael Stassen | 11 Sep |
| • RE: group by issue...?? | SGreen | 13 Sep |
| • RE: group by issue...?? | Paul DuBois | 11 Sep |
