ho questa query per un db access - purtroppo non posso cambiare l'asp ma solo la query
SELECT SUM(TOT_ORE) AS TOT_ORE2, DESCI FROM ( SELECT (( RAPPORTO.ORA_OUT - RAPPORTO.ORA_IN)*24*60) AS TOT_ORE , ( COMMESSA.PK_COD_COMMESSA & ' - ' & COMMESSA.DESCRIZIONE ) as DESCI from RAPPORTO,GIORNO,COMMESSA WHERE GIORNO.FK_MATRICOLA='D012' AND Format(GIORNO.data,'mm/yyyy')='04/2005' and RAPPORTO.FK_COD_COMMESSA=COMMESSA.PK_COD_COMMESSA and COMMESSA.TIPO_COMM = 'SI' AND GIORNO.PK_CODICE = RAPPORTO.FK_CODICE ) GROUP BY DESCI
vorrei fare un piccolo controllo del tipo se l'orario RAPPORTO.ORA_OUT = '23.59.00' mi diventi '24.00.00'
grazie

Rispondi quotando