Hello,
I got this issue answered from a different forum as I posted the same question over there.
Below is the link for anyone who might have a similar requirement.
http://www.dbforums.com/db2/1677540-query-identify-sequence-date-range.html
Thank You !!!
I'm working on a DB2 query to identify the date sequence and to filter out any sub sets of date ranges.
I really appreciate any help on this.
This is how I have data in a view.
ID Begin Date End Date
140721 6/26/2010 12/31/2010 <--
140721 7/31/2010 8/27/2010
140721 9/25/2010...
HI ALL,
Here is the scenario:
In a table I have three columns year, price and expenses respectively. The values in it are as follows:
YEAR PRICE EXPENSES
1/1/1999 4502 5681
1/1/2000 9644 157
1/1/2001 1036 16401
1/1/2002 1897 6443
1/1/2003...
HI ALL,
Here is the scenario:
In a table I have three columns year, price and expenses respectively. The values in it are as follows:
YEAR PRICE EXPENSES
1/1/1999 4502 5681
1/1/2000 9644 157
1/1/2001 1036 16401
1/1/2002 1897 6443
1/1/2003 8275 2390
1/1/2004 1405 1163
1/1/2005...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.