Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: How do I get multiple data records from a query using variables

$
0
0
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

Viewing all articles
Browse latest Browse all 4009


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>