Operator used when the target list contains different number of expressions

Hi all,
My problem is that, i am having 4 columns in the first select statement, and in the second select 6 columns.
The first 4 columns in the second select are the same(column name) as first select.
But both selects have different criteria.
Can anyone tell me is there any operator in sql, so that i can join these two in a single one.
I have little idea about unions, joins. For using union, the number of expressions should be same in both select statements.

Hi,
you can use UNION and the SQL which has less number of columns you can use dummy columns as subsitute ( in place of columns which are not present in the SQL)
-- SELECT 'first' AS FIRST , 0 as SECOND FROM DUAL;
Thanks

Similar Messages

  • How to handle the records that contain different number of columns

    hi all,
    I have a file (as source data)includes order information like:
    H,P001,Smith,Sunnyvale
    D,P001,PR97623,150,10.99,Ice cream
    D,P001,PR33267,45,32.66,Popcorn
    T,P001
    H,P003,Williams,San Jose
    X,P003,PR23563,19,25.54,Peanuts
    T,P003
    I want to transfer the file record to three target tables,
    the record marked "H" to "Summary" table and sum money of the detail
    the record marked "D" to "Detail" table
    the record marked "X" to "Error" table
    the expect result as below:
    Summary table
    Order_No Customer Address Total_Money
    P001 Smith Sunnyvale 3118.2
    (※3118.2=150*10.99+45*32.66)
    Detail table
    Order_No Prodcut_Id Prodcut_Name Quantity Price
    P001 PR97623 Ice cream 150 10.99
    P001 PR33267 Popcorn 45 32.66
    Error table
    Head Order_No Record_No
    X P003 6
    (※6 is the line no in the file)
    How can I do this in ODI , could anyone give some hints?

    Hi AGUI,
    You can do this by the following way,
    1) create the File datastore for the file with 6 columns
    while creation select the following option file format as Delimited
    record seperator as MS-DOS and field sep as other specify "," in the text box.
    -- check the file datastore maps correctly by view the data.
    2) create the interface int1 for transfer the data from this file to temp table( the temp table should have one more column for getting the line number( it should be the sequence number).
    3) create the another interface int2, in this interafce you need to transfer the data from the[b] temp table to Detail table (use filter for gatting D record.
    4) create the interace int3 transfer the data from the temp table to Summary table. please keep the total_money field as null for this interace
    and use Odi procedure for updating this field with reference of details table.
    5) create interface int4 for transfer the error date by transferinf from temp table to error table.
    Thanks,
    Madha

  • What hardware is in use when i target disk on the computer that is the target?

    Well, i have 2 macs, a 24" Imac and a C2D Mac Mini 1.83.  I´m having some issues on my macmini and i want to troubeshoot it. But to do that i need to know what exacly hardware is in use when the Macmini is on target disk mode and im using it trhu the Imac. Also the other way around the Imac conected on MacMini. Thanks

    Digo_mc wrote:
    In there doesnt say for exemple, that the memory or the processor, video card of what machine will be used for exemple. This is te kinda of information i need.
    Lets say: The Macmini is on target, when i open prograns, say a game, will the macmini process it or the Imac? The memory that will be used, will it be from tha macmini or the Imac.
    if its unkown, or a mixture of both, i cant use target to isolate the problem(s)
    Many Thanks
    My understanding is that the Target machine... in your example the Mac mini... behaves like any external hard drive...
    Thus the processing will be done by the iMac...
    In other words... Think of the Target as an External Drive...
    Cheers,

  • What type of Data target is used when the safety interval is used?

    Hi ,
    what type of Data target is used when the safety interval is used in generic delta in datasource?DSO or cube  or cube?
    Pls explain me ?
    Thanks,
    Nimai

    It's up to your reporting requirement to go for dso or cube..
    I prefer to having staging with DSO and then further reporting on Cube ..
    It's always easier to manage when you have any changes to the cube .. you need not to extract data from R/3 .. if you have dso you can extract directly to cube
    Another thing is -for any reason some of your records got corrupted so you can have full loads to dso which has the overwrite functionality...  and sends delta records to cube. even in cube you can do selective deletion but we have to very careful to avoid double records in next loads
    Edited by: Srinivas on Jul 29, 2010 8:23 PM

  • Can I use the "Find My iPad" app in my MacBook Pro when the iPad has a different Apple ID?

    Can I use the "Find My iPad" app in my MacBook Pro when the iPan has a different Apple ID & password than the MacBook Pro?

    On your Macbook you access Find My iPad via a Web Browser at http://icloud.com
    This will require you to sign on using the Apple ID and password used for the iPad iCloud.

  • TS3274 When viewing pick lists from different web sites my iPad2 selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    When viewing pick lists from different web sites my iPad 2 (safari) selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    With your playhead over the clip in the timeline and that V track's 'track selector' as the only one active...hit the 'f' key.
    This will load the original clip into the viewer at the matching point of the frame in the timeline.
    K

  • RMAN-05001 auxiliary .... conflicts with a file used by the target database

    I can´t recreate my physical standby.
    It worked in the past.
    Now I reinstalled the 3 standbyclients.
    Copied the spfile from the primary - modified the entries and did a rman backup.
    But when issuing the duplicate database command - it comes up with the error above
    SPFILE standyby db:
    *.db_file_name_convert='+DATA/prim/','+DATA/stdy/','+RECOVERY/prim','+RECOVERY/stdy'
    *.log_file_name_convert='+DATA/prim/','+DATA/stdy/','+RECOVERY/prim','+RECOVERY/stdy'
    Starting restore at 15-APR-10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /oracle/stage/33lb65n2_1_1
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/oracle/stage/33lb65n2_1_1 tag=TAG20100415T102434
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:11
    output filename=+REDO1/stdy/controlfile/current.262.716293055
    output filename=+REDO2/stdy/controlfile/backup.262.716293055
    Finished restore at 15-APR-10
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 04/15/2010 10:31:46
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename DATA/prim/datafile/system.262.715097535 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/sysaux.263.715097499 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs3.269.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs2.270.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/example.272.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/users.268.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/sysaux.273.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/undotbs1.271.710521021 conflicts with a file used by the target database+
    RMAN-05001: auxiliary filename DATA/prim/datafile/system.264.710521021 conflicts with a file used by the target database+

    Hi ,
    I feel you are using ASM but still check the below details:
    Cause
    Production and Auxiliary have same directory structure and are running on two different machines. RMAN must be told not check that the target datafiles are sharing the same names as the duplicated files being created. Otherwise, the following errors will be returned:
    RMAN-05001: auxiliary filename /qmaxnt/u04/qmaxntorafiles/table/QMAXAD08_03.dbf
    conflicts with a file used by the target database
    RMAN-05001: auxiliary filename /qmaxnt/u04/qmaxntorafiles/table/QMAXAD08_02.dbf
    Solution
    To implement the solution, please use nofilenamecheck in syntax as follows:
    1. Connect to Target, auxiliary, and rman catalog and
    2. use script as
    run{
    set until time "to_date('2005/09/17 14:00:00','yyyy/mm/dd HH24:MI:SS')";
    allocate auxiliary channel aux1 type 'sbt_tape';
    allocate auxiliary channel aux2 type 'sbt_tape';
    duplicate target database for standby dorecover nofilenamecheck;
    Make sure to use auxiliary type of channel so RMAN restore take place at auxiliary database.
    Thanks,
    Rafi.
    http://rafioracledba.blogspot.com/

  • When the error list is open, my LabVIEW 8.2 slows down dramatically.

    When the error list is open, my LabVIEW 8.2 slows down dramatically.  I am also using a project window and LabVIEW DSC with shared variables.  Has anyone seen this before and is there a fix.
    Thanks,
    Sean
    Message Edited by SeanWat on 01-04-2007 01:47 PM

    While using 7.1 on a very old, slow, broken computer I experienced a slow down while my complex VI was running and my error window was open.  I also experienced a similar slow down when I opened pretty much anything on that computer...
    Are you operating on a very old, slow, and broken computer?  Or perhaps you are experiencing a memory leak?

  • No clickabel title shown when the search result containing .xlsx Office Excel 2010 file

    in sharepoint 2013 search, everything works fine. but there is no tiltle shown when the search result contains xlsx items. and no issue at all on both docx, pptx, and even xls extension, which is lower than office 2010, any ideas?

    Does the April 2015 CU fix that bug? I don't see it written in the CU's description. Regards
    We found out, that it does not fix the problem and so we digged into it a little deeper. First thing is that our
    documents from FileShares without set metadata are those without clickable titles in search results. So one solution might be to start setting metadata for all those documents correctly, but who would want to do that. We would expect the enginge
    to find something as title anyways, i.e. at least the documents name.
    For finding a valubale title out of the documents there is the "MetadataExtractorTitle" component as MappedProperty for the ManagedProperty "Title". Unfourtenatly this component seems to be a little bit bugy. It looks like that in some
    cases it does not correctly return that it couldn't find anything for the document to be used as title.
    Since this component is on pole position in the priority list of "Title" it leads to search results without clickable titles in such cases, where the extractor returns an empty result.
    So what we did is to move MetadataExtractorTitle to the end of the priority list, so the engine at first evaluates the documents properties the classic way. We had to do a IndexReset and a FullCrawl to completely
    apply this workaround. After this we did not get search results without clickable titles anymore. 
    I hope this also helps in your cases.
    You can also get some information about this issue in this blog post: http://consultant.tamjid.com/425/fixed-search-results-not-showing-document-titles/
    Regards

  • How can I sort the target list in debug form.

    If I want to select a procedure/function to debug it is very hard to find it if the package contains a lot of procedures. How can I sort the target list. I did not find anything in the preferences. Thanks.

    Sorry, can't be done. You can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    My suggestion (if you decide to request it): base the order in the dialog on the order inside the navigator tree (location in the source by default, but possible by name or type/name - see tree's context menu).
    Regards,
    K.

  • We are a creative design studio, we need to use apple mac pro server , so we can make more than a different user to use at the same time doing different activities, on different screens, is it possible?what is the max. no. of users that can work efficient

    we are a creative design studio, we need to use apple mac pro server , so we can make more than a different user to use at the same time doing different activities, on different screens, is it possible?what is the max. no. of users that can work efficient.
    Appreciate your support and if possible , how to do this?

    If you want to work with Mac OS X, you need one computer per simultaneous user.
    What you are describing, " Multiple simultaneous logins to a single computer" is not avialable on a regular Mac of any description, unless you decide to use Unix tools instead of Mac OS X.
    Server will happily store files for many, many users and provide them to multiple (up to hundreds) of computers at "near hard Drive" speeds over Gigabit Ethernet. It can make the File Sharing part easy.

  • Oracle Apps.XML reports ending with warning when the report output contains

    Hi I have XML reports. When we run these reports as concurrent program through Oracle Apps. window and if the report output contains special characters(like Chineese data) in between of English, then the concurrent program is ending with warning. If we remove special characters then it is working fine or when we run the report query directly from backend it is working fine.
    We are importing this data from legacy system into oracle apps. and we can't control these characters or decode them with some other charactes.
    Can any one guide me how to get the XML report output with special characters.
    Thanks in advance.
    Chandra Babu Lankipalli.

    Hi Hussein,
    The concurrent program is ending with Warning. It is unable to publish output file.
    For the same when we remove special characters and run the program it is completing and generating the
    output. The log fine is as follows when the data file contains special characters.
    Custom Application: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXFA_AR_WIN_EXCEPTION module: XXFA AR Wintrack Customer Interface Exception Report
    Current system time is 23-MAR-2009 05:33:19
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_CUST_ERRORED='3'
    P_CUST_SUCCESS='0'
    P_CUST_TOTAL='3'
    P_REQUEST_ID='4661283'
    P_USER_NAME='SYSADMIN'
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /d01/oracle/fadevora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /d01/oracle/fadevora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Report Builder: Release 6.0.8.25.0 - Production on Mon Mar 23 05:33:19 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 4661284 on node FAHQSNA01SFTD03 at 23-MAR-2009 05:33:20.
    Post-processing of request 4661284 failed at 23-MAR-2009 05:33:21 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 23-MAR-2009 05:33:21
    Thanks in advance.
    Chandra

  • Does the iphone cpu frequency change when the cpu load is different?

    Does the iphone cpu frequency change when the cpu load is different, or it does not change, stay a fixed frequency? if it changes, how can i get the realtime cpu frequency?if anyone knows,please tell me, thank you so much!!!

    As a general, historical statement Tonefox is correct.  For certain particular cpus woodmeister is correct.  Cpus have historically been single frequency units, though over-clocking has been done for several years.  Doing so pushes the cpu beyond its guaranteed speed, but has tended to work since most cpus from quality vendors will actually operate at higher speeds.  The manufacturer just does not guarantee the results...remember the Pentium fiasco in the early years of that chip?  Today manufacturers are ceertifying particular product lines for over-clocking on a periodic basis.  And that is what dynamic clocking really is, over-clocking but not at a constant clock speed as has been done in the past.
    Much of the silicon on the market will function at higher clock rates, the only question is does the maker guarantee the accuracy and performance at those clock rates.

  • Sequence of the transaction list look different in ECC6.0 user menu

    The sequence of the transaction list look different in ECC6.0 than SAP 4.6c(User Menu & SAP Menu).Is there any provision to make similar view as of SAP 4.6c in ECC6.0.
    Thanks
    Manoj

    not that i know of. and: you wouldn't want to do that: you'll be missing all the good new parts. for more information on new transactions, deleted transactions etc. make sure your read the release notes.

  • How can I visit the performance tab when the target DB is down?

    Hi, All:
    I wonder if it is possible to visit the performance tab when the target DB is down. I thought it should be possible. But whenever I first click the performance tab, I will be asked to enter the user/passwd for the target db(I have set the preferred credentials).
    Furthermore, is it possible to analyze the history sql/performance if the target db is not startup? and how can I do it?
    Thanks in advance

    I have seen other postings by the same ID and my suggestion is that you have a look at the Enterprise Manager Documentation Library. After that, you can ask questions relating to subjects you cannot solve with the documentations.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=21

Maybe you are looking for

  • Ipad Screen

    my new ipad Screen got a little problem ,the lower left corner of the color distortion ,It's bad ,how can  I deal with this ??

  • MacBook Air 13" Display

    why dose the macbook air have intel hd 5000 instead of iris pro 5200 which is better?!?

  • LSI Megaraid 9260/9261 driver issue on Solaris x86-64

    We have several x4170 M2 machines with either the LSI 9260 or 9261 megaraid cards (same driver) where SUN uses the "SUNWmr_sas" driver, and you can download the latest driver from LSI website as "mr_sas". Using SUN Solaris 10 update 9 with latestl pa

  • HR User, REST example - network access denied by access control list (ACL)

    Hi, I am new to APEX and am running the 'Oracle Developer Days' vm. I'm logged into APEX as the default HR/oracle account and I've been following the 'Creating and Using a RESTful Web Service in Application Express 4.2' training video, however when I

  • File Write In Batches Is Not Consistent.

    Hi, Could you please explain why File Write in batches behaving like this: http://lksoablogs.blogspot.com/2012/01/file-write-in-batches-is-not-consistent.html Thanks.