|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 5 posts ] |
|
| Author |
Message |
|
narayan
|
Post subject: ignoring null values Posted: Tue Jun 22, 2010 4:41 am |
|
Joined: Thu May 21, 2009 3:41 am Posts: 28
|
|
hi,
I have a report in report 6 which has static field where values are shown for previous year and for current year. the output of the report will be like this
sl no department prev year cur year 01 revenue 2000 5000 02 costing 500 1000 03 excise 8000 900 and so on....
I have a created a fomula field for each and every department and get the value from a particular table. What i require is if suppose the department revenue does not have any value then that row should not be visible. for eg if revenue has a null value then the report should be like this
sl no department prev year cur year 01 costing 500 1000 02 excise 8000 900
Is it possible . if so pl suggest me the methods
thanks in advance
|
|
| Top |
|
 |
|
usman
|
Post subject: Re: ignoring null values Posted: Tue Jun 22, 2010 12:27 pm |
|
Joined: Fri Feb 13, 2009 11:37 am Posts: 118
|
|
Hi Narayan, What i will do for this query is that rather than creating a formula column i will bring every thing in SQL query. Example. select sl_no, department, prev_year, cur_year from revenue_history where prev_year is not null and cur_year is not null;
This will only bring rows that have revenue for both the years.
What do you think?
_________________ Regards Ozy http://www.oraclevillage.com/
|
|
| Top |
|
 |
|
narayan
|
Post subject: Re: ignoring null values Posted: Tue Jun 22, 2010 1:11 pm |
|
Joined: Thu May 21, 2009 3:41 am Posts: 28
|
|
thank you.
i will try it out and let you know
|
|
| Top |
|
 |
|
usman
|
Post subject: Re: ignoring null values Posted: Tue Jun 22, 2010 2:27 pm |
|
Joined: Fri Feb 13, 2009 11:37 am Posts: 118
|
|
| Top |
|
 |
|
ren
|
Post subject: Re: ignoring null values Posted: Wed Aug 18, 2010 10:07 pm |
|
Joined: Sat Apr 18, 2009 2:52 pm Posts: 3 Location: TANZANIA
|
|
Also you can create view with same code it may look like Create view RESULT as select sl_no, department, prev_year, cur_year from revenue_history where prev_year is not null and cur_year is not null; Select * from RESULT:
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
|