i am making this select :select userid,entrnacedatefrom userentrencewhere userid=4order by entrnacedate desc
and i get everything okwhen i do :select userid,MAX(entrnacedate) as maxEnterfrom userentrencewhere userid=4group by userid
i get a wronmg result!the result isnt the max date at all!howcan this be?the entrnacedate is a dateime type.should i do a max query on a date in another way?the more strange thing that on some of the users it works greatand on some it gives incorrect resut!thnaks in avancepelegIsrael -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)