[ Velja79 @ 10.06.2003. 21:21 ] @
Imamam tabelu podaci.
kolone vreme -->dateTime
vrednost --> mediumInt

Kako da izaberem tacno vreme(datum) maksimalne mesecne vrednosti i maksimalnu vrednost samu.

Tj. Hocu ako je u 28 januara max vrednost bila 128 ocu red

vreme -----------------|-- maxvrednost
28. januar te i te godine | 128


hvala uanpred.
[ broker @ 11.06.2003. 14:06 ] @
select * from podaci
order by vrednost desc
top 1

ili

select * from podaci
order by vrednost desc
limit 1, 1

ne znam tacnu sintaksu za MySQL napamet...