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

Select Query Empty date ranges

$
0
0

Hi every one, I and developing a report based on dates.

My requirement is that there are two parameters that are FromDate and ToDate.

 

My query is to select between dates if user gives date, and if not then whole data should be displayed.

 

 

Select

     <fields> <fields> <fields> <fields>

From

     <table>

Inner Join

     <table>

on <fields>= <fields>

where

Date between FromDate AND ToDate.

 

If the above parameters are not provided it should fetch all data.

 

I've done this in T-sql many times using ISNULL(<param>,<field>) but I am new to Abap opensql.

 

Thank You.


Viewing all articles
Browse latest Browse all 2878

Trending Articles



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