I am new to TOAD and Oracle. This is SQL code, How do I do this in TOAD to get the result set and without the popup window which ask for a value input. This process will run daily to extract data, so flexibility is needed with the dates. DECLARE @tempdate datetime SET @tempdate = (SELECT case when DATEPART(dw,GETDATE()) = 2 then dateadd(dd,-3,getdate() ) else dateadd(dd,-1,getdate() ) End ) Select * from ABC.TRAN where ENTRYDATE = @tempdate
↧