Wanted to create a report

Hi gurus,
i want to compare data from two tables
if the record in first table and second table is same , show in one color, else show in different color.
any idea, & suggestion to do this ?
Please it is urgent

Ok, here's an example then -
Using the standard EMP table
jes@DBTEST> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7839 KING PRESIDENT 17-NOV-81 5000 10
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7566 JONES MANAGER 7839 02-APR-81 2975 20
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7876 ADAMS CLERK 7788 12-JAN-83 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.Create another table as a copy of the EMP table -
jes@DBTEST> create table emp_copy as select * from emp;
Table created.Change one of the rows in the copy
jes@DBTEST> update emp_copy set job = 'CODER' where ename = 'SCOTT';
1 row updated.
jes@DBTEST> commit;
Commit complete.Now run a query against the EMP table, checking for a matching row in the EMP_COPY table
jes@DBTEST> select e.empno,
e.ename,
e.job,
(select count(*) from emp_copy ecopy
where
ecopy.empno = e.empno
and ecopy.ename = e.ename
and ecopy.job = e.job) as match
from emp e;
EMPNO ENAME JOB MATCH
7839 KING PRESIDENT 1
7698 BLAKE MANAGER 1
7782 CLARK MANAGER 1
7566 JONES MANAGER 1
7788 SCOTT ANALYST 0
7902 FORD ANALYST 1
7369 SMITH CLERK 1
7499 ALLEN SALESMAN 1
7521 WARD SALESMAN 1
7654 MARTIN SALESMAN 1
7844 TURNER SALESMAN 1
7876 ADAMS CLERK 1
7900 JAMES CLERK 1
7934 MILLER CLERK 1
14 rows selected.So you can see that the SCOTT row was the only row that there wasn't a matching record in the EMP_COPY table (based on the comparison of the three columns).
Hence you could create your own (row based) report template that had a condition based on the MATCH column which outputs the row in one colour if the value is '1' (i.e a match) and a different colour if the value is '0' (i.e. no match).
You could then do the reverse query for the other region (i.e. comparing EMP_COPY against EMP).
There are other ways of doing this, but since you want to display in two seperate regions, this is an easier way of achieving this. Obviously you will need to adapt the queries if you want the comparison to be based on different (or more) columns than just the three I used.

