group data in a report

Hello

I have two tables.

Table1:
Id1 (primary key)
Name

Table2
Id2 (foreign key to table1. ID1)
Data1
Data2

I would like to make the report to display of table2 only records for which ID2 = ID1

Table1. ID1
-----------------------------------------------------------------------------------------
table2. Data1 table2. Data2 ( record 1)
table2. Data1 table2. Data2 ( record 2)
table2. Data1 table2. Data2 ( record 3)

Table1. ID1
-----------------------------------------------------------------------------------------
table2. Data1 table2. Data2 ( file 4)

In my current account for each from Table1 ID1 reports that it displays all the records in Table2, something like this:

Table1. ID1
-----------------------------------------------------------------------------------------
table2. Data1 table2. Data2 ( record 1)
table2. Data1 table2. Data2 ( record 2)
table2. Data1 table2. Data2 ( record 3)
table2. Data1 table2. Data2 ( file 4)

Table1. ID1
-----------------------------------------------------------------------------------------
table2. Data1 table2. Data2 ( record 1)
table2. Data1 table2. Data2 ( record 2)
table2. Data1 table2. Data2 ( record 3)
table2. Data1 table2. Data2 ( file 4)

I use 6 Oracle reports.

Thank you!

If the fields in the same table, you have two methods to make
1. in the report wizard select group above
2. in the data model, you can drag field2 and field3 outside the Group and create a group for a whole

Tags: Oracle Development

Similar Questions

  • We can enter data into the reporting currency?

    Hi Experts,

    Hyperion Planning version 11.1.2.2, classic Multi money demand.

    We have an obligation to enter data into the reporting currency. Is it possible in the schedule?

    For example... If we GBPand USD as currency statement, I have an obligation to enter data in GBP and USD for some entities.


    Kindly help me. !

    Thank you

    No you're not. In an application of multi currency GBP is a reporting currency. 'Local' is the local currency.

    All entities, regardless of their local currency, can enter data only in the "Local".

    Concerning

    Celvin

  • No data found in report csv or pdf on first loading of the page

    No data found in report csv output on the first load of the page. Report appears on the page, but no data is available in csv or pdf output. I still need to send the page and then it shows the data in the downloads. The page contains a form (read-only) with a report that refers to 4 page elements by using something like the following:

    and b.employee_no = v ('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v ('P5_FISC_YEAR_PK')
    and b.job_class = v ('P5_JOB_CLASS')
    and b.organization = v ('P5_ORGANIZATION')

    Yet once again, report to page appears except there is no data in the downloads. Can someone help me solve this problem? I'm under Oracle APEX 4.2.1 in Oracle database 11 g 2.

    Thank you.

    Sounds like a question of classic session state.

    You must eat the page elements using calculations of page rendering to ensure they are set to session state.

    Or if the download is triggered by a button, you should check that the elements of the page are subject to session state, perhaps via an action of PL/SQL.

    Scott

  • Problem link DB between active Data Guard and reports application database

    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Fazlul Kabir Mahfuz wrote:
    My version of the 11.2.0.2.0 and OS database is Oracle Solaris 10 9/10.
    I am facing a problem in my custody of data Active data base for purposes of tax. Active Data guard information is as below.

    SQL > select name, database_role, open_mode from v$ database;

    NAME DATABASE_ROLE OPEN_MODE
    --------- ---------------- --------------------
    ORCL PHYSICS READ SHALL ONLY APPLY

    Detail of the problem is less than
    ------------------------------
    I have created a db link (name: DATADB_LINK) between active data guard and report of application of data base for purposes of tax.
    SQL > create database DATADB_LINK link to connect to HR identified by HR using 'DRFUNPD ';
    Database link created.

    But when I run a query using db link to my database of enforcement report I got this error below.

    ORA-01555: snapshot too old: rollback segment number 10 with the name ' _SYSSMU10_4261549777$ ' too small
    ORA-02063: preceding the line of DATADB_LINK

    Then I see logfile named database alart Active Data Guard and get below error

    ORA-01555 caused by the following SQL statement (SQL ID: 11yj3pucjguc8, time of request = 1 sec, SNA: 0x0000.07c708c3): SELECT "A2". "' BUSINESS_TRANSACTION_REFERENCE ', 'A2 '. "' BUSINESS_TRANSACTION_CODE ', MAX (CASE 'A1'. "TRANS_DATA_KEY"WHEN "feature' AND 'A1'." " END OF TRANS_DATA_VALUE"), MAX (CASE 'A1'. "TRANS_DATA_KEY" WHEN 'otherFeature' THEN 'A1' '. "" END OF TRANS_DATA_VALUE")

    But the interesting point if I run the query report directly in the Active Data Guard database, I got never error.

    So it's a problem of link DB between active Data Guard and other databases?

    Check this statement that applies to your environment

    * ORA-01555 on Active Data Guard Standby Database [1273808.1 ID] *.

    also

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:8908307196113

  • Columns group apex 4 classic report

    Hello

    Does anyone know how to group the columns classic report? I use 4 Apex.

    Thank you.
    Andy

    Simple. Create a named column (model line). Use the col/colgroup HTML and th elements and the colspan attribute to structure the headers and column groups in the definition of the model lines before :

    Complete the rest of the model if necessary.

  • How to load data from matrix report in the base using ODI table data

    Hello

    How to load matrix report data in the base table data using oracle Data Integrator?

    Description of the requirement:

    This is the data from matrix report:
    JOB                       DEPT10                DEPT20  
    ___________________________ _____________
    ANALYST                                           6000
    CLERK                   1300                     1900 
    Need to convert it to the format below:
    JOB                             Dept                        Salary
    _____________________________________________
    ANALYST                  DEPT10      
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        
    Thank you for your help in advance. Let me know if any other explanation is needed.

    Your list seems to be a bit restrictive, you can do much more with the procedures of ODI.

    If you create the new procedure and add a step. In the 'source' tab command you define technology and pattern according to your source database. Use the unpivot operator as described in the link, please, instead of using "SELECT *' use the column names and aliases for example:"

    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    Then in your tab 'command on target' defined technology and drawing on your target db, then put your INSERT statement for example:

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    VALUES
    (
    : job,.
    : deptsal,.
    : saledesc
    )

    That's why you use bind variables from source to load data into the target.

    Obviously if the source and target table is in the same database, you can have it all in a single statement to the "command on target' as

    INSERT INTO job_sales
    (employment,
    deptsal,
    saledesc
    )
    SELECT workstation,
    deptsal as deptsal,
    saldesc as saledesc
    OF pivoted_data
    UNPIVOT)
    deptsal-<-->
    FOR saldesc-<-->
    IN (d10_sal, d20_sal, d30_sal, d40_sal).<-->
    )

    also assign the log count "Insert" on the tab corresponding to your INSERT statement, so that you know how many rows you insert into the table.

    I hope this helps.

    BUT remember that this feature is out in Oracle 11 g.

  • Display records between 2 dates in a report

    Hi all
    I have a requirement where I need to display the records in a report between 2 date. We have Fromdate and so far
    as a guest to the dashboard when it is selected in a Pivot report data between these 2 dates selected should be displayed.

    Thanks in advance,
    Krishna

    Hello

    Set the filter of the columns is invited to enter this date in your report.
    Create your prompt for column and operator set is between and the calendar control.

    Concerning
    Nicolae

  • Display data in the report to pl/sql

    I need to display data in a report using pl/sql.

    The structure of the table would be fixed, but the data it would come from a pl/sql.

    Is this possible in Apex 3.2.1 for that? If so, how can we do this?

    Hi Hozy,

    As much as I know APEX report cannot manipulate the slider.

    If the options are:
    1)
    Try the PIPE...
    http://www.databasejournal.com/features/Oracle/article.php/2222781/returning-rows-through-a-table-function-in-Oracle.htm

    (2) as has said Roel, complete apex collection using your ps/sql and use it in the report.

    Kind regards
    Shijesh

  • Display buttons in a region report only if there is data in the report

    Hi friends,

    I have a region of report in which there is a report, 2 buttons and a text field. I want to show these buttons and

    text field only if there is data in the report. How can I do this? Help, please


    Thank you

    TJ

    Hello

    Define buttons conditionally as Exists (SQL query returns at least one row). The same use and the WHERE clause as your report, but change the SELECT part

    SELECT 1 
    

    BR, Jari

  • How not to get no data xml publisher report

    Hi all

    I've been using oracle BI 10 g

    I need to print ANY DATA that is FOUND when my report is not out of the game.

    I tried to follow this link but its does not work as expected

    https://blogs.Oracle.com/XmlPublisher/entry/NO_DATA_FOUND

    My header tag consist @Section if its does not work.

    This is my example of XML code when the data here is his entry like this

    < XXRXRAXINV >

    < LIST_G_ORDER_BY >

    < G_ORDER_BY >

    < > 265 ORDER_BY < / ORDER_BY >

    < LIST_G_INVOICE >

    < G_INVOICE >

    < CUSTOMER_TRX_ID > 59249 < / CUSTOMER_TRX_ID >

    When no data then the xml doesn't come like that

    < XXRXRAXINV >

    < LIST_G_ORDER_BY >

    < / LIST_G_ORDER_BY >

    The Group G_Invoice is not.

    Can any one sugget that the way of print no data found. I tried with if else statement too but its not working.

    Concerning

    Srikkanth.M

    Please use this logic:

    No data found

    Section break

  • How to group data in the column?

    Hi all
    Anyone can solve the my problem please?
    I have two columns 'Age' and 'employee ID '.
    I want the 'Number of employees' group for the specific AGE group:

    Age | Number of employees
    20 to 30 | 06
    31 to 40. 13
    41 to 50. 16
    51 to 60. 03

    And the data in the columns are put aside

    Age | Employee IDS
    30. 002
    38. 008
    33. 298
    22. 213
    54. 083
    24. 098
    So now.
    Waiting for your HELP.
    In advance thank you very much...
    Take care

    Here you go...

    Drag a column of answers and name as age and in his writing of fx

    case
    When tablename.age between 20 and 30 then 20 to 30'
    When tablename.age between 31 and 40 and 31 to 40'
    When can tablename.age between 41 and 50 41 to 50'
    When tablename.age between 51 and 60 and 51 to 60'
    end

    Drag a column of answers and name it as "Number of employees" and in his writing of fx

    Count (tablename. (EmployeeID)

    That would give you the report of your choice

    I hope that its useful...

    Thank you
    Ashish Gupta

  • Write orders for specific data channels in report output via script or generating an automated script...

    In my project, I need to do some calculations, and then get the data plotted in the given report model. I use an automated for this script. My script is doing all the calculations and then he did not select and drag and drop the selected channels on the report model. His recording of the report template is empty.

    I'm fighting to get the specific channels data plotted using the script. I need the selected channels appear on this report template and then get saved.

    Any help will be much appreciated. Thank you

    Hi LaxG,

    If your script creates calculated channels, then you know what you're naming them - why your presentation of the STATE could not contain references to these names channels already?  Is it a dynamic number of conditional curves to the results of the analysis, or perhaps a dynamic number of REPORT sheets?

    You can programmatically change the reference of string of existing curves or the columns of the table with a VBScript DIAdem.  You can also add a curved column or a table with a VBScript DIAdem.  But the more you can save in the TDR file, work less you programming, this is the best place to start.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Where to put "DataLayout" (2D data in the report)?

    Hello

    IM using 2010 SP1 Teststand and Labview 2011. My question is about the plot of the data of the 2d tables in HTML Teststand report.

    I try to retrieve a table 2D x - y measurement data and it intrigues within the report file. Unfortuntly data is interpreted as "multiple-O", which means that each XY pair generates a new curve in the plot instead of have a curve following the x - y pairs. I found the following in TS documentation:

    http://zone.NI.com/reference/en-XX/help/370052J-01/tsref/infotopics/measurement_data/

    The problem is: I do not know WHERE to set the attributes of the property. Does anyone have a snippet of code running as an example defining the attributes at the right time and by generating a x-y-field correctly?

    Thanks for the help in advance.

    lv4ever

    lv4ever,

    I have consulted the documentation and I agree that it is not clear where the attributes must be added. I'll write a bug report for this problem.

    The approach recommended for you is to create local variables that have the appropriate attribute and use these local variables in expressions of value for each parameter.

    I have attached a files updated with the proposed solution.

    Concerning

    Anand jegou

    National Instruments

  • Report Builder 1.0 will not connect to the data source for Reporting SERVICES

    We have a few users who are unable to connect to SSRS on SQL Server 2008 using the Report Builder version 1.0

    (We will be updating soon, but it's a slow process, and now users have questions)

    Instead of disputed for their IDs, they are requested to select a data source.  This information is supposed to be filled automatically when the user starts the Reporting SERVICES report designer.

    Does anyone know where/how SSRS communicates information to start the application with one click Report Builder, and where, if anywhere, it stores?

    Hello

    The following forum seems most appropriate for your question:

    https://social.msdn.Microsoft.com/forums/en-us/home?Forum=sqlreportingservices

    You can get a faster response there.

    I hope this helps.

    Kind regards

    Alberto Morillo
    SQLCoffee.com

  • Alignment problem Date 6i Oracle report in Arabic Windows 7 (Professional)

    Hello

    6i Oracle form and report work very well under windows 7, but we are facing problems with Arabic alignment (Date of the Hijra). like his appear 21/11/1431 and we would like to show 21/11/1431.

    Report 6i, we can change the format, but we have hundreds of reports. and same report another excellent work up to version 5.3

    Pleae help

    Thank you

    Contact the Oracle Support for assistance. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Maybe you are looking for

    Group 1 Group 2
    Empno Ename Job Mgr Hiredate Sal Comm Deptno