473,403 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Oracle Reports:Replace blank spaces with zero

6
Hello,

I have created an matrix oracle report. In which i'm getting blank spaces for the fields where i dont have data. can i replace these with a zero.

I tried the method provided on the documentation for "Building a Matrix Report".
But that works only if all the numbers in that field end in a zero. Else it superimposes that zero on top of the other numbers.

Please help me with this.

Regards
ARR
Aug 9 '07 #1
5 5335
debasisdas
8,127 Expert 4TB
can you please post your code for my reference.
Aug 10 '07 #2
arr1
6
hi debasisdas,

putting the code in forum wouldnt be possible for me,
but my query is quite similar to the single matrix query example at the following link
http://download.oracle.com/docs/cd/B14504_01/dl/bi/B10602_01/orbr_matrix.htm

just try the example with salaries figures which do not have any zeros in them.
you may use the folowing insert scripts
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
20, 'Analyst', 5675);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
20, 'Clerk', 56756);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
20, 'Manager', 5676);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
20, 'Salesman', 65756);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
30, 'Manager', 56756);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
30, 'Clerk', 5645);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
20, 'Analyst', 34545);
INSERT INTO EMP ( DEPTNO, JOB, SAL ) VALUES (
10, 'Analyst', 12122);
COMMIT;


thanks,
arr
Aug 10 '07 #3
debasisdas
8,127 Expert 4TB
May i know why cant you post your code.

have you ever tried for that.

if you scroll the page link provided by you in previous post you will get the answer.
Aug 11 '07 #4
arr1
6
oh nothing like that... just because of policy and rules. I cannot put the code anywher outside, I'm sorry for that. But my query is very similar to the query in the link i had provided.

Infact I have been trying on the same query, because my quey takes 10-15 min to execute. So working with a light query saves time too.
let me know, if you need anything else.

i have already tried the solution provided there. but it works fine for numbers ending in zeros. but not for non zeros numbers.

i tried things like checking property of that field, and setting a trigger. but nothing seems to work.
Aug 11 '07 #5
arr1
6
hello,

thank you for the help provided.
this particular problem wasdifficult to solve, and was taking a lot of time.
hence i modified the query to get the desired output.

thanks,
arr
Aug 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Wayne Baswell | last post by:
I want to pass a date variable to a sql statement from Crystal Reports. The part of the query accepting the variables looks like: "Calendar_Date between To_Date('1-JUN-03','mm/dd/yy') and...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
5
by: sara | last post by:
I've looked at all the posts I could and don't see the solution. I am aware that the format to get a BLANK when the number is 0 is: $ #,###.00;($ #,###.00);"" But I can't, for the life of me,...
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. I'll still be using my developed Access front ends,...
3
by: angel1974 | last post by:
Hello, I'm on a ORACLE 10g/AIX/MICROFOCUS COBOL instalation and i'm having problems with a cursor to a table. The fields on the query are correctly formed but they have ending blank spaces. ...
10
by: Lorie0114 | last post by:
Hello, We have an issue that I do not know how to resolve. Our website has several hundred reports. There are a handful of them that are causing issues when there is no interaction for a couple...
2
by: Diyaaa | last post by:
HI i have a problem with oracle reports 6i. the output has 1000s of lines. in my output first to 999th line is fine..bt then 1000th line is blank and again the data continues to be shown from...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.