Similar Messages

  • I want to create a report with more than  64 column's.

    I want to create a report with more than 64 column's. I have generated Query the XML.When I tried to create a template for the report.I have Inserted the colum's Wizard and finish it throughing error message. "you cannot create atable with more that 63 coloum's "

    Hi ,
    Can u Check the below thread
    More than 63 columns in rtf template

  • Want to create custom report under report field in OEM 11G

    Dear all
    I would like to create custom report on OEM 11G. I have query which is executed and verified from TOAD. But after placed report element it shows an error that table/view not exits. But it doesn't ask any database user name and password.So let me like to know how to do this. I want add more and more reports after the success of this.. Ho can it be done?Please advice.
    Note:-
    The data is getting from OEM repository i think so.. But i need a report which is get data from various apps and system tables. So how to display result from this table and shown to EBS reports.
    Regards,
    Gobinath.R
    Associate consultant
    Petrofac Information Services Private Limited
    Chennai.
    Edited by: Gopinath on May 18, 2012 4:23 AM

    Report should be based on tables in repository database. Mostly sysman tables we will be using for reporting. If you need other database tables then you need to create dblink to those targets in sysman schemas. To my knowledge that's the only way you can refer to other db tables in reports.
    Regards,
    Satheesh Shanmugam

  • I want the create this report but how to???????????????????????????????

    I'm created my oracle10g database with oracle XE databaselink and create view on XE for my customer report. And then create simple report. Everythings ok but when I push the run report report came with all data but I don't want to when push the run button. I want to run and then write customer ID and then push the GO button and then only came to 1 data or info. Can I do this and how???
    Help me please, I'm working about this a few days but I can't do anything :(((
    This is so important for me, help me please...

    Hi,
    OK
    Assuming you are using Page 1 for the report, do the following:
    1 - Create a new HTML Region called "Search" and put this above your report on the page layout
    2 - Add a normal Text item called "P1_CUSTOMER_ID" into the new region - this will be where your user enters in the CUSTOMER_ID value that they want the report to filter by
    3 - Add a Hidden Item called "P1_DISPLAY" into the new region. Set the Default Value for this item to N. If this is 'Y', the report will be shown - if this is 'N' the report is hidden
    4 - Add a button called "P1_SEARCH" into the new region
    5 - Add a button called "P1_RESET" into the new region
    6 - Update your SQL statement to include a WHERE clause:
    SELECT ....
    FROM ....
    WHERE CUSTOMER_ID = :P1_CUSTOMER_ID
    (you may have to do TO_NUMBER(:P1_CUSTOMER_ID) if your CUSTOMER_ID field is numeric)
    7 - Add a branch to the page that branches to Page 1 and sets P1_DISPLAY to Y. Set this branch to be run only when the P1_SEARCH button is clicked
    8 - Add another branch to the page that branches to Page 1 and sets P1_DISPLAY to N. Ensure that this has a higher sequence number than the first branch
    9 - Finally, add a Conditional Display to the report region. Set the Condition Type to "Value of Item in Expression 1 = Expression 2". Enter P1_DISPLAY into Expression 1 and Y into Expression 2
    Regards
    Andy

  • Want to Create a Report Server Kindly Help?

    Hello Everyone,
    My name is Sarmad and I am a student of BS(Software Engineering) in 5th semester now. I have assigned a project on 'Oracle Report Server'. My instructor requirements are that it should generate 'Matrix Reports' and i have to use Oracle Database 10g XE. I have researched a lot on Internet and found that following tools are necessary to make a report server on Oracle for Win 7 32 Bit OS:
    1. Oracle Forms and Reports 11g for Win 7 32 Bit
    2. Oracle Web Logic Server 11g (10.3.5) for Win 7 32 Bit
    3. Oracle Data Base 10g XE for Win 7 32 Bit
    Therefore, I installed Data base first and then i installed Web Logic Server and integrated my Data base's sample DB HR within the 'Data Sources' link present in Web Logic Server's Administration Console. Connection test went successful for Web Logic Server and Database. Then i installed Oracle Forms and Reports for Development mode and it also installed successfully on my system.
    Now the issue is that i want to integrate Oracle Reports and Forms services with Oracle Web Logic Server. I don't know how to do that and also i don't have any idea whether i may need any further tools or these are enough to generate reports as i think that there should be some Report Layout builder so that data coming from Web Logic Server should be presented in that layout i.e. Matrix Layout.
    Kindly help me out in this and guide me through.
    Thanks!

    hi
    I am not saying wrong about this question but how can you expect some one to give the code..if you any doubt in terms of logic or if u need any clarification on the functionality how the element behave, the people around here would definitely help you out...
    But straight forward asking the code i believe you might not get the correct answer sometimes..Narrow down your question so that people around here could help you out if they can
    Regards
    Ramesh Kumar S

  • Want to create a Report from scratch!!!

    Hi,
    I tried to create a report using the document provided by oracle but in vain. Could anyone give a guideline on how to carry on with this task. Or a link to where I can find an interesting user guide.
    Thanks in Advance.

    There is also a doc on our pages to get you started building templates ... very simple to get started:
    http://www.oracle.com/technology/products/xml-publisher/xmlpclient.html
    Look for the XML Publisher Templates by Example
    then once you have had some practice ... take it to Apps
    http://www.oracle.com/technology/products/xml-publisher/xmlpapps.html
    regards
    Tim

  • I want to create a report based on date ranges...

    I have surfed the forum and seen all of the responses and can't get anything to work.
    This is where I am:
    select     OBJECT_ID,
         EVENT_CATEGORY,
         EVENTS_TITLE,
         EVENTS_DATE,
    OBJECT_ID "Click Icon For More Info"
         from EVENTS
    where     EVENT_CATEGORY = :P3_EVENT_CATEGORY and EVENTS_DATE between to_date(:P3_START_DATE,'DD-MON-RR HH:MI') and to_date(:P3_END_DATE,'DD-MON-RR HH:MI');
    When I input actual data for my querry:
    select     OBJECT_ID,
         EVENT_CATEGORY,
         EVENTS_TITLE,
         EVENTS_DATE,
    OBJECT_ID "Click Icon For More Info"
         from EVENTS
    where EVENT_CATEGORY = 'Category 1' and EVENTS_DATE between '04-MAY-06 10:57 AM' and '12-MAY-06 02:27 PM'
    It works!
    Please help

    Either
    1. Make sure the page is submitted so that those 2 items (P3_START_DATE and P3_END_DATE) get saved into session state and can be used by the report
    or
    2. Make sure both the items have the apppropriate Source or Default values defined so that the initial run of the page will display the report properly
    or
    3. Put a condition on the report region to not display until 1 (or both) of those 2 items have a non-null value.
    Hope this helps.

  • Want to create Ineractive report by using pl/sql block

    Hi,
    But If have to read different informations for different tables, how can I do ?
    For example:
    for s in (SELECT srv_sys_name,ddb_dbname
    FROM search_master
    WHERE ( ddb_dbname like '%'||:p7_ddb_dbname||'%' AND :p7_ddb_dbname IS NOT NULL ))
    loop
    apex_collection.add_member(p7_col, s.srv_sys_name, s.ddb_dbname );
    end loop;
    If I have an other table to look to get other informations, i don't know what to do ?
    It's my problem for now.
    Thanks in advance. Bye.

    HTML_DB 1.6 + Apex 4.0 + Hyperion user wrote:
    But If have to read different informations for different tables, how can I do ?
    For example:
    for s in (SELECT srv_sys_name,ddb_dbname
    FROM search_master
    WHERE ( ddb_dbname like '%'||:p7_ddb_dbname||'%' AND :p7_ddb_dbname IS NOT NULL ))
    loop
    apex_collection.add_member(p7_col, s.srv_sys_name, s.ddb_dbname );
    end loop;If I have an other table to look to get other informations, i don't know what to do ?Generally, perform a join combining the tables.
    Additionally, creating collections row-by-row is horribly inefficient. Use the <tt>APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B</tt> bulk methods instead.
    However in this case the the PL/SQL and collection-based approach is unnecessary. Base the IR on the query (plus joins to whatever other tables are necessary):
    select srv_sys_name,ddb_dbname
    from search_master
    where ddb_dbname like :p7_ddb_dbname_qryand compute hidden item <tt>p7_ddb_dbname_qry</tt> to include the value of <tt>p7_ddb_dbname</tt> and wildcard characters as required.
    Finally, note that <tt>LIKE</tt> searches using leading-edge wildcards on large data sets can be inefficient as this eliminates the possibility of using indexes on the searched column.
    (Always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.)

  • How to create APEX report from data in PLSQL table

    Hi, I have a procedure that is creating/inserting records into multidimensional pslql table. I want to create a report and graph based on the data stored in plsql table. Can someone please advice how to can I select this data in apex OR point me to any sample code?
    Thanks
    Aali

    Hi,
    try to google something about ORACLE TABLE CAST
    SELECT ot.yourcolumn
    FROM
       TABLE(CAST(yourplsqltablevariable AS userdefinedoracletype)) otE.g.
    http://it.toolbox.com/blogs/oracle-guide/using-a-plsql-table-in-sql-11013
    Regards,
    R.

  • How to create a report in excel format having two tab

    Hi All,
    I have Business requirement where customer wants to create a report in excel format having two tab.
    Please let me know if it is possible?
    I am using 10.1.4.3.2 version of BIP.
    Thanks & Regards,
    Edited by: 862749 on May 20, 2013 7:36 PM

    I have Business requirement where customer wants to create a report in excel format having two tab.
    Can anybody suggest if it is possible in BI Publisher or not?yes
    look at excel template
    also you can use xsl-xml or xsl-fo template
    check it for your requirements

  • How to create a report with survey data

    Hi All,
    I need to create a report with survey data in below format. Can anyone help me how to display the summary in this format.
    Swapna

    Hi Swapna,
    According to your description, you want to create a report with survey data and display the summary.
    Reporting Services is used for rendering the report with data retrieved from datasource. In Reporting Services, we can retrieve data from the datasource then design a report, after the report processed, data is fixed on the report. So it’s not supported
    to have the end users selection and do summary. For your requirement, it’s can’t be achieved currently.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to create a report without any data

    HI All, <BR> Can anyone help me in writing a report without any data. I want to create a report with list of memebers from a dimension where UDA is "My UDA". I wrote a report "<UDA(CHANNEL,'My UDA')" but this fetches me data too in the report. How to eliminate the data in the report. <BR><BR>Thanks<BR>Murali

    Hi<BR><BR>Assuming you are using the essbase report writer the following script will work: <BR><BR>{ SUPPAGEHEADING }<BR>{ SUPCOLHEADING }<BR>{ SUPFORMATS }<BR>{ SUPFEED }<BR>{ NOINDENTGEN }<BR>{ FIXCOLUMNS 1 }<BR> <ROW("Dimension") <BR> <UDA(Dimension,MyUDA)<BR>!<BR><BR>the fixcolumns 1 will ensure that you only get the UDA without it you will get the variable followed by the corrosponding value.<BR>

  • How to create a report region which the first colomn is row selector column

    I want to create a report region and its first column is a row selector column. I have used select sentence to select some columns. But I do not know how set the first column to row selector column. I mean I want to do as follow. When a radio which is first column is chosen, it will return it's value of the column in the chosen row. Please help me! Thanks

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

  • How to create a report in EM from scratch level ?

    Hi,
    Can anybody help me on this ?
    The report I want to create in EM is about where the user selects a target from a drop down and it shows the CPU utilization or memory Utilization for that respective target. Is it possible to create such kind of ? If Yes, How to create the report ?
    Thanks in advance.

    Are you sure you want to create a report for this info?
    As CPU and MEM utilization changes every second, what would be the use of a report?
    I assume you are aware of the fact that CPU and MEM utilization is included for instance in the Host Homepage and can also be included in Group Pages and Dashboards.
    Regards
    Rob
    For more information on OEM GC, like Tips and Tricks please see: http://oemgc.wordpress.com

  • How to create Crystal Report?

    Hi All,
    I'm a new beginner to the world of ODT. I have created a project using VB 2008 and Oracle 10g using Oracle Dev Tools for .NET version 11.xx. Now, I want to create simple report from my Oracle Database using Crystal Report. Can any one show me how to accomplish this? I try several methods but failed. Please guide me.
    Thanks in advance,
    Mr Haulai

    You can create a new crystal report.
    Then in Fied Exploer right-click on database fields and choose Database Expert. Database Expert Dialog box will appear expand create new connection expand on OLE DB (ADO) then OLE DB (ADO) Dialog will appear and then choose Microsoft OLE DB provider for Oracle in provider list box, click next then input your TNS, user name and password click next and finnish.
    You will go back database expert and then choose your username under TNS name, select your favorite table or view and turn it to Selected table list box ater that click ok.
    When you've already done everything above in Field Explorer you will see your table or view, click expand on your table or view -> drag a field and drop on report surface... then right click choose report preview to test it....
    Hope it can help you....
    Cheer
    Cambodia developer........ :-)

Maybe you are looking for

  • What I have working on a Sony VGN-TX750P

    Hi all. I've been using Arch for about 4 years now, but I've never posted to the community. My primary system is a Sony VGN-TX750P that I bought almost two years ago now. The initial install used random hacks to try and make most of the devices work,

  • How to use the same credit card for more than one customer master

    Hi, this is a question for consultants at least a little familiar with SAP business partner, Customer-vendor-intergration cvi, contract accounting: My customer wants to store the same credit card with more than one customer. Arguments are that family

  • Separating an image from a vector file in illustrator

    I cannot figure out how to separate a graphic from a a vector file I purchased on Shutter Stock which has a bunch of graphics in the file used for design.  The file has layers, and I have tried to select just one of the layers to copy and paste into

  • MacBook Pro 2011 suddenly slow, battery draining etc

    My computer crashed end of December 2012 right before vacation. I went to the Genius Bar, diagnosed as a "software issue".  Had computer erased and started over.  Upgraded to Yosemite while out of town. When I came home, I transferred back data from

  • SQL and a backlog report by site

    Post Author: ck1938 CA Forum: WebIntelligence Reporting Hi, I had to create a backlog reprort a few months back and the only way I could get the data to organize properly was to create a sql statement that had the months predefined as below: SELECT