ciao a tutti ecco il mio quesito....
ho una tabella con i seguenti campi:
id
slug (paese di provenienza)
story summary (contenuto in breve della storia)
moddate es: 03/01/2005 12.30:00 am (data e ora in cui la soria e' stata pubblicata)
questo si ripete per tutti i record del mese di marzo...
ora io devo individuare i record di tutto il mese di marzo
che sono stati pubblicati solo in alcune ore del giorno
es... da 00:30:00 am a 00:46:00 am e poi da 01:30:00 am a 01:56:00 am
questo per 22 volte in 22 ore diverso della giornata per tutti i giorno
lasciando fuori quelli che non stati pubblicati i ore diverse da quelle
io ora sto facendo il tutto creando una query x ogni 4 giorni del mese di piu non posso perche supera la lung max consentita
cioe'
SELECT march05.idmio, march05.Slug, march05.StorySummary, march05.ModDate FROM march05
WHERE (((march05.ModDate)>=#3/1/2005 0:30:0# And (march05.ModDate)<=#3/1/2005 0:45:0#)) OR (((march05.ModDate)>=#3/1/2005 1:30:0# And (march05.ModDate)<=#3/1/2005 1:56:0#)) OR (((march05.ModDate)>=#3/1/2005 2:30:0# And (march05.ModDate)<=#3/1/2005 2:45:0#)) OR (((march05.ModDate)>=#3/1/2005 3:30:0# And (march05.ModDate)<=#3/1/2005 3:56:0#)) OR (((march05.ModDate)>=#3/1/2005 4:30:0# And (march05.ModDate)<=#3/1/2005 4:45:0#)) OR (((march05.ModDate)>=#3/1/2005 5:30:0# And (march05.ModDate)<=#3/1/2005 5:45:0#)) OR (((march05.ModDate)>=#3/1/2005 6:30:0# And (march05.ModDate)<=#3/1/2005 6:56:0#)) OR (((march05.ModDate)>=#3/1/2005 7:30:0# And (march05.ModDate)<=#3/1/2005 7:45:0#)) OR (((march05.ModDate)>=#3/1/2005 8:30:0# And (march05.ModDate)<=#3/1/2005 8:56:0#)) OR (((march05.ModDate)>=#3/1/2005 9:30:0# And (march05.ModDate)<=#3/1/2005 9:56:0#)) OR (((march05.ModDate)>=#3/1/2005 10:30:0# And (march05.ModDate)<=#3/1/2005 10:45:0#)) OR (((march05.ModDate)>=#3/1/2005 11:30:0# And (march05.ModDate)<=#3/1/2005 11:56:0#)) OR (((march05.ModDate)>=#3/1/2005 12:30:0# And (march05.ModDate)<=#3/1/2005 12:45:0#)) OR (((march05.ModDate)>=#3/1/2005 13:30:0# And (march05.ModDate)<=#3/1/2005 13:56:0#)) OR (((march05.ModDate)>=#3/1/2005 14:30:0# And (march05.ModDate)<=#3/1/2005 14:56:0#)) OR (((march05.ModDate)>=#3/1/2005 15:30:0# And (march05.ModDate)<=#3/1/2005 15:56:0#)) OR (((march05.ModDate)>=#3/1/2005 16:30:0# And (march05.ModDate)<=#3/1/2005 16:56:0#)) OR (((march05.ModDate)>=#3/1/2005 17:30:0# And (march05.ModDate)<=#3/1/2005 17:45:0#)) OR (((march05.ModDate)>=#3/1/2005 18:30:0# And (march05.ModDate)<=#3/1/2005 18:56:0#)) OR (((march05.ModDate)>=#3/1/2005 19:30:0# And (march05.ModDate)<=#3/1/2005 19:56:0#)) OR (((march05.ModDate)>=#3/1/2005 20:30:0# And (march05.ModDate)<=#3/1/2005 20:56:0#)) OR (((march05.ModDate)>=#3/1/2005 21:30:0# And (march05.ModDate)<=#3/1/2005 21:45:0#)) OR (((march05.ModDate)>=#3/1/2005 23:30:0# And (march05.ModDate)<=#3/1/2005 23:56:0# And (march05.ModDate)>=#3/2/2005 0:30:0# And (march05.ModDate)<=#3/2/2005 0:45:0#)) OR (((march05.ModDate)>=#3/2/2005 1:30:0# And (march05.ModDate)<=#3/2/2005 1:56:0#)) OR (((march05.ModDate)>=#3/2/2005 2:30:0# And (march05.ModDate)<=#3/2/2005 2:45:0#)) OR (((march05.ModDate)>=#3/2/2005 3:30:0# And (march05.ModDate)<=#3/2/2005 3:56:0#)) OR (((march05.ModDate)>=#3/2/2005 4:30:0# And (march05.ModDate)<=#3/2/2005 4:45:0#)) OR (((march05.ModDate)>=#3/2/2005 5:30:0# And (march05.ModDate)<=#3/2/2005 5:45:0#)) OR (((march05.ModDate)>=#3/2/2005 6:30:0# And (march05.ModDate)<=#3/2/2005 6:56:0#)) OR (((march05.ModDate)>=#3/2/2005 7:30:0# And (march05.ModDate)<=#3/2/2005 7:45:0#)) OR (((march05.ModDate)>=#3/2/2005 8:30:0# And (march05.ModDate)<=#3/2/2005 8:56:0#)) OR (((march05.ModDate)>=#3/2/2005 9:30:0# And (march05.ModDate)<=#3/2/2005 9:56:0#)) OR (((march05.ModDate)>=#3/2/2005 10:30:0# And (march05.ModDate)<=#3/2/2005 10:45:0#)) OR (((march05.ModDate)>=#3/2/2005 11:30:0# And (march05.ModDate)<=#3/2/2005 11:56:0#)) OR (((march05.ModDate)>=#3/2/2005 12:30:0# And (march05.ModDate)<=#3/2/2005 12:45:0#)) OR (((march05.ModDate)>=#3/2/2005 13:30:0# And (march05.ModDate)<=#3/2/2005 13:56:0#)) OR (((march05.ModDate)>=#3/2/2005 14:30:0# And (march05.ModDate)<=#3/2/2005 14:56:0#)) OR (((march05.ModDate)>=#3/2/2005 15:30:0# And (march05.ModDate)<=#3/2/2005 15:56:0#)) OR (((march05.ModDate)>=#3/2/2005 16:30:0# And (march05.ModDate)<=#3/2/2005 16:56:0#)) OR (((march05.ModDate)>=#3/2/2005 17:30:0# And (march05.ModDate)<=#3/2/2005 17:45:0#)) OR (((march05.ModDate)>=#3/2/2005 18:30:0# And (march05.ModDate)<=#3/2/2005 18:56:0#)) OR (((march05.ModDate)>=#3/2/2005 19:30:0# And (march05.ModDate)<=#3/2/2005 19:56:0#)) OR (((march05.ModDate)>=#3/2/2005 20:30:0# And (march05.ModDate)<=#3/2/2005 20:56:0#)) OR (((march05.ModDate..............
e cosi' via ORDER BY slug;
ma non posso credere che non ci sia un modo piu veloce....
![]()
![]()
aiutatemi please anche con riferimenti diove andare a studiare qualcosa....

Rispondi quotando
