This is what I finially got to work. Is there a better way to do this? I'll add a few more details to explain why I have some of the stuff at the end. Oh, and I'm using MySQL v4.1.12 so I do have subqueries.
SELECT p.id, p.category, CONCAT_WS('.', IFNULL(p.major, 0)...
I am trying to find which row has the result produced by MAX(). I've tried quite a few different approaches, but I'm not getting what I want. Here is a simplified example:
Table: prod_ver
id category version
1 5 3
22 52 3
88 5 4
116 52 5
117 3...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.