quel record e' l'unico che soddisfa contemporaneamente entrambe le condizioni,Originariamente inviato da AvOJaromil
id data_ini data_fin desc
0 2008-06-15 12:30 2008-06-15 14:30 qwerty.......
1 2008-06-13 00:00 2008-06-22 00:00 qwery.........
2 2008-06-22 15.30 2008-06-22 17:30 qwerty.........
3 2008-06-15 14:25 2008-06-15 18.00 qwerty........
io mi aspetto 3 risultati, id 0, 1 e 3 ma invece mi restituisce solo id 1
puoi scrivere anche cosi
select * from tua_tabella where timestamp_riferimento between data_ini and data_fin
sei sicuro di aver compreso a che serve e come funziona la WHERE ?
GIo

Rispondi quotando