on 05-25-2010 9:05 PM
A ver quien me puede ayudar, aqui tengo un problema con este query.
SELECT t1.docnum
from RDR1 T0 INNER JOIN ORDR T1 ON
T0.DocEntry = T1.DocEntry
where (T0.itemcode='PERF-44' OR T0.ITEMCODE='CUAD-02'
OR T0.ITEMCODE='REDO-04'
OR T0.ITEMCODE='REDO-05' OR T0.ITEMCODE='MONT-03'
OR T0.ITEMCODE='PERF-48' OR T0.ITEMCODE='PERF-45'
OR T0.ITEMCODE='PERF-32' OR T0.ITEMCODE='PERF-50'
OR T0.ITEMCODE='CUAD-07' OR T0.ITEMCODE='ANGU-08'
OR T0.ITEMCODE='MONT-01') AND (T0.DISCPRCNT>=1)
AND (datediff(datepart(hh,getdate()=0) and
lo que intento hacer es poner la alarma de tal manera que solo arroje los documentos creados 5 minutos antes que la alarma.
a ver si alguien me puede ayudar con el transact.
APoyate con el campo doctime, solo creo deberas formatearlo para que te muestre el formato hh:mm pues te sale solo hhmm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.