Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9063

Re: Date range parameters in a query

$
0
0

Hi,

     Welcome to the Query Game ,  to prompt a date range in a query we have to write the condition in Where Clause see the below Example for a Sales Order Documents Total Doc No wise

 

select a.DocDate,A.DOCNUM,A.DocTotal

 

 

from ORDR A

 

 

Where A.DocDate>= '20141201'  and A.DocDate<='20141231'

 

so in above Query we put the parameters

 

Select a.DocDate,A.DOCNUM,A.DocTotal

 

 

from ORDR A

 

 

Where A.DocDate>= [%0]  and A.DocDate<=[%1]

 

Hope it will help you.

Regards,

Manish


Viewing all articles
Browse latest Browse all 9063

Trending Articles



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