21 lines
715 B
SQL
21 lines
715 B
SQL
|
|
/*************************************
|
|
* STORED PROCEDURE stp_elencoIntByIntervDate
|
|
* Recupera elenco interventi a partire dalle date inizio/fine di ricerca
|
|
*
|
|
* modif.: S.E.L. - 2010.01.25
|
|
**************************************/
|
|
create PROCEDURE stp_elencoIntByIntervDate
|
|
(
|
|
@inizio DATETIME,
|
|
@fine DATETIME
|
|
)
|
|
AS
|
|
|
|
SELECT codImpianto, codMacchina, descrCausale, descrizione, descrizioneIntervento, durataMtz, durataOff, fineIntervento, guasto, idxImpianto, idxMacchina, idxStato,
|
|
inizioIntervento, minErogati, nomeImpianto, nomeMacchina, numIntMtz, richiesta, isFermo, scheduled
|
|
FROM v_elencoIntervFilt
|
|
WHERE (richiesta BETWEEN @inizio AND @fine)
|
|
|
|
RETURN
|