Join different fields with same length in query (SQ02)

Hello,
Although i looked up all titles, i couldnt find a solution for my problem.
Im making a query for mara marc and mbew tables.
I joined these tables and i see the outputs, no problem by now.
But now i want to equalize mbew-bwkey and marc-werks.
both of these fields are char 4.
But when i try to join it from SQ02 i cant get correct result and i couldnt handle it from coding options either.
i will give an example about what i want :
the output i get :
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1011
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1013
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1031
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1032
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1033
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1034
the output i want to get: ( marc-werks(1011) = mbew-bwkey(1011) i dont want to see other results.
150114     1011     202     FERT     010001000200020002     ELT     0010     ND     0201     001     EX     1011
What do you suggest?
Thanks a lot.

Thanks Tony for your reply. Here are my answers.
Are we talking a large amount of inserts?
YES
What is the autogrowth settings for the database files on the two Servers?
Autogrowth by 10%
The Server you are having an issue with, are the any triggers on the Tables?
No.
Is there a background or other trace running on the slow Server that could be impacting performance?
Yes, we are running a monitoring tool to check the performance of the load.
Is there another database on the slow Server causing issues?
No.
This could be a hardware issue; have you use perfmon to see if there are any disk queues?
We will check with our DBA on this.
What is the Raid Configuration?  Are the files on a single spindle?  If so what is the fragmentation state of any single spindle volume?
There is no Rain Configuration. Its a Windows Azure A7.
Are you automatically updating statistics on the slow Database?
Yes.
Is the Anti Virus Software on the Slow server scanning the data files?
Yes, but not on the database level.
Regards,
kranthi.

Similar Messages

  • Can I run 2 different domains with same name but on 2 different machines?

    I am trying to setup 2 domains with same name (sharedcds1) on 2 different machines (Machine1 and Machine2).
              When I start the weblogic managed server 1 (sharedcds1managedserver1) on Machine2, it throws an error saying it has some conflicts with the managed server 1 running on Machine1. How did the managed server of one machine know about the other server. Can I run 2 different domains with same name but on 2 different machines?
              Here is the error in the log -
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 4596206652609838848S:130.170.61.153:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              <Jun 14, 2005 10:53:29 AM EDT> <Error> <Cluster> <BEA-000123> <Conflict start: You tried to bind an
              object under the name weblogic.transaction.coordinators.sharedcds1managedserver1 in the JNDI tree.
              The object from 8842351474821025197S:130.170.61.154:[9505,9505,-1,-1,9505,-1,-1,0,0]:sharedcds1:s
              haredcds1managedserver1 is non-clusterable, and you have tried to bind more than once from two or m
              ore servers. Such objects can only be deployed from one server.>
              Thanks
              Satish

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

  • Requesting license for two different ssystem with same SID

    Hello,
    Is it possible to request 2 license for two systems with same SID. The systems are on different machines and their HW key are different but both have same SID. While requesting license, will it permit to create 2 different license with SAME SID.
    Regards
    Deb

    Hi Anil,
    The one for which the license is already requested is the main development portal with SID EP2. I have installed one local version of SAP EP with the same SID EP2. Now we need a license for the second system.
    If we change the HW key of the original license which is already applied in the main development portal under SMP and apply for a new license for the new local version, can it have any future implications, if any.
    What is the best way to deal with the situation. Is there a full proof way to change the SID of the EP system, which I can try in the local EP system.
    Regards
    Deb

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • Getting all VARCHAR fields with string length different then x

    Hello,
    I am trying to get from a table all the rows which contain in a certain varchar field a string length different than x (5 i.e.):
    varchar field
    treds
    fd <-
    grgrt
    sdfsdfsdf <-
    fdsds
    the marked rows will been given out.
    Thanks!

    Term, the Oracle SQL manual contains documentation on the Oracle functions. Most of the functions can be classified as either character functions, number (math) functions, date functions, and conversion functions.
    If you are going to work with Oracle you will benefit from looking on the list of available functions to become familiar with what is available.
    HTH -- Mark D Powell --

  • Urgent!!  need help to bounce all the tracks individually with same length.

    i have a logic project with 20 (audio/Midi) tracks
    and i want to bounce all the tracks individually...
    one way i find is to solo every track and bounce the master everytime...
    and other way i found was something called export all audio tracks but when i try that all tracks have different length.
    i want all the tracks to be of same length and same size..
    can anybody help me with that asap....
    thanx in advance
    boommmm
    null

    zerodb wrote:
    even i want to know how to render multiple tracks at once using the same start point for all.. please someone.. if you're acquainted with this process in logic, do Help! thanx
    File>Export>Export All tracks as Audio Files
    This will export all tracks from bar 1, beat 1.
    I too, am curious why the OP needs his tracks to be the same length. Using the Export feature insures all tracks start from the very beginning (i.e., the same starting point), which is what you want and need when moving the tracks to another DAW.
    The length of the track is of no consequence in this example. It plays through the song, until that track is over, like a guitar solo that appears in the middle of a song, but doesn't play past that point.
    Unless I'm missing something?

  • How to map different fields to same repeating/Same field in XSD

    Hi,
    I am using the Transform activity in a BPEL Process, my source is a Database table and the target is the and XSD file.
    Now the requirement is to map 3 different fields from source to a single field in the XSD.
    In the final xml file the tag name would be the same and will repeat 3 times but with different value for attribute and values with 3 diiferent columns/fields from database.
    How can achive this kind of mapping. Do i need to use some functions etc for that? please guide
    regards

    To answer "What does "<ns1:Code>" and "<ns1:Id>" indicate? are they fields in the DB table or XSD Schema?".
    The transformation is from Source(database) to target(an XML file).
    "<ns1:Code>" and "<ns1:Id>" are tags/fields in the outbound XML.
    <dbcolumn1>,<dbcolumn2> and <dbcolumn3> are database columns.
    I have removed the "ns1:" and also the Condition to make the code easy to read. Hope it helps. You could remove the condition and see how it goes when trying out in your project.
    <xmltag1_non repeating>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 1 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn1"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 2 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn2"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    <xsl:choose>
         <xsl:when test="SOME CONDITION" >
         <xml_tag2_repeating>
              <xsl:if test="SOME CONDITION">
                   <Code>
                   <xsl:value-of select="string(&quot;SOME VALUE 3 &quot;)"/>
                   </Code>
              </xsl:if>
              <xsl:if test="SOME CONDITION">
                   <Id>
                   <xsl:value-of select="dbcolumn3"/>
                   </Id>
              </xsl:if>
         </xml_tag2_repeating>
         </xsl:when>
    </xsl:choose>
    </xmltag1_non repeating>

  • Different cpuspeednw on two different hosts with same cpu config. Why?

    Hi,
    there are two hosts.
    They are different, but have same CPU configuration (I guess it from the output below).
    Host1: Solaris 10, 4 cpu, 4 core in each cpu.
    psrinfo -v
    Status of virtual processor 0 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:23.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Status of virtual processor 15 as of: 03/04/2010 08:57:45
    on-line since 12/25/2009 11:03:25.
    The i386 processor operates at 2133 MHz,
    and has an i387 compatible floating point processor.
    Host2: CentOS 5.3. Also 4 cpu, 4 cores in each spu
    cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : 2133.413[b]
    cache size : 2048 KB
    physical id : 0
    siblings : 4
    core id : 0
    cpu cores : 4
    apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca c
    mov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constan
    t_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4270.09
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    processor : 15
    vendor_id : GenuineIntel
    cpu family : 6
    model : 15
    model name : Intel(R) Xeon(R) CPU E7320 @ 2.13GHz
    stepping : 11
    cpu MHz : [b]2133.413
    cache size : 2048 KB
    physical id : 6
    siblings : 4
    core id : 3
    cpu cores : 4
    apicid : 27
    fpu : yes
    fpu_exception : yes
    cpuid level : 10
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
    bogomips : 4266.82
    clflush size : 64
    cache_alignment : 64
    address sizes : 40 bits physical, 48 bits virtual
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    Edited by: user10944480 on Mar 14, 2010 7:22 AM
    Edited by: user10944480 on Mar 14, 2010 7:24 AM

    user10944480 wrote:
    QUESTION:
    Host1 (Solaris) has cpuspeednw = 700
    Host2 (CentOS) has cpuspeednw = 1700
    WHY?
    What should I do to find out why this is happening?
    The CPUSPEEDNW is measured in "millions of Oracle operations per second" - but we don't know what "operation" Oracle is using for measuring. Since you have two difference operating systems, it's possible that the "operation" that Oracle uses is one that makes use of the "OSD" (operating system dependant) code and has a very different code path on the two machines that results in a very different speed of completion.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    +"Science is more than a body of knowledge; it is a way of thinking"+
    +Carl Sagan+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hiding fields with same name

    Hi,
    I have a form built in ADOBE LC Designer ES. The form has multiple pages. I have some fields with the same name and distributed across subforms. Is there a way I can hide the fields using the common name or do I have to refernece each and every field to hide it?
    Thanks,
    Nakul

    Is the condition for hiding the fields the same in every case, i.e. a checkbox being checked? If it is, you could put the same script in each field:
    if (checkbox1.rawValue == 1){
         this.presence = "hidden";
    You would still have to either paste the script into each field or make it a function that gets referenced in each field, but at least it would be a copy - paste rather than having to type out the path to each field.

  • Lightroom reinstallation on different mac with same serial number.

    im using lightroom on my mac air.
    and im planning to buy a mac pro soon.
    in that case, is it possible to use lightroom on my new mac pro with the same serial numbers that im using now on mac air?
    (im not going to use lightroom on mac air)

    Adobe allows two installations of Lightroom on different computers with the proviso that only one can be used at any one time. (There is no on-line activation/de-activation process, only your honesty.)
    Just install on the new mac pro with the same serial number.
    Note: If the Mac Air has an "update" version installed (for example -you upgraded from LR3 to LR5) then you will need both Serial Numbers for LR3 & the LR5-update, to install on the new Mac pro.

  • SQVI: Joining Different Field Names

    Hey all,
    Is it possible to join two fields that are not of the exact same technical name?
    We are trying to join tables KSSK and WLK1.  We want to link the assortment (FILIA in WLK1) to the assortment object (OBJEK in KSSK).
    Would this be possible?
    Thank you,
    Ryan

    Well...WLK1 is empty on my system, so it's hard to tell...
    Maybe I will do it like this...Select data from KSSK first, and the LOOP it taking only 10 characters from field OBJEK...For each iteration of the LOOP I will do a SELECT SINGLE of WLK1...If there's no data, then that registry should be gone...and so on...
    Of course, not the best solution...But can't seem to find anything else...
    Greetings,
    Blag.

  • Create a different db with same db_name and now cannot start apex

    Hi All
    we create a db in the same box with my old db.
    The purpose is we need to change the default character set to unicode.
    And How do we start apex?
    Is there a command line tool to start apex?
    -Thanks for the help!

    Hi umesh,
    Thanks for your help.
    That means we can set up two database with same db_name and domain is system. the duplicate DB (second DB) does not affect primary DB in system and makes a confusion for client application? suppose i use TNS to control each DB by IP .
    also, can we use db_link to link two differnet OS plastform( window 32 bit and linuc 64 bit redhat with service name) oacle version is 10 g too?
    I try to configure a TNS in primary DB tnaname file but fail with TNS : no listener ora-12541 during connect linux DB server.
    But I copy this TNS to new window 32 bit PC with oracle client. it works to link to linux db services.
    which issue?
    Thnak for help
    JIM
    Edited by: user589812 on Jul 3, 2009 9:00 AM

  • Error to select data field of same length and same type.

    Hi,
    I have to select data from VBRK , VBRP and then from table CE4UCA1_ACCT based on the condition
    AKTBO   IN SO_AKTBO           AND
    PAOBJNR = LT_VBRK_VBRP-POSNR  AND
    PASUBNR IN SO_RKBNR           AND
    PRCTR   IN SO_PRCTR.
    So while coding it gave a syntax error saying that PAOBJNR & POSNR need to be of same length. To solve this I chagned the decalaration of POSNR from "POSNR TYPE POSNR" to "POSNR TYPE RKEOBJNR" and this corrected the error.
    Now I have to select data from KONV table based of the condition :-
    Get data from KONV table.
      select knumv
             kposn
             stunr
             kwert
         into table lt_konv
         from konv
         for all entries in LT_VBRK_VBRP
         where knumv = LT_VBRK_VBRP-knumv and
               kposn = LT_VBRK_VBRP-posnr and
               stunr = '950'.
    Here again it is throwing syntax error that LT_VBRK_VBRP-posnr should be of same type and same length. So please guide me how to solve this type of situation.
    Thank You,
    SB.

    Hi,
    select knumv
    kposn
    stunr
    kwert
    into table lt_konv
    from konv
    for all entries in LT_VBRK_VBRP
    where knumv = LT_VBRK_VBRP-knumv and
    ***--- Change to
    *kposn = LT_VBRK_VBRP-kopos and*
    stunr = '950'. For 4.6c system
    OR
    Pass VBAK-KNUMV to KONV-KNUMV
    VBAP-POSNR to KONV-KPOSN
    Edited by: Raj on Jun 17, 2008 2:27 AM

  • Problem with different resultset with same data and same query in Oracle 8.1.7 and 9i

    Hello,
    I have been using this query in oracle 8.1.7
    SELECT
    ID,
    AREA_NO
    FROM MANAGER_AREA MGR
    WHERE COMPANY_ID = :id AND
    (:value < (SELECT COUNT(ROWID)
    FROM MANAGER_WORK MW
    WHERE MW.AREA_ID = MGR.ID AND
    (MW.END_WORK IS NULL OR MW.END_WORK >= SYSDATE)))
    order by AREA_NO;
    In the above query I want to see rows from MANAGER_AREA table depending upon date criteria in the table MANAGER_WORK and also upon the parameter :value i.e if I pass a value as 0 I get to see records for which their is atleast 1 record in MANAGER_WORK with the date criteria and if I pass -1 then I get all the records because minimum value that count(*) would give is 0. The resultset was as expected in 8.1.7.
    A couple of days back I installed PERSONAL 9i to test for testing the basic functionality of our program with the same data. This query fails and irrespective whether I pass -1 or 0 it returns me same dataset which I would have got in case if I pass 0.
    I do not know whether this is a bug that has got introduced in 9i. Can anybody help me with this problem. It would be difficult for me to change the parameter send to this query as the Query is called from many different places.
    Thanks in advance
    Amol.

    I cannot use a Group by and a having statement over here. The problem with 'Group by' and 'having' clause is If I have to make a join between the two tables. When I use join then I get only rows that are linked to each other in the table.
    If I use outer join to solve that problem then I have to take in consideration the other date condition. My previous query use to virtually discard the corelated query result by using -1 as the value. This will not happen in the join query.
    Amol.

  • Select data from a table and a view: field with same content and different type

    hi all,
    I need data from a table hrp1001 and a view V_USR_NAME. What they have in common are the content of the fields SOBID and BNAME .
    It will be easier if those fields add a same type but they dont.
    Any suggestions for a workaround?
    Thanks

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

Maybe you are looking for

  • Time Machine not backing up /home

    I understand that Leopard did a silly thing with the /home directory, and I've fixed it so that /home is visible. However, it doesn't look like Time Machine will acknowledge that it exists. I have files under /home that correspond to a production web

  • Error in tablibs ..Any help on this please

    hi, I am getting the following error when i try to run the below code .. I put all the files in corresponding folders and i am getting the following error when i run Test.jsp Error: 500 Location: /Test.jsp Internal Servlet Error: org.apache.jasper.co

  • Replace Product Poplets lightbox with another jquery lightbox

    Hello, My client would like to disable the default lightbox that comes with the additional product poplet images and use a different jquery lightbox.  I am just wondering how I can disable the poplet lightbox and use another jquery lightbox. I instal

  • How do archive all messages over 5yrs old for easy access if needed

    My Thunderbird folders are very large after 10 years and I have over 100 sub-folders. I need to keep all messages but would like to keep the oldest, say over 5 years old, separate as I rarely need to see them again. Archiving would make navigation ea

  • Actual work hours shown as Overtime after time evaluation

    User has entered 8 work hours but out of it 6.5 hrs a are shown as Overtime after time evaluation. Please help