Question : Help with Sybase SQL ?



I need a pull where the providerID is either A000000015210B  OR  A000000003731B and the Received_Date minus Iinput_Date is greater than 45 days



Thanks

Answer : Help with Sybase SQL ?

I guess it should be minus 45:

WHERE providerID IN (  'A000000015210B','A000000003731B' )
  AND Input_Date < DATEADD(day, -45, Received_Date)

or

WHERE providerID IN (  'A000000015210B','A000000003731B' )
  AND Received_Date > DATEADD(day, 45, Input_Date)
Random Solutions  
 
programming4us programming4us