Reporting in Toad

Hi,
there is a table as follows :
OrgId Orgname country-id prod-description salesqtr
123 ABC 15 AAAA FY07
123 ABC 15 AAAA FY08
456 MNO 20 AAAA FY07
456 MNO 20 BBBB FY07
456 MNO 20 CCCC FY07
Can i get the output as follows in Toad or sql plus :
Orgid Orgname country_id prod-description salesqtr
123 ABC 15 AAAA FY07
-----------------------------FY08
456 MNO 20 AAAA FY07
------------------ BBBB FY07
------------------ CCCC FY07
Note : ---------- are shown to differentiate the result, ----- denotes blank
Thanks,
Harshad.

it has to be something like
with d as
(select '123' OrgId, 'ABC' Orgname, '15' country_id, 'AAAA' prod_description, 'FY07' salesqtr from dual union all
select '123' OrgId, 'ABC' Orgname, '15' country_id, 'AAAA' prod_description, 'FY08' salesqtr from dual union all
select '456' OrgId, 'MNO' Orgname, '20' country_id, 'AAAA' prod_description, 'FY07' salesqtr from dual union all
select '456' OrgId, 'MNO' Orgname, '20' country_id, 'BBBB' prod_description, 'FY07' salesqtr from dual union all
select '456' OrgId, 'MNO' Orgname, '20' country_id, 'CCCC' prod_description, 'FY07' salesqtr from dual
Select
Case Row_Number () Over (Partition By Orgid Order By Orgid)
When 1 Then Orgid Else Null End Orgid,
case Row_Number () Over (Partition By Orgname Order By Orgname)
When 1 Then Orgname Else Null End Orgname,
case Row_Number () Over (Partition By Country_Id Order By Country_Id)
When 1 Then Country_Id Else Null End Country_Id,
case Row_Number () Over (Partition By Country_Id, Prod_Description Order By Prod_Description)
When 1 Then Prod_Description Else Null End Prod_Description,
salesqtr
from d
theodore

Similar Messages

  • How to generate report using toad in oracle 10g

    hi ,
    i am using oracle 10g with toad editor .if i am execute any table, result it will be 100 rows like, i want to make report each records page wise with header,footer etc..
    please help..
    thank u..

    That is a Toad question isn't it, and Larry still didn't buy Quest, so you are at the wrong address.
    Go to http://www.questsoftware.com and find their forums.
    Thank you.
    Sybrand Bakker
    Senior Oracle DBA

  • How do I find out what the name of the reports server  is?

    Hi Everyone,
    I am connecting to a remote machine using gotomypc.com and have started up Reports Builder 10g. I know very little about installation of Oracle on this machine. Just enough to log into Oracle 10g and run tools like the Report Builder, TOAD, etc. When I run a report from the Report Builder I get a web browser with a blank report. It works when I run a paper report. I am guessing that the Reports Server is not running or not configured properly.
    Can you tell me how to find out what the name of this Reports Server is and/or how to start it up?
    Thanks.
    Emad

    I realize this is old, but... You can find out your servers name by looking at the $ORACLE_HOME\reports\conf\rwservlet.properties file. It has a entry for SERVER. Should also have a corresponding conf file after starting up OC4J and activating the server for developer installs.
    Next, you can also run rwdiag. It will show you all report servers available to your installation. This is interesting when Multicast is used by Reports (10g). Ran into issues with servers named the same not on the hardware I was expecting.... ;)
    Good luck.
    BradW

  • Report is showing dupilcate records in Excel and correct records in PDF.

    Hi,
    I have a problem, when i run the query of report in toad then count is 24 and same records are coming in PDF, RTF and HTML format but some duplicate records come when same report is run in excel or delimited format.

    This is bcoz you don't have all the common fields in your infocubes.
    Job is the only filed common in the infocube.
    Some Characteristics like project is only available in one Cube, similarly and qualification field is only available in other Cube.
    If a Multiprovider is created on top of these two infocubes. Common chars are identified from both cubes; others can be identified only from the respective cubes.
    When we build a query on this Multiprovider, keeping a char which is not part of both cubes will create an other line with # or NA values present in that column.
    In the query designer create a new selection on the KF.
    Inside that, maintain description and drag the keyfigure from left pane to selection pane, drag characteristic "jobu201D into the selection. In the context menu of job, choose u201Cconstant selectionu201D option.
    repeat the same for all the KFs.
    for more details chk the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70dcd7b5-6a3d-2d10-c984-e835e37071a2?quicklink=index&overridelayout=true
    Regards
    KP

  • Differences between TOAD for Oracle and Oracle SQL Developer?

    Does someone know the advantages and disadvantages of using TOAD for Oracle and Oracle SQL Developer?
    I work making reports with TOAD, but in a few days I will have to use the SQL Developer (because it´s free) unless I justify the necessity of using TOAD.
    Could some that used both compare them?
    Thanks,
    Facundo.

    Hello Facundo,
    since we are rolling out new client PCs we switch from Toad to SQL Developer. Therefore I'm doing some training for the "normal" users and our developers.
    Most users simply want to have access to the data in tables and views. For those there are 2 main issues:
    - Filters get lost when exiting table while sorting is still applied. Since there is no way to apply filtering before entering the data tab this can become a great performance issue because sorting is applied to many many rows. For views it is sometimes impossible to open the data tab.
    - Exporting date values to Excel needs some know how if you want to sort by this column in Excel, because the date is formatted as "Standard" meaning that the sorting is done as for a text column: 01.01.2009 is less than 02.01.2008. Here you have to use a workaround column with a formula (=1*<datecolumn>)
    The greatest Pro is the easy sharing of connections and reports by XML files.
    Our developers like the easy debugging in SQL Developer. Though they miss the feature that the source is compiled for debug automatically as in Toad. For this we have distributed a script that compiles any PL/SQL object for debugging.
    There are only some Toads installed for DBAs and for users that need access to tables protected by policies that require authentification by OS user since this information is not passed under every circumstance.
    Regards
    Marcus

  • Report failed to parse SQL query:ORA-01745: invalid host/bind variable name

    Hi,
    We are currently upgrading from v2.2.0.00.32 to v4.0.0.00.46.
    I have copied the applications onto our test server along with the various database objects and data etc.
    When I am running a report in v4, it is failing with the following error: "failed to parse SQL query: ORA-01745: invalid host/bind variable name".
    When I copy the SQL that builds the report into TOAD (on out test server) it runs OK so really cant see why it would fail in APEX. It works fine when I run the query in our APEX v2 and in TOAD in our live server.
    The query is as follows:
    SELECT
    aea.ALTERATION_ID
    ,aea.ALTERATION_ID "ALTERATION_ID_DISPLAY"
    ,aea.assembly_name "Revised BOM"
    ,assembly.description "Revised BOM Description"
    ,assembly.INVENTORY_ITEM_STATUS_CODE "Revised BOM Status"
    ,aea.BEFORE_CHANGE_QTY
    ,flv.MEANING "Alteration Type"
    ,aea.component_name "Part No"
    ,component.description "Part No Description"
    ,component.INVENTORY_ITEM_STATUS_CODE "Part No Status"
    ,aea.AFTER_CHANGE_QTY
    ,TO_CHAR(aea.last_update_date,'DD-MM-YYYY HH24:MI:SS')"Last Update Date"
    ,aea.LAST_UPDATE_BY
    ,aea.COMMENTS
    ,aea.ORACLE_CHANGE_NOTICE
    ,AEA.SELECTION_CRITERIA
    FROM XXMEL_APEX_ECO_ALTERATIONS aea
    , fnd_lookup_values flv
    , (SELECT INVENTORY_ITEM_STATUS_CODE
    ,segment1
    ,description
    FROM mtl_system_items_b
    WHERE 1=1
    AND organization_id = 26) component
    , (SELECT INVENTORY_ITEM_STATUS_CODE
    ,segment1
    ,description
    FROM mtl_system_items_b
    WHERE 1=1
    AND organization_id = 26) assembly
    WHERE 1=1
    AND aea.COMPONENT_NAME = component.segment1 (+)
    AND aea.assembly_NAME = assembly.segment1 (+)
    AND flv.lookup_code = aea.acd_type
    AND aea.eco = :P13_ECO
    AND flv.lookup_type = 'ECG_ACTION'
    AND modify_flag = 'Y'
    ANy help would be great,
    Thanks
    Chris
    Edited by: Cashy on 22-Nov-2010 04:13
    Edited by: Cashy on 22-Nov-2010 04:14

    For some reason, the updatable fields (this is a updateable report) where not connecting to the database properly. Whn I changed them to a report columns and removed the database field reference, the report rendered

  • Does EBS license include tools for reporting and extracting data (queries)

    Hello,
    I'm recommending Oracle EBS to a customer and I need to mention what tools for reporting and extracting data (queries) are included in a Oracle EBS license.
    I hope you can help me with that information, or at least with providing me the place where I can get the info.
    Thanks in advance,
    A/P Sergio Maestri

    Hi,
    Thanks, I think the same ... but the customer asked me about it ... I supose my answer will be that he can use Reports Builder for reporting and Toad or PLSQL Developer to access to the database and make queries ...
    What about XML Publisher ? ...it can be used to make reports against an Oracle EBS database and integrate them into the EBS Application ?I believe you need a developer license to use Oracle Developer (Forms/Reports) for customizing/creating reports.
    Global Pricing and Licensing
    http://www.oracle.com/corporate/pricing/index.html
    And IINM, the same thing applied to XML Publisher -- See this thread for a similar discussion.
    eBiz & XML Publisher - Confusion
    http://forums.oracle.com/forums/thread.jspa?messageID=3834445
    Please contact your Oracle sales representative, he/she is the best one to answer such questions.
    Thanks,
    Hussein

  • Data modeler reporting repository & process model metdata

    Hi,
    From reporting repository schema ,Can one query "Source Target mapping information" provided in Transformation tasks in Process model.
    Is this feature supported in latest 4.1?
    Thanks in advance!

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • SQL Data Modeler reporting repository data model

    SQL Data Modeler (SDM) reporting repository data model
    I exported several models to reporting schema and reviewed the reports. So far so good. The reports I need are not included so I'm creating my own. I imported the reporting schema to SDM to explore the model and see how to join the tables. Has anyone already done this exercise and produced a data model for the reporting schema with primary keys, foreign keys and relationships? It would save me a pile of work if I could download the model and import it to SDM?
    Gerhardt

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • Oracle Text and APEX

    Hello
    Tried the Oracle White Paper - Oracle Text Web Applications
    Created the table and populated with relevant url links
    create table htmldb_documentation(
    id number,
    doc_title varchar2(4000),
    doc_url varchar2(4000))
    then created the index
    create index htmldb_doc_ctxidx on htmldb_documentation(doc_url)
    indextype is ctxsys.context
    parameters ('datastore CTXSYS.URL_DATASTORE')
    Then ran my SQL for the report in Toad and APEX SQL Workshop>SQL Commands before creating an APEX Region based on a SQL Report
    select score(1) relevance, doc_title, doc_url
    from htmldb_documentation
    where CONTAINS (doc_url, :P1_SEARCH, 1) > 0
    order by 1 desc
    After running the APEX Report I get error
    report error:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 1
    I also ran these grant commands after I received this error
    grant ctxapp to demo;
    grant execute on ctx_cls to demo;
    grant execute on ctx_ddl to demo;
    grant execute on ctx_doc to demo;
    grant execute on ctx_output to demo;
    grant execute on ctx_query to demo;
    grant execute on ctx_report to demo;
    grant execute on ctx_thes to demo;
    grant execute on ctx_ulexer to demo;
    Any ideas ?? I'm running APEX 3.1.0.00.32 on Oracle 10.2.0.1 on WindowsXP
    If I replace the bind variable :P1_SEARCH, with a literal value the error disappears

    Couple of things to check:
    1) do you have an item called P1_SEARCH in your application?
    2) If so, make sure that it has a value; otherwise, Oracle Text gets confused and will throw that error.
    You may want to consider using a PL/SQL Function Returning SQL Query that will only append the CONTAINS clause if P1_SEARCH has some value.
    Thanks,
    - Scott -
    http://sumnertechnologies.com
    http://spendolini.blogspot.com

  • Divided by zero error

    All,
    I am having trouble with one of the reports in EBS.
    When I run the two underlying sql of the report in toad I get the data.
    But, when I ran the report from the application I was getting some oracle error.
    So, I ran the report directly from the reports builder to see what error I am getting.
    It turns out that I am getting divided by zero error.
    I am passing in the org id and gl dates an inputs the report.
    Please help me debug the report.

    Could you check if your report has any subquery that doesn't return any record when the parameters are submitted at run time.
    I had the issue in Crystal Reports where it threw a divide by 0 error.

  • SQL Data Modeler Methodology

    What methodology is guiding the overall systems analysis approach behind SQL Data Modeler? The Help documentation seems to be based on some methodology, but it is unfamiliar to me. Zachman is not a methodology, Bachman is an ERD notation, and OMG MOF and Common Data Warehouse specs deal with data interchange. By methodology I mean a systematic set of steps and deliverables that a CASE tool, such as SQL Data Modeler, is supposed to support. An example methodologies would be Oracle*Case Method developed by Oracle in the 90's (no longer current), or support of the UML approach.
    Thanks,
    Mark

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • Repository Data Model

    Does anybody have repository data model available? Or/and did anybody reverse engineer the core hierarchy tables.
    thank you
    jiri

    Thank you Philip,
    We are doing reports in TOAD and Cognos 8.
    So far so good. One of the pieces of information I need out of the Oracle Data Modeler reporting schema is the columns in foreign keys. Foreign keys are not usually enforced in datamarts but data analysts must know what the foreign keys are to join tables.
    There is a notation in Relational Model Elements.pdf "Foreign keys of DMR_CONSTR_INDEX_COLUMNS table are not valid since one column is used to refer to objects in two different tables"
    This begs the question: Is there a valid foreign key in DMRS_CONSTR_INDEX_COLUMNS to join it to DMRS_FOREIGNKEYS or is the model documented incorrectly?
    The repository adds tremendous value to Data Modeler.
    Gerhardt

  • SGA Tuning - Total, Free, Used Per Node in RAC

    Hi,
    I am working on Total, Free, Used MB for SGA per instance, similar to a chart in TOAD (AWR Browser). The report from TOAD is combination of all the nodes. I want to per node.
    Can someone help me on the script.
    Thanks,

    893593 wrote:
    Hi,
    I am working on Total, Free, Used MB for SGA per instance, similar to a chart in TOAD (AWR Browser). The report from TOAD is combination of all the nodes. I want to per node.
    Can someone help me on the script.
    Thanks,
    10:21:07 SQL> select * from gv$sgainfo
    10:21:21   2  ;
       INST_ID NAME                      BYTES RES
          1 Fixed SGA Size                 2213656 No
          1 Redo Buffers                  7585792 No
          1 Buffer Cache Size               637534208 Yes
          1 Shared Pool Size               301989888 Yes
          1 Large Pool Size                16777216 Yes
          1 Java Pool Size                16777216 Yes
          1 Streams Pool Size                16777216 Yes
          1 Shared IO Pool Size                    0 Yes
          1 Granule Size                 16777216 No
          1 Maximum SGA Size              1553305600 No
          1 Startup overhead in Shared Pool    83886080 No
       INST_ID NAME                      BYTES RES
          1 Free SGA Memory Available          553648128
    12 rows selected.

  • Cannot choose library with option key

    Well, guess it's my turn...
    Am afraid I've done something stupid.
    At current, my most immediate problem is that I cannot choose which Library to open. Even when I press the Option key, iPhoto just opens normally without asking me which Library I want to use.
    There are no more photos in it however, as I deleted those.
    It's probably best if I explain how I got to this point.
    I bought a 2nd hand Powerbook a few weeks ago (PB 12", 768MbRAM, 60GB, cd burner, dvd reader)
    Wanted to re install OS as it was 2ndhand and have everything 'new'.
    However, by the time I could do this, I had already imported quite a lot of photos and keyworded them. So as part of my backup before Erase&Install, I burnt all these to cd, which came to 3 CD's.
    Upon completion of new install, I tried to re import photos. Got the photos double in the library and with no key words. Decided to empty it again and look into a solution later. When checking, when I opened iPhoto from the CD, the key words were there, no problem.
    As did not have access with my PB to Internet lately, this took some time.
    In the meantime I had to empty my camera (Canon powershot sd100) and therefore down loaded those.
    Almost forgot this until I yesterday I finally got round it.
    After searching on the discussions, found something similar and tried that: insert CD and then drag the Library to the desk top, with the aim of joining them together there.
    It told me there already was a Library (this was the one with the last batch from the camera).
    Then burnt these pics/ library as well, with the following result: mixed up key words - its only a few dozen pics though, so this is not a major problem, can reassign key words easily (btw, have delivered a bug report Old Toad :))
    When trying to copy Library nr 1 from the discs, it told me "A newer item named 'iPhoto Library" already exists in this location. Do you want to replace it with the older one you are moving?" STOP REPLACE
    As I have the new pics that are in there on CD, choose replace.
    When finished copying, opened iPhoto with this library (Library 1) with the
    option key, and found out the following:
    have in the meantime upgrade iPhoto with a newer version...
    when I then say yes, upgrade all pics come in nicely, but without the key words... checked, there are no key words on this CD either, so that's normal.
    So, went on with 2nd disc (which HAS the key words on the CD).
    Had to rename the first one I dragged in, done.
    Then just before this 2nd disc finished copying, it tells me 'The operation cannot be completed because an item with the name dir.data already exists.'
    Clicked ok, let it finish, then deleted this Library nr 2 again, moved Library nr 1 to a different folder and then repeated dragging Library 2 to the desk top.
    No problems this time.
    Opened iPhoto with the option key, checked Library No 2, shows ok, including the key words.
    Checked back with opening Library no 1. Fine. Then moved and renamed Library no 2 in preparation for dragging disc 3 to the desk top.
    After some thought, realised I didn't know how to join the 4 libraries I had by now. Seen how Library no 1 did not have key words, figured I could open with No2, then simply import No1 into no2.
    However, could not get No2 to open again.
    I now know this is because I renamed and moved it after having opened already another library, but last night I didn't.
    Tried to use option key while opening, but this didn't work, it did not ask me to choose a Library, but just opened with No1!
    To try to solve it, tried deleting No1 from Finder, then from Library in iPhoto, even emptied the Trash (I felt secure because I have it all on CD).
    Then I tried again to open Library No2 while using the Option key when opening iPhoto. No chance to choose library again.
    It just opens, shows "loading photos" and then comes up with a black screen.
    Tried to delete iPhoto and re install it.
    No difference. The new install even has the key words I created in it ea

    Hi Marlies,
    So basically what you have are 4 libraries with different names all in the Pictures folder.
    You want to join the libraries to create one library.
    Problem: iPhoto is being a jerk and not letting you choose a library, even after you have chose each of the libraries before and they all worked.
    Possible solution: Delete the Preference file and try again
    Preference file
    Possible solution: Download iPhoto Library Manager to mage the 4 libraries or even merge them
    iPhoto Library Manager
    iPhoto Library Manager documentation
    this page will show you everything you can do with iPhoto Library Manager.
    You can also try iPhoto Buddy
    Possible solution: You can open one library and then use the menu command "add to library" .
    So you open one library, then use the "add to library" command and then navigate to one of the libraries and choose it. Do this for each of the libraries. What will happen when you do this is outlined on Page 2
    iPhoto Help
    iPhoto Help 2

Maybe you are looking for