No idea if this works in Access, but in pure SQL it would be:SELECT nomarxia ,moria ,(SELECT MAX(moria) FROM DE i WHERE i.nomarxia = o.nomarxia) AS MAX_moria ,(SELECT MIN(moria) FROM DE i WHERE i.nomarxia = o.nomarxia) AS MIN_moria ,(SELECT COUNT(moria) FROM DE i WHERE i.nomarxia = o.nomarxia) AS Count_idFROM DE oWHERE adt = "M1234"
orSELECT nomarxia ,moria ,MAX_moria ,MIN_moria ,Count_idFROM DEINNER JOIN ( SELECT nomarxia ,MAX(moria) AS MAX_moria ,MIN(moria) AS MIN_moria ,COUNT(moria) AS Count_id } AS DTbl ON DTbl.nomarxia = DE.nomarxiaWHERE adt = "M1234"
-- This one's tricky. You have to use calculus and imaginary numbers for this. You know, eleventeen, thirty-twelve and all those.