ORA-01790 expression must have the same type of data, matching expression

SELECT *  from award_test
        UNPIVOT(VAL for operator in(                                                                                                                                                                                                        
AWARD_NAME,                                                                                                                                                                                                               
TOTAL_PROCEEDS,                                                                                                                                                                                                              
EARNING_PROCS ,                                                                                                                                                                                                               
TOT_PROCS_EARNINGS ,                                                                                                                                                                                                            
GROSS_PROCS    ,                                                                                                                                                                                                                
PROC_REF_DEF_ESCR ,                                                                                                                                                                                                         
OTH_UNSP_PROCS ,                                                                                                                                                                                                               
ISSUANCE_COST ,                                                                                                                                                                                                             
WORK_CAP_EXP ))
        PIVOT(max(VAL) for award_number in  ('XIAAE' as "XIAAE",'XIBNG' as "'XIBNG"))
Expected results
operator   XIAAE     XIBNG     
AWARD_NAME ab          cd                                                                                                                                                                                    
TOTAL_PROCEEDS   0     1                                                                                                                                                                                              
EARNING_PROCS                                                                                                                                                                                                            
TOT_PROCS_EARNINGS                                                                                                                                                                                                          
GROSS_PROCS                                                                                                                                                                                                                  
PROC_REF_DEF_ESCR                                                                                                                                                                                                         
OTH_UNSP_PROCS                                                                                                                                                                                                               
ISSUANCE_COST                                                                                                                                                                                                            
WORK_CAP_EXP
the data stored will be populated as columns

Hello

Is this the same probllem like
Re: ORA-56901: no constant expression is not allowed to pivot. UNPIVOT values
?

You do not post again and again the same problem. One of these threads mark as "Answered" right away; and only continue in the other. In this way, you will have only to look in one place to find answers.
I suggest marking it as 'Response', given that the other has a few examples of data.

Tags: Database

Similar Questions

  • A file in a source path must have the same package structure ", as the definition's package?

    How I can fix this bug with my class, I get this message:

    "A file in a source path must have the same package structure", as the definition, "photoviewer" package. "

    It's my source WindowedApplication:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:WindowedApplication xmlns:mx = ' http://www.adobe.com/2006/mxml '
    "" xmlns = "*".
    paddingBottom = paddingTop = "0" "0".
    paddingLeft paddingRight '0' = '0 = '.
    Layout = "vertical".
    pageTitle = "Photo Viewer"
    creationComplete = "init ()" viewSourceURL = "srcview/index.html" > "

    < mx:Script >
    <! [CDATA]

    Import mx.collections.ArrayCollection;
    Mx.rpc.events import. *;

    PhotoViewer Import. Gallery;
    PhotoViewer Import. PhotoService;


    [Bindable]
    private var: Gallery;

    [Bindable]
    private var service: PhotoService.

    private function init (): void
    {
    service = new PhotoService("data/galleries.xml");
    }
    []] >
    < / mx:Script >

    This is my Gallery class source:

    the photoviewer package
    {
    Import mx.collections.ICollectionView;
    Import mx.collections.ArrayCollection;
    Import mx.collections.IViewCursor;

    [Bindable]
    public class Gallery
    {
    public var name: String;
    public var description: String;
    public var photos: ArrayCollection collection;
    public var selected: int;

    private var photo: Photo;

    public void Gallery (gallery:Object = null)
    {
    photos = new ArrayCollection();
    If (Gallery! = null)
    {
    Fill (Gallery);
    }
    }

    public void fill(gallery:Object):void
    {
    myIdName = gallery.id;
    This.Description = gallery.description;
    This.Selected = 0;

    for (var i: int = 0; i < gallery.photo.length; i ++)
    {
    Photo = new Photo (gallery.photo );
    photos.addItem (photo);
    }
    }
    }
    }

    Someone knows how to fix this error?
    "A file in a source path must have the same package structure", as the definition, 'photoviewer' package. '?

    Kind regards
    EvsPeart

    Yes. If you want to file package photoviewer Gallery you create directory photoviewer in src and move the file there.

  • ORA-01790 Expression must have the same data type

    select  'sal' as A, sal as B, sal as C, sal as D
    from
    (Select sum(sal) sal from emp)
    union all
    select
      'comm', comm, comm, comm
    from
    (Select sum(comm) comm from emp)
    union all
    select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
    Get the following error when you run the above query. I know it's because of the rpad('-',10,'-') what is the best way to achieve the expected results

    I would like to have the result with underscore. What is the best way to achieve this.

    Expected results:
    I am developing report.
    I need to have the following oupput.
    How can I put underscore after the recordings.
     A              B        C             D        
    sal         29025       29025     29025
    comm     2200    2200     2200
    --------------------------------------------------
    SQL> select  'sal' as A, sal as B, sal as C, sal as D
      2  from
      3  (Select sum(sal) sal from emp)
      4  union all
      5  select
      6    'comm', comm, comm, comm
      7  from
      8  (Select sum(comm) comm from emp)
      9  union all
     10  select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
      'comm', comm, comm, comm
              *
    ERROR at line 6:
    ORA-01790: expression must have same datatype as corresponding expression
    
    SQL> select  'sal' as A, to_char(sal) as B, to_char(sal) as C, to_char(sal) as D
      2  from
      3  (Select sum(sal) sal from emp)
      4  union all
      5  select
      6    'comm', to_char(comm), to_char(comm), to_char(comm)
      7  from
      8  (Select sum(comm) comm from emp)
      9  union all
     10  select rpad('-',10,'-') ,rpad('-',10,'-'),rpad('-',10,'-'),rpad('-',10,'-') from emp;
    
    A          B                                        C                                        D
    ---------- ---------------------------------------- ---------------------------------------- ------------------
    sal        29025                                    29025                                    29025
    comm       2200                                     2200                                     2200
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    
    A          B                                        C                                        D
    ---------- ---------------------------------------- ---------------------------------------- ------------------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    ---------- ----------                               ----------                               ----------
    
    16 rows selected.
    
    SQL> 
    

    SY.

  • A file in a source path must have the same package structure

    Hello

    I'm creating an application. What I did to cause this error, should separate my AS3 code to another .as file in the same folder. Since then, I get this error. I tried a couple of different things as creating a new folder under the same structure with the same name as the package I said. However, no effect, it's a gave the same error.

    I searched for information on this error, all suggest the same thing... I did. Probably I did not receive what they say...

    However, can someone explain where I'm wrong about this?

    Thanks and greetings

    H.R.

    My guess is you put in the right place, and the 'heap of various errors' that you refer to are compilation errors in your class. In its current location, Flex doesn't compile your class because he is in the wrong directory, so you will not see these errors. Put it back where it should be and if you get more errors that you don't understand, search with google, read actionscript docs or ask another question on the forum.

  • When selecting several fields of the same type why tab formatting does not appear in the properties?

    Creating pdf with lines Qty and total order forms, I want to format the fields as number with 0 decimal places for the qty column and the sign $ and 2 decimals for the totals column.

    Why when choosing several fields quantity, then go to properties, the format tab disappear? Why do I have to choose and the format of each field one at a time? They have the same type of field.

    I'm working currently on a document with more than 200 fields are most of the quantity fields and others are total fields. I right click on each field individually.

    It's 2015! Can you imagine if Excel did it?... Adobe WTF?

    Only the Adobe developers can answer why it is like that, but it's unfortunately.

    The only solution is to use a script to set the Format setting for several fields at the same time.

    I developed such a tool, so if you are interested you can get it here: Scripts custom Adobe: Acrobat - Format applies to several text fields

  • Can I have a form only for all instances of the application of the same type? (OIM 11 G 2)

    Hi all

    I have dozens of instances of the application of the same type (DBUM connector) so I was used to specify the same shape and the same user object while creating instances of the application.

    Is it safe? Or is it better to create a new/different shape for each instance of the application?

    Many thanks and best regards.

    Even if this is the answer, I would say that Yes, always use the same form name in the instance of the application. Recently came across the issue in R2BP10 and R2PS1BP02, where there are several child forms an instance of the application if different names are used for the name of the form in the instance of the application, then the form does not display data in the user interface.

    -Marie

  • E4200 access via a browser is low. Password and wireless keys must be the same.

    I tried to change my admin password to something I just want to know. When I did, I was told that the key and wireless admin password must be the same. What madness is this? I have to give my children the key to enter the system there. I put parental controls for device there. Now all owe it do is google this router and read and then they can understand the key and the password are the same. Log in to the router and change parental controls.

    I thought about a work around that. I would give them the key to access as a guest. It was great if they were going to use a browser to surf the Web. Guest access does not work for me on other devices such as iPods and iPads. In my tests on these types of devices applications cannot get on the Internet with guest access. That a browser can.

    Thoughts from cisco? No help from cisco on this?

    Do not use Cisco Connect and you'll be able to have the password admin and "wireless key" be different without problem.  I don't know why Cisco Connect is doing this, but if you go to http://192.168.1.1 with your web browser after using Cisco Connect and you connect to the web GUI admin here, you can manually set your admin password and the "wireless key" However desired.

  • ORA-06504: PL/SQL: return variables of the game results or the query types do not match

    Hello!

    I have a simple object type and a proecdure in which I am trying to use it to insert into another table

    -object

    CREATE ORREPLACETYPEmt_mtg ASOBJECT

    (

    ACOL NUMBER ,

    BCOL NVARCHAR2 (100)

    );

    CREATE ORREPLACETYPEREF_MTG ASTABLEOFMt_MTG ;

    -same structure as the use of sampletbl target table in the cursor query

    create table tbl_MT_MTG

    (

    ACOL NUMBER ,

    BCOL NVARCHAR2 (100)

    );

    -procedure

    CREATE ORREPLACEINTERIORTEST_PROCEDURE1

    AS

    ref_cur sys_refcursor ;

    REFR ref_mtg ;

    BEGIN

    OPEN ref_cur FOR

    Select acol,

    BCOL

    DE sampletbl rownum<10;

    Fetch ref_cur in bulk collectintorefr;

    Insert intotbl_MT_MTG(acol,bcol)selectacol,bcol fromtable(refr);

    commit;

    CLOSE Ref_cur;

    END;

    /

    When I run this procedure fails with

    ORA-06504: PL/SQL: return variables of the game results or the query types do not match

    ORA-06512: at "TEST_PROCEDURE1", line 10

    ORA-06512: at line 2

    Any help on this please...

    Thanks to an OLD POST below

    so perfect helped me! Thank you

    Tubby

    After 5 years of more :-)

    How to store refcursor in collection How to store refcursor in collection

  • two elements that have the same source

    Hi guys,.

    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source:

    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    2 - Google Map plugin ELEMENT to visualize on the map. The source of this issue should also be "Map" the column that is used to read the address.

    But the problem, as you saw, we can not create a new record if we have two items with the same source. How can I get around this?

    Here is the link to the plugin:

    http://Apex.Oracle.com/pls/Apex/f?p=plugins:LOCATION_MAP:2943553726537511

    Kind regards
    Fateh

    Published by: Fateh July 21, 2011 02:52

    Hi Fateh,

    Tried the plugin you mentioned! Had a preview of your problem.
    >
    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source
    >
    As your form seems to be running automatic process line processing DML that will obviously give an error if you have two items
    with the same source i.e. 'MAP' that is your database column.
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >
    I think that this point is already with you as you may have created form based on a Table or form and report based on a Table.
    Leave the source of this article because it's IE card - the database column.
    >
    2 - Google Map plugin ELEMENT to visualize on the map.
    >
    Change the source of this article as:
    Source type: static assignment (value corresponds to the source attribute)
    Source of value or expression:

    &P1_ADDRESS.
    

    Where P1_ADDRESS is the element:
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >

    I hope that helps!
    Kind regards
    Kiran

  • RE: Installed detachment "access denied." I have the same problem and none of the above worked. The property is empty, but demand will not accept me.

    RE: "access denied" following the installation of Firefox question. I have the same problem. Details below: I tried opening in Mode safe that has not worked. I have administrative access. When I click on the general tab in properties, I get a message that there is no such thing as "firefox.exe". This file, or any other type 'install' file appears in the directory Mozilla Firefox with the exception of 'uninstall '. I downloaded and tried to install seven times from six different sources, including Mozilla, all with the same results. I also tried a number of solutions on the web for this error without great success. I tried, first of all, to make an upgrade, then remove the old version of Firefox and have been 'install' since then. Avast, Malwarebytes and Threatfire found no malware.

    I've never had a similar problem with Firefox before and I used it for years. Anyone has any ideas that I have not already tried? I'm tired of using Internet Explorer! RE: Troubleshooting below - information Windown will not open the downloaded file.

    arwade said

    I downloaded Firefox on seven different sites

    Please download the full installer ONLY of Mozilla.org.
    Download Firefox full installation for all systems and languages {web link}

  • I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in one class. How to unlock my password. Carol in English

    I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in ONE class. How to unlock my login and my password, so that I can use it for all classes. Carol in English

    "Remember Me" for the site connections automatically when you return to the Web site is done with a Cookie the site in Firefox.

    Try to clear your Cookies for this Web site.

    Tools > Options-> life privacy - Cookies = the button show Cookies.

    You must use the custom settings for history at the top of this tab to see the View the Cookies button.

    Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.

    Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.
    When you are finished click Close.

  • I have the same problem. whenever I start windows it tells me it is install and configure updates, after 20 minutes he finally - but next time I start exactly the same thing happens - that is every day and im tired of it.

    I have the same problem. whenever I boot windows vista it tells me it is install and configure updates, after 20 minutes he finally - but next time I start exactly the same thing happens - that is every day and im tired of it.

    Hi MartinWithWindowsIssues,

    Welcome to the Microsoft Vista answers Forum!

    I have some steps that may help you.

    Step 1

    Try resetting the component of windows update.

    To do this, click resolve this present in the link below. Click run in the file download dialog box and follow the steps described in the fix it Wizard.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Step 2

    Perform a scan of the file system [SFC] checker on the computer that will replace missing or corrupt files.

    To do this, follow the steps below:

    1. click on the Start button

    2. on the Start Menu, click all programs followed by accessories

    3. in the menu accessories, right-click on command line option

    4. in the drop-down menu that appears, click the "Run as Administrator" option

    5. If you have the User Account Control (UAC) enabled, you will be asked permission before the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.

    6. in the command prompt window, type: sfc/scannow then press enter

    7. a message is displayed to indicate that "the analysis of the system will start.

    8. be patient because the analysis may take some time

    9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue

    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.

    11. once the scan is finished, close the command prompt window, restart the computer and check.

    For more information, see the link below:

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista

    http://support.Microsoft.com/kb/936212

    Hope the helps of information. Please post back and we do know.

    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • I use a USB key to solid state. On my Win7 PC, the drive is e: on my XP PC, the drive h: I need the drive must be the same.

    How I change one of them?

    I need them to be of the same kind when I run Outlook on two computers (the .pst file is on the USB key), the path to the Outlook folders must be the same or rules Outlook fails when you try to copy a message from the Inbox to another folder in Outlook e-mail.

    You probably have one of these drives to multi format card on your XP machine who caught a lot of drive letters.  If you don't mind not reconfigure your Outlook rules one last time, I suggest assignment drive letter Z (or something else, towards the end of the alphabet) to your external drive.

    With the drive connected to one of the computers, open disk management:

    • Right click on my computer > manage > disk management
    • Right-click on the drive letter in the upper pane corresponding to the external drive and select "change drive letter and paths".
    • Click the button change
    • Select the new letter drive and OK your way out

    Repeat on the other machine

  • How to convert an array into a cluster of the same type as the one used to build the table previously?

    I have a group of 6 items I need to change in a table for the part of the VI process.  What I can do, but then I need to change in a cluster of the same type to be used elsewhere.  When I change the table in a cluster, I find myself with a cluster of 9 elements, which of course is not compatible!

    I am attaching snapshots of context-sensitive help in the initial cluster, the intermediate table and the final cluster (bad).  Regarding the photos, the length of the 1 d tables and values in their midst are the only subject to change things.

    Please could someone help by suggesting ways to work around this problem.  Thank you

    Please do not post bitmaps by chaning simply .jpg file name extension. Do not change the file type. There is a good reason why the forums software does not bitmaps, and this is because the file sizes are huge.

    To your question: right click on the table of the Cluster service and select 'Size of Cluster' in the context menu to set the size of the cluster of output.

  • All the program icons have the same appearance and open Windows Media Center

    Original title: cannot start a program
    When I click on an any program icon on the Windows 7 Desktop, a window appears with its contents: suggested program to open Windows Media Center. All the programs on the desktop icons have the same appearance.

    Using Word 2007 to get an example:

    I've seen this happen when opening a program via a shortcut on the desktop (for example. LNK file), you are asked what type of program to open it with. After you select theWord (or another program) via the Select a program from a list of programs installedand checkalways use the selected program to open this type of file, the referenced by the shortcut of origin Word document opens in Word as it should.

    The problem is that now all shortcuts (for example. LNK files) on the desktop or in the Explorer will want to be opened by Word and use Word icon to display the shortcut. This is known as a file association and the default icon. The same condition can occur if you have performed these actions on one. JPG or even a. EXE, but the. LNK explanation is much more likely.

    This has happened enough that a small utility was written to cancel the. LNK file association was created. There is a registry hack to do this, but I recommend the utility unLNK for its ease of use.

    A utility to Unassociate Types of files in Windows 7 and Vista
    http://www.Winhelponline.com/articles/231/1/an-utility-to-unassociate-file-types-in-Windows-7-and-Vista.html

    Just use the utility to unassociate the. LNK files. Operating instructions are available on the web page above (the same place to get the utility).

    • If this proposal of solution solves your problem, please go back and mark as answer for others to consider.

Maybe you are looking for

  • Satellite M30-951 does not start

    My laptop does not start. There is a blue screen for a very short while indicating that there is an error in the memory. What type of memory your laptop where might I buy new, I can improve the memory to 2 or 4 GB, which can change the memory chips?

  • Satellite A300-1EC cannot load the OS and restart just /shuts down

    Can you help me with my problem of A300 PSAG0Elaptop. This is the case:before that I can still use my laptop normally without plugging the power cord but when plug the source ca the unit restarts all of a sudden. I charge the battery only when the un

  • error code 39 on Hl Dt - St CD-Rom GCR - 9493 B DVD / CD

    HL-Dt - St CD-Rom GCR - 9493 B DVD / CD Code 39 Message says windows can not load this hardware device driver may be corrupted or missing

  • Question of rectangle selection

    When I use the rectangle selection tool, after the first selection - at least that I remember to click once without slide - I get a second selection. And then the "WARNING: no pixels were selected" WARNING even if there are a lot of pixels there.I do

  • cannot restore images of 1 hour 4 k

    I tried to make a lager 4 k video made first with corrections of different colors in it, but every time I find myself with a file which is loved little that should be. If I try to export the hour video, it gives me this small file. If I export, say,