Whitespace under a crosstab

I have a Cross-tab and while in design mode it takes up about 2 inches (height).  In preview, as long as there are enough rows to go beyond 2 inches, the cross-tab and objects in the next section appear right under it and all is good. 
However, if there is not enough rows to get passed 2 inches as in the "footprint" of the cross-tab in design mode, then there is a white space in the preview mode below the cross-tab in the section that has the cross-tab.  The white space is the balance of whatever the rows don't fill and I cannot get rid of this.  It is throwing of the section below because it appears a void between the cross-tab and the objects below.
Thanks in advance for your Help!
-Marty

Tried "Fit Section" and the space below the cross tab is still there.  See below:
GH1c
             :       Cross Tab                                                      :      (Note:  Totals are suppressed)
             white space only when crosstab has one row
GH1d     ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
             :      Another Cross Tab                                           :
This is how it is. 
-Marty

Similar Messages

  • Some questions on Labview under KDE4 and GNOME

    I have some questions regarding KDE4 an GNOME with Labview for Linux. I'm trying to help a colleague get somethings working with regards to these desktop environments.
    1. KDE4: When I try to open a VI directly through Dolphin (the default file manager under KDE4)..and the file (lets say ABCD.VI) is located in say /home/user/Test VI/ABCD.vi. When I double click, Labview starts and says that "/home/user/Test" is not a valid VI and it just errors out and refuses to open. It refuses to honor any whitespaces under KDE4 is what I've noticed. I haven't noticed this under KDE3. 
    2. GNOME: There are no icons for .vi files after installation, even though the desktop support for GNOME is installed during the install process.  
     Would appreciate some help!

    Hi Anshul,
    What version of Mandriva do you see this in?  We only official test for and support a couple distributions (SUSE is only supported up to 10.3): http://digital.ni.com/public.nsf/websearch/35D2B5E483A001A18625716B005BE464?OpenDocument 
    Regards,
    Jeremy_B
    Applications Engineer
    National Instruments

  • Count number of orders entered

    Morning all,
    I have created a report which divides (calculates) number of orders in x number of days. The report is working perfectly however now I would like to add a new feature in it. For example
    Number of days            Number of Orders
    1                                           3
    2                                           2
    3                                           4
    4                                           5
    5                                           6
    The above example shows 3 orders took 1 number of days to be shipped out. Now what I would like to show is, 5 orders (in reality) should have taken 1 number of days. So in my report it will show it like this
    Number of days            Number of Orders        Actual Number of Orders
    1                                           3                                   5
    2                                           2                                   4
    3                                           4                                   7
    4                                           5                                   2
    5                                           6                                   1
    The above example shows that in reality in one day 5 orders should have been shipped however only 3 went out.
    So in other words I would like to show orders according to when they were entered and match them with the orders which were actually shipped accordingly.
    I tried using formula like this
    {date_entered};
    distinctcount({order_num});
    and I put it under the crosstab (Number of days row) however that shows the total number of orders instead of dividing those actual orders into number of days.
    Anyone knows how to go about this?
    Many thanks
    Kind Regards
    Jehanzeb

    i have a couple of questions
    is the number of days the date or the date difference between order date and completion date?
    are there parameters to select the dates?
    i believe this is what you want to do  is create a group by order date,  this will group all orders by the date
    then use manual running totals
    NUMBER OF ORDERS
    1 reset on the order date header
    1 calculate on the order (use the date diff formula you are using to get the value)
    1 display on the order date footer- this will show you the total
    ACTUAL ORDERS
    for the calculation create a formula
    if shipdate in {?parameter} then 1
    use manual rt and this will display your values in the footer
    then supress the header and footer.

  • Shrink table to fit

    Hi,
    I have a panelGroupLayout set to vertical and inside that a table that outputs a link once for each row in the iterator.
    All well and good, but for some reason there is a load of whitespace under the last row - eg I produce 3 rows then there is a load of whitespace until my next component is displayed underneath.
    How can I effectively tell the table to shrink to fit the data ? I was expecint it to do it itself. I can manually enter the height in pixels and that gets rid of a lot of the space but I don't want to do this as I might retrieve a large number of rows and the height won't be big enough.
    I'm sure this can be done easily - i haven't figured it out though.
    cheers

    assuming you are using jdev 11g.
    table component has property autoheight rows , set the value 10, and anything more than 10 rows it will put scrollbar on the table component , anything less than 10 rows it will have a blank area for the rest of the table.
    hope this helps,
    regards,

  • Use case for multiple crosstabs under one datasource

    I'm trying to understand why one would have multiple crosstabs for one datasource.  When I change one crosstab, it changes the other crosstab.  I was could have a different layout for multiple crosstabs.
    Thanks.
    Regards,
    Mel Calucin

    Hi Mel,
    I am not following this question; would it be possible to rephrase it?
    You could have multiple tabs for a data source - such as a one tab showing the result set in a cross tab and the other for a chart.
    Tammy

  • Crosstab shows empty sums when multiple rows are involved

    Hello,
    Here are the top few lines from a crosstab report I've generated:
                   Billing Percentage          Billing Amount          Billing Tax Percentage          Billing Tax Amount     
              Billing Type     Rental     VAT     Rental     VAT     Rental     VAT     Rental     VAT
    Release Code     Booking Number                                             
    MYRELEASE                                             
         34806          50     NULL     7544810     NULL     5     NULL     377240     NULL
         34810          NULL     NULL     100000     NULL     5     NULL     5000     NULL
         34811               NULL          NULL          NULL          NULL
         34812               NULL          NULL          NULL          NULL
         34813               NULL          NULL          NULL          NULL
         34822          NULL     NULL     100000     NULL     5     NULL     5000     NULL
    Although this probably looks terrible in HTML, hopefully everyone can see that for 34806 and 34810, sums are returned correctly. However, for 34811-34813, the sums are returned as NULL.
    After looking into the database, it appears that the sums only show when there is only a single element making up the sum. For line 34811, there are 2 underlying records which should be getting summed up, but the report is showing NULL.
    I have read some suggestions including changing the default aggregation behavior to show the sum of the contributing cells - but this does not fix anything. Also, I have verified that in the EUL, the data type is "NUMBER" and the default position is "DATA POINT".
    It may be worth noting that the multiple underlying records often contain duplicate data in the amounts that are being summed up. Could this be the issue? If so, how do I get Discoverer to sum up these values despite the fact they are dupes?
    Thanks!

    Okay, how about making sure the items are non-NULL similar to what Puppethead suggests.
    It sounds like you're choosing the SUM for an item for display. Regardless if it's a SUM or DETAIL on the line row level, if there's any NULL in each of those SUM line records, it may be screwing up the total.
    So, where you choose the item name, instead put an NVL function around it (ie: NVL(item,0)).
    Russ

  • Question Regarding Crosstab or Matrix Reporting

    Hi,
    I have a Requirement Where I have to Create a Cross-tab Report,
    We use XMLPublisher which is Bundled with R12...
    our ERP version is :12.1.3
    Our XML Publisher is :5.6.3.x.x
    The Requirement Output is
    I have Generate a report which should be a Pivot Report for Every item Entered by the User (it may be one or Multiple Item)
    if one Item is Entered
    I have To list the report as below
    ITEM ID:1234 ITEM DESC: SquarePaper Plate =>Item Detail to be printed on top of the table.. Followed by
    DATE is the Column field for the Crosstab
    ORDER STATUS  is the Row Field( Order Status will be of Five Types( BOOKED,ENTERED,AWAITING_SHIPPING,AWAITING_SHIPPING,SHIPPED,CLOSED) for the Crosstab
    QTY is the Field Data Field  for the Row Field(Order Status)..for the Crosstab
    If More than One Entered
    Then I have to Repeat the Same Logic to Produce Pivot Table for that many Items entered by the User..
    For Cross Tab I have Found this Link by Vetsrini
    http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
    I followed his Template and I am Getting the Crosstab Output but I am getting for all the Items as One report,
    I could not get a Logic to Group or ( Repeating Group) by Item and Item Description..
    Please help as I am Stuck at this Logic for almost 3 weeks and I have posted so 4-5 questions on this regards unfortunately No replies..
    Thanks

    Hi, Nagornyi,
    Thanks for the Reply,
    <?if:count(ITEM)=1?>
    CROSSTAB_1
    <?end if?>
    <?if:count(ITEM)>1?>
    CROSSTAB_2
    <?end if?>
    When I use this Method, I am getting this Error..
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\aranganathan\Desktop\Currently Working\RTF\tpc_item_count_sum_ver6_test.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\aranganathan\Desktop\cross_tab_test\tpc_item_count_sample2.xml
    FOProcessor setLocale: en-us
    Output type: MHTML
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:470)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/=1'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
         ... 15 more
    Also
    My Question was
    For Every ITEM_ID entered by the User, I have to Create Crosstab result grouped by ITEM_ID's
    Say
    if the User Enters one ITEM_ID then
    I should Create the Report as
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Say if the ITEM is more than ONE
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 2341 ITEM_DESC: ROUND PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 3421 ITEM_DESC: RECTANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 4123 ITEM_DESC: TRANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Thanks
    once again

  • Display '0' when data is not available in Crosstab

    Hi Friends,
    I have a simple crosstab, which will show,
    Country as a "row header"---only one country is available
    Department as a "column"
    No.Of employees in "Body" of cross tab.
    The table will how much percentage of employees are contributed under each department in one Country. Data is also coming correctly. But if there are no employees or there is no data the crosstab is not showing that row. it is displaying the records which is having data. But I need to show all the departments even there is no data. how can I do this?
    Any help would be greately appreciated.

    Hi Anindita,
    By default those two options will be selected. those will work on null values. But in my case there are no null values. I don't have any data for particular departments. eventhough I need to visualize the things by giving a default value, say '0'. for example, the following is the report I need
    DeptName | country
    Marketing | 10
    Finance | 0
    Production | 0
    packaging | 76
    (Here the numbers under country are the count of employees. this is a crosstab report).
    I am getting the following report
    DeptName | country
    Marketing | 10
    packaging | 76
    I want to show all departments even though the data is not available. Please help me.

  • InDesign CS2 - don't want to ignore Whitespace elements

    Hi,
    I am working of InDesign CS2 on XP-SP2, while doing manual XML import i can successfully uncheck "Do not import contents of whitespace-only elements" but i can't do the same using script....
    I am using following chunk of script in CS2 which doesn't work with ESTK2.
    mydoc.xmlImportPreferences.ignoreWhitespace = false;
    I noticed this works well with CS3 plugins in CS2. I need to resolve this with CS2 only. Let me know if you have any clue.
    Thanks.

    Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    But in Receiver File adapter
    NameA.addHeaderLine=0
    is used to have no Header line in the target structure
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

  • Footer information not repeating under for-each

    Hello,
    I am trying to customize Loan Statement to show the first as summary and the rest for the details for each loan. I need to print Payment information and Bar Code at detail level for each loan. In order to control the position of the bar code, I have to put the payment stub in the footer. But the information under the footer is not repeating the information for each Loan instead it only shows the information for the first loan. Could anyone please help? Thanks.

    Hi
    Can you tell me how you are exporting to Excel? The correct way to export a Crosstab is to select the Export to Pivot Table option from the file menu and not by clicking the Export to Excel button on the tool bar.
    If this does not help, out of the box, Discoverer suppresses the repeated Group Sort items and sends a Blank space.
    This behavior is controlled in a pref.txt setting called ExportGroupSortedItemsAsBlank on your Discoverer server. When set to 1, Discoverer exports non breaking rows as empty cells, when set to 0 the value of the group sorted items are repeated. However, according to the comments this is supposed to only affect exports to CSV and TXT.
    Best wishes
    Michael

  • Non-whitespace characters are not allowed ...

    I'm trying to parse the following XML fragment into a DOM Document object:
    <CNetSpecs><section name="General
    "><spec name="Printer Type
    ">Personal printer - ink-jet - colour
    </spec><spec name="Weight
    ">6.4 kg
    </spec></section><section name="Printer
    "><spec name="Print Speed
    ">Up to 15 ppm - black draft ? Up to 15 ppm - colour draft ? Up to 0.65 min/page - photo best - 101.6 x 152.4 mm ? Up to 1.28 min/page - photo best - 203 x 254 mm
    </spec><spec name="Built-in Devices
    ">Preview screen
    </spec><spec name="Max Resolution ( B&W )
    ">5760 dpi x 1440 dpi
    </spec><spec name="Max Resolution ( Colour )
    ">5760 dpi x 1440 dpi
    </spec></section><section name="Software / System Requirements
    "><spec name="OS Required
    ">Microsoft Windows 98 Second Edition / Windows ME, Apple MacOS X 10.1, Apple MacOS X 10.2, Microsoft Windows 2000 / XP, Apple MacOS 8.6 - 9.2
    </spec></section></CNetSpecs>The fragment is pulled out of a text field in a database.
    The code I'm using to do the parseing is:
    // Parse the CNet XML into a proper doc.
    DOMParser parser = new DOMParser();
    parser.parse(new InputSource(new StringReader(cnetSpecs)));
    org.w3c.dom.Document cnetXml = parser.getDocument();
    xmlUtil.toFile(cnetXml, "/tmp/cnetxml.xml");
    NodeList cnetRoot = cnetXml.getElementsByTagName("CNetSpecs");
    Node CNetStatsNode = xml.importNode(cnetRoot.item(0), true);
    root.appendChild(CNetStatsNode);and I get the following errors:
    [Error] :1:107: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Personal printer - ink-jet - colour'.
    [Error] :1:150: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '6.4 kg'.
    [Error] :1:391: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Up to 15 ppm - black draft ? Up to 15 ppm - colour draft ? Up to 0.65 min/page - photo best - 101.6 x 152.4 mm ? Up to 1.28 min/page - photo best - 203 x 254 mm'.
    [Error] :1:452: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Preview screen'.
    [Error] :1:528: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '5760 dpi x 1440 dpi'.
    [Error] :1:603: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '5760 dpi x 1440 dpi'.
    [Error] :1:847: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Microsoft Windows 98 Second Edition / Windows ME, Apple MacOS X 10.1, Apple MacOS X 10.2, Microsoft Windows 2000 / XP, Apple MacOS 8.6 - 9.2'.Can anyone point me in the right direction? I've been scratching my head all day.

    I dont think so that it is because of un-escaped "&" character or breaking line sequences.
    As in mine case it is giving for XML as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <publicationManifest date="03/13/2007 14:06:25">
    <contentItem action="add" expireDate="" releaseDate="" revision="1">
    <content>This would go under webstore</content>
    <metadata>This would go for Database</metadata>
    </contentItem>
    </publicationManifest>
    and console output at java IDE is
    [Error] item-manifest_Test.xml:4:46: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'This would go under webstore'.
    [Error] item-manifest_Test.xml:5:45: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'This would go for Database'.
    Therefore , if anyone had found the root cause of this discrepancy please update this topic.

  • Custom column in Crosstab query in BO 6.5

    Hello Gurus,
    I am trying to create a report in BO 6.5 using data from two flat files by linking them and I applied cross-tab template as I need row data as columns based on a field called STATUS (Approved, Cancelled, In process etc). And in this STATUS field I want to add another column (Not Ordered) on the run using some conditions which is not in the flatfile. How can I do that?
    Please let me know if my post in unclear so that I can provide more data regarding the report.
    Thanks in advance for your time.

    Let me elaborate my requirement. I am trying to create a report using data from two flat files. I am supposed to give the status of orders. So I created crosstab query and I chose STATUS field data to be as columns. Currently it have three fields----Approved, In process, Waiting for approval. Now as per requirement I am supposed to include another column called Not applicable based on two fields Amount and Local/No local. Before this we used to create the same report uising excel and I used below formula:
    =IF(AND(Amount=0,B2="Non-Local"),"Not Applicable","Approved")
    But in BO if the above condition is False I want that particular record to fall under already existing "Approved" but it is creating another "Approved" status and it is not catagorizing Not applicable....I mean every record with amount =0 falls under new Approved status but not in Not applicable as expected. Hope you understand my issue.
    Am i doing anything wrong in creating formula?

  • How to make crosstab cell value become hot link which can link to other?

    Dear Gurus:
    I am using Bi beans in a project, i create a crosstab in one .jsp file,the crosstable can display data correctly,but i want to make every cell value become hot link which point to a url,this url contains measure info and all dimension info,how can i do? Thanks a lot!

    Hi Tomsong,
    We will post a BI Beans Sample that does that to OTN next week.
    In the mean time, look at the following BI Beans Help topic (under Jdeveloper BI Beans Help)
    Handling Drill-Out Events in HTML-Client Applications
    Hope this helps
    Katia

  • Income/Expense in crosstab

    Post Author: jswift
    CA Forum: General
    I have created an income/expense report in crystal 11 and need to figure out how to have the reverse sign appear only for one section.
    For example under expenses, the numbers appear as negatives and I need to change them to positives as well as the postives to negatives, howeverin the income portion I need them to not have the negative sign in them.
    Suggestions

    Post Author: samantham13
    CA Forum: General
    I am having a similar problem only this is inside of a crosstab.  I have 2 rows, receipts and deliveries - receipts are positive, deliveries are negative.  I need to display all values in the detail and the row grand totals as positives and have the column grand total come out as (receipts - deliveries).  I have tried using the Reverse Sign For Display option using a formula RECORD_TYPE = 'Delivery' - where record type is the database field that is the rows for the crosstab.  This appears to do nothing.  Does anyone have any suggestions?

  • How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?

    How to Unpivot, Crosstab, or Pivot using Oracle 9i with PL/SQL?
    Here is a fictional sample layout of the data I have from My_Source_Query:
    Customer | VIN | Year | Make | Odometer | ... followed by 350 more columns/fields
    123 | 321XYZ | 2012 | Honda | 1900 |
    123 | 432ABC | 2012 | Toyota | 2300 |
    456 | 999PDQ | 2000 | Ford | 45586 |
    876 | 888QWE | 2010 | Mercedes | 38332 |
    ... followed by up to 25 more rows of data from this query.
    The exact number of records returned by My_Source_Query is unknown ahead of time, but should be less than 25 even under extreme situations.
    Here is how I would like the data to be:
    Column1 |Column2 |Column3 |Column4 |Column5 |
    Customer | 123 | 123 | 456 | 876 |
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE |
    Year | 2012 | 2012 | 2000 | 2010 |
    Make | Honda | Toyota | Ford | Mercedes|
    Odometer | 1900 | 2300 | 45586 | 38332 |
    ... followed by 350 more rows with the names of the columns/fields from the My_Source_Query.
    From reading and trying many, many, many of the posting on this topic I understand that the unknown number or rows in My_Source_Query can be a problem and have considered working with one row at a time until each row has been converted to a column.
    If possible I'd like to find a way of doing this conversion from rows to columns using a query instead of scripts if that is possible. I am a novice at this so any help is welcome.
    This is a repost. I originally posted this question to the wrong forum. Sorry about that.

    The permission level that I have in the Oracle environment is 'read only'. This is also be the permission level of the users of the query I am trying to build.
    As requested, here is the 'create' SQL to build a simple table that has the type of data I am working with.
    My real select query will have more than 350 columns and the rows returned will be 25 rows of less, but for now I am prototyping with just seven columns that have the different data types noted in my sample data.
    NOTE: This SQL has been written and tested in MS Access since I do not have permission to create and populate a table in the Oracle environment and ODBC connections are not allowed.
    CREATE TABLE tbl_MyDataSource
    (Customer char(50),
    VIN char(50),
    Year char(50),
    Make char(50),
    Odometer long,
    InvDate date,
    Amount currency)
    Here is the 'insert into' to populate the tbl_MyDataSource table with four sample records.
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    SELECT "123", "321XYZ", "2012", "Honda", "1900", "2/15/2012", "987";
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("123", "432ABC", "2012", "Toyota", "2300", "1/10/2012", "6546");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("456", "999PDQ", "2000", "Ford", "45586", "4/25/2002", "456");
    INSERT INTO tbl_MyDataSource ( Customer, VIN, [Year], Make, Odometer, InvDate, Amount )
    VALUES ("876", "888QWE", "2010", "Mercedes", "38332", "10/13/2010", "15973");
    Which should produce a table containing these columns with these values:
    tbl_MyDataSource:
    Customer     VIN     Year     Make     Odometer     InvDate          Amount
    123 | 321XYZ | 2012 | Honda      | 1900          | 2/15/2012     | 987.00
    123 | 432ABC | 2012 | Toyota | 2300 | 1/10/2012     | 6,546.00
    456 | 999PDQ | 2000 | Ford     | 45586          | 4/25/2002     | 456.00
    876 | 888QWE | 2010 | Mercedes | 38332          | 10/13/2010     | 15,973.00
    The desired result is to use Oracle 9i to convert the columns into rows using sql without using any scripts if possible.
    qsel_MyResults:
    Column1          Column2          Column3          Column4          Column5
    Customer | 123 | 123 | 456 | 876
    VIN | 321XYZ | 432ABC | 999PDQ | 888QWE
    Year | 2012 | 2012 | 2000 | 2010
    Make | Honda | Toyota | Ford | Mercedes
    Odometer | 1900 | 2300 | 45586 | 38332
    InvDate | 2/15/2012 | 1/10/2012 | 4/25/2002 | 10/13/2010
    Amount | 987.00 | 6,546.00 | 456.00 | 15,973.00
    The syntax in SQL is something I am not yet sure of.
    You said:
    >
    "Don't use the same name or alias for two different things. if you have a table called t, then don't use t as an alais for an in-line view. Pick a different name, like ordered_t, instead.">
    but I'm not clear on which part of the SQL you are suggesting I change. The code I posted is something I pieced together from some of the other postings and is not something I full understand the syntax of.
    Here is my latest (failed) attempt at this.
    select *
      from (select * from tbl_MyDataSource) t;
    with data as
    (select rownum rnum, t.* from (select * from t order by c1) ordered_t), -- changed 't' to 'ordered_t'
    rows_to_have as
    (select level rr from dual connect by level <= 7 -- number of columns in T
    select rnum,
           max(decode(rr, 1, c1)),
           max(decode(rr, 2, c2)),
           max(decode(rr, 3, c3)),
           max(decode(rr, 4, c3)),      
           max(decode(rr, 5, c3)),      
           max(decode(rr, 6, c3)),      
           max(decode(rr, 7, c3)),       
      from data, rows_to_have
    group by rnumIn the above code the "select * from tbl_MyDataSource" is a place holder for my select query which runs without error and has these exact number of fields and data types as order shown in the tbl_MyDataSource above.
    This code produces the error 'ORA-00936: missing expression'. The error appears to be starting with the 'with data as' line if I am reading my PL/Sql window correctly. Everything above that row runs without error.
    Thank you for your great patients and for sharing your considerable depth of knowledge. Any help is gratefully welcomed.

Maybe you are looking for

  • Error while trying to import songs on cd

    hi i downloaded the newest version of i tunes and now i can not burn my songs onto a cd. i keep getting errors please help this is what the error reads. Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Dell Computer Corporation Dimension

  • How do we exit from a sub procedure

    Hi, I am calling a sub procedure from my plsql procedure. If an error occurs in the sub-procedure, it should exit from the appilcation. return gets the control back to the called procedure. but is there a way to stop the execution totally? Thanks, Na

  • Why is this massive media cache file on my C drive?

    Running Adobe CS5 (NOT 6) on a Windows 7 PC. I thought I had made sure that everything was on my D or E drives since my C drive is an SSD and I don't want anything but the basics on it. Well, I have nearly 4GB of Media Cache eating up SSD space and n

  • Ipod nano 4th gen Equalizer won't enable

    I just nought the 4th gen of Ipod nano and am having problems getting the equalizer to enabel (go from 'off' to 'on) so I can add bass, use loudness or other options. Has anyone seen this and waht;s the fix. the online user guides arent much help.

  • Issue of Clock resetting-MacBook Pro

    I use MacBook Pro and have installed Win 8. I have this issue of clock setting which sets as +5 1/2 hrs after every logoff. The time update does not happen automatically though i have tried several others in the drop down list other than time.windows