Problem in joining results

hi experts,
i am newbie, please help me with my sql query
table1
id X
1 1
2 1
3 1
1 1
3 1
table2
id Y
1 1
2 1
4 1
5 1
2 1
required output
id X Y
1 2 1
2 1 2
3 2 0
4 0 1
5 0 1
my following query produces wrong output, please help me to correct/rewrite it
select id, count(X) from table1 group by id, X
union
select id, count(Y) from table1 group by id, X
many thanks
Raj

This forum is not for SQL. Post your thread into PL/SQL
Hope you will understand.

Similar Messages

  • Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

    Hello Guys,
    I am creating resultsource from central admin. If I create it from central admin it works fine. But if I am creating result source from power shell scripts it shows me following error message.
    An exception of type 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException' occurred in Microsoft.Office.Server.Search.dll but was not handled in user code
    Additional information: Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    Any suggestion ?
    Thanks in Advance.

    Hi,
    Please provide more specific information about the issue. What type of content source you tried creating via powershell?
    Make sure you are using the approproate permission and search service application.
    Here is the reference for creating content resource via script:
    http://technet.microsoft.com/en-us/library/ff607867(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Problem in join with hrp1000 and hrp1001???

    Hi all, I am pasting code sAmpLE, i am having problem with join, without join the query is working. Help out.
    IF per_no IS NOT INITIAL.
        SELECT objid sobid objid INTO TABLE lt_st_p1
          FROM hrp1001 WHERE otype EQ 'P' AND objid IN per_no
          AND plvar EQ lv_plan_version AND rsign EQ 'B' AND relat EQ '008' AND istat EQ '1'
           AND subty EQ 'B008' AND sclas EQ 'S'.
       LOOP AT lt_st_p1 INTO ls_st_p1_tem.
         ls_st_p1_tem-sobid1 = ls_st_p1_tem-pernr.
         MODIFY lt_st_p1 FROM ls_st_p1_tem TRANSPORTING sobid1.
       ENDLOOP.
        check lt_st_p1 is not INITIAL.
        SELECT h1objid h1sobid h0~stext INTO TABLE lt_st_p1_temp
          FROM hrp1001 AS h1 JOIN hrp1000 as h0 on ( h1objid eq h0objid and h1rsign eq h0otype )
          FOR ALL ENTRIES IN lt_st_p1
          WHERE h1otype EQ 'O' AND h1sobid = lt_st_p1-sobid
          AND h1plvar EQ lv_plan_version AND h1relat EQ '003'
          AND h1rsign EQ 'B' AND h1istat EQ '1' AND h1subty EQ 'B003' AND h1sclas EQ 'S'
    I want to get the stext of the braNCH. THE lt_st_p1 is having the emp id and position. and i want to get branch , position and stext( of branch) in lt_st_p1_temp by the help of join. I am implementing this qauery, but is getting subrc 4, what is the problem in this , please rectifuy if any problem found ?

    You may want to change:
    check lt_st_p1 is not INITIAL.
    to
    check lt_st_p1[] is not INITIAL.
    This depends on whether or not the internal table was defined with a header line.
    Rob
    Edited by: Rob Burbank on Jan 2, 2012 2:45 PM

  • Problem in joining tables

    Hi All,
    Here I am facing the problem in Joining table I have S031,s032,makt,marc,I need a field ATWRT field from CAWN table,I did't find any link for this above from tables, any one please help me how to find out.
    REPORT  ZMMTEST.
    tables:s031,s032,makt,marc.
    DATA : BEGIN OF itab1 OCCURS 0,
           matnr TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0,
           matnr like makt-matnr,
           maktx like makt-maktx,
           END OF itab2.
    DATA : BEGIN OF itab3 OCCURS 0,
           matnr TYPE marc-matnr,
           werks type marc-werks,
           ekgrp type marc-ekgrp,
           END OF itab3.
    DATA : BEGIN OF itab4 OCCURS 0 ,
           matnr   TYPE s032-matnr,
           lgort   TYPE s032-lgort,
           werks   TYPE s032-werks,
           mbwbest type s032-mbwbest,
           wbwbest type s032-wbwbest,
           END OF itab4.
    data : begin of itab5 occurs 0,
          objek   type ausp-objek,
           atwrt   type cawn-atwrt,
           end of itab5.
    DATA : BEGIN OF itab_final1 OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           END OF itab_final1.
    DATA : BEGIN OF itab_final OCCURS 0,
           matnr      TYPE s031-matnr,
           lgort      TYPE s031-lgort,
           werks      TYPE s031-werks,
           spmon      TYPE s031-spmon,
           magbb      type S031-magbb,
           wagbb      type S031-wagbb,
           azubb      type S031-azubb,
           aagbb      type S031-aagbb,
           maktx      TYPE makt-maktx,
           ekgrp      type marc-ekgrp,
           mbwbest    type s032-mbwbest,
           wbwbest    type s032-wbwbest,
           atwrt      type cawn-atwrt,
           END OF itab_final.
    select-options:s_matnr for s031-matnr.
    start-of-selection.
    select matnr lgort werks spmon magbb wagbb azubb aagbb
            from s031 into  table itab1
            where matnr in s_matnr.
    if not itab1[] is initial.
        select matnr maktx from makt into table itab2 for all entries in itab1 where matnr = itab1-matnr.
    if not itab2[] is initial.
       select matnr werks ekgrp from marc into table itab3 for all entries in itab2 where matnr = itab2-matnr.
    if not itab3[] is initial.
       select matnr werks mbwbest wbwbest from s032 into corresponding fields of table itab4 for all entries in itab3 where matnr = itab3-matnr.
    *if not itab4[] is initial.
       select atwrt from cawn into corresponding fields of table itab5.*
         endif.
       endif.
    endif.
    endif.
    end-of-selection.
      loop at itab3.
       itab_final-matnr = itab3-matnr.
       read table itab2 with key matnr = itab3-matnr.
       if sy-subrc = 0.
        itab_final-maktx = itab2-maktx.
       read table itab1 with key matnr = itab2-matnr.
       if sy-subrc = 0.
        itab_final-lgort = itab1-lgort.
        itab_final-werks = itab1-werks.
        itab_final-spmon = itab1-spmon.
        itab_final-magbb = itab1-magbb.
        itab_final-wagbb = itab1-wagbb.
        itab_final-azubb = itab1-azubb.
        itab_final-aagbb = itab1-aagbb.
      endif.
       endif.
       itab_final-ekgrp = itab3-ekgrp.
      read table itab4 with key matnr  = itab3-matnr.
      if sy-subrc = 0.
      itab_final-mbwbest = itab4-mbwbest.
      endif.
    itab_final-wbwbest = itab4-wbwbest.
      append itab_final.
      clear itab_final.
      endloop.
    WRITE: /2 'material', 23 'storagelocation',29  'plant',35 'date',44 'val.stock.issue',66 'val.stock.issue.value',86 'no.of.stock.receipts',97 'no.of.stock.issues',150 'material.des', 160 'pur.group',190 'stock.val',210 'stock.quan'.
      ULINE.
      loop at itab_final.
      WRITE: /2 itab_final-matnr, 23 itab_final-lgort,29  itab_final-werks,35 itab_final-spmon,44 itab_final-magbb,66 itab_final-wagbb,86 itab_final-azubb,97 itab_final-aagbb,
               150 itab_final-maktx, 160 itab_final-ekgrp,190 itab_final-wbwbest,210 itab_final-mbwbest,itab_final-atwrt.
    ENDLOOP.
    Thanks&regds,
    Sree.

    Hi sree,
    take join between s031-sptag ,ausp-datuvthen fetch records based on this condition.(itab1)
    After retrieve records based on join condition between
    ausp-atinn,ausp-adzhl and cawn-atinn,cawn-adzhl.(itab2)
    Retrieve records using for all entries bet first join condition and second join condition.
    use for all entries between itab1 and itab2.
    it will work surely.
    reaward points

  • Problem in Final Result in PL/SQL

    Dear All,
    I have a problem in the final output of PL/SQL. I am using cursor and one SQL statement. Following is the complete procedure. First select after BEGIN inserts values in one table and that is fine. When second SQL is called by CURSOR while updating the table again I am having overlapped values. There seems some logical error. Would appreciate if some one help in this regard where is the issue and how to resolve that?
    Thanks
    CREATE OR REPLACE PROCEDURE P_PhotoCap_Report
                                               IS
      Local variable declaration.
          v_locationcode  VARCHAR2(4);
          v_day_0         Number(10):=0;
          v_day_1         Number(10):=0;
          v_day_2         Number(10):=0;
          v_day_3         Number(10):=0;
          v_day_4         Number(10):=0;
          v_day_5         Number(10):=0;
          v_day_6         Number(10):=0;
          v_day_7         Number(10):=0;
          v_day_8         Number(10):=0;
          v_day_9         Number(10):=0;
          v_day_10        Number(10):=0;
          v_day_11        Number(10):=0;
          v_day_12        Number(10):=0;
          v_day_13        Number(10):=0;
          v_moredays      Number(10):=0;
          v_diff          VARCHAR2(5);
          v_daily_enrol   Number(10):=0;
          v_sum           Number(10);
          v_average       Float(10);
          CURSOR c_insert_values IS
                 SELECT locationcode
                 ,decode(length(to_char(TRUNC(enrol_date) - TRUNC(photo_date))),1,to_char(TRUNC(enrol_date) - TRUNC(photo_date)),'>13')
                 , COUNT(*)
                 FROM track_id
                 WHERE TRUNC(enrol_date) = TRUNC(SYSDATE-1)
                 GROUP BY LOCATIONCODE, decode(length(to_char(TRUNC(enrol_date) - TRUNC(photo_date))),1,to_char(TRUNC(enrol_date) - TRUNC(photo_date)),'>13');
       BEGIN
             INSERT INTO reporting.photodate_report (locationcode, locationname, total_enrol)
                SELECT a.locationcode, (trim(b.locationname)||' '||b.DESCRIPTION),  count (*)
                FROM track_id a, location b
                WHERE  to_date(a.enrol_date,'DD/MM/rrrr') = trunc(sysdate-1) AND a.locationcode = b.locationcode
                GROUP BY a.locationcode, (trim(b.locationname)||' '||b.DESCRIPTION);
             commit;
       OPEN  c_insert_values;
       LOOP
             FETCH c_insert_values into v_locationcode, v_diff, v_daily_enrol;
             EXIT WHEN c_insert_values%notfound;
             CASE
                WHEN v_diff = '0'   THEN v_day_0 := v_daily_enrol;
                WHEN v_diff = '1'   THEN v_day_1 := v_daily_enrol;
                WHEN v_diff = '2'   THEN v_day_2 := v_daily_enrol;
                WHEN v_diff = '3'   THEN v_day_3 := v_daily_enrol;
                WHEN v_diff = '4'   THEN v_day_4 := v_daily_enrol;
                WHEN v_diff = '5'   THEN v_day_5 := v_daily_enrol;
                WHEN v_diff = '6'   THEN v_day_6 := v_daily_enrol;
                WHEN v_diff = '7'   THEN v_day_7 := v_daily_enrol;
                WHEN v_diff = '8'   THEN v_day_8 := v_daily_enrol;
                WHEN v_diff = '9'   THEN v_day_9 := v_daily_enrol;
                WHEN v_diff = '10'  THEN v_day_10 := v_daily_enrol;
                WHEN v_diff = '11'  THEN v_day_11 := v_daily_enrol;
                WHEN v_diff = '12'  THEN v_day_12 := v_daily_enrol;
                WHEN v_diff = '13'  THEN v_day_13 := v_daily_enrol;
                ELSE v_moredays := v_daily_enrol;
             END CASE;
              v_sum := (v_day_0)+(v_day_1)+(v_day_2)+(v_day_3)+(v_day_4)+(v_day_5)+(v_day_6)+(v_day_7)+(v_day_8)+
                          (v_day_9)+(v_day_10)+(v_day_11)+(v_day_12)+(v_day_13);
           v_average := ((0*v_day_0)+(1*v_day_1)+(2*v_day_2)+(3*v_day_3)+(4*v_day_4)+(5*v_day_5)+(6*v_day_6)+(7*v_day_7)+(8*v_day_8)+
                              (9*v_day_9)+(10*v_day_10)+(11*v_day_11)+(12*v_day_12)+(13*v_day_13))/v_sum;
             UPDATE PHOTODATE_REPORT a
             SET    a.day_0 = v_day_0,
                    a.day_1 = v_day_1,
                    a.day_2 = v_day_2,
                    a.day_3 = v_day_3,
                    a.day_4 = v_day_4,
                    a.day_5 = v_day_5,
                    a.day_6 = v_day_6,
                    a.day_7 = v_day_7,
                    a.day_8 = v_day_8,
                    a.day_9 = v_day_9,
                    a.day_10 = v_day_10,
                    a.day_11 = v_day_11,
                    a.day_12 = v_day_12,
                    a.day_13 = v_day_13,
                    a.moredays = v_moredays,
                    a.avg = v_average
              WHERE a.locationcode = v_locationcode;
          END LOOP;
          commit;
          CLOSE c_insert_values;
      END;Edited by: BluShadow on 15-Mar-2011 09:44
    added {noformat}{noformat} tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    tis is a douplication of Problem in Final Result in PL/SQL

  • AP 2700 - 2 MAC addresses - problem with joining to the WLC

    Hi,
    I had a problem with joining my new AP 2700 to the controller. I've found workaround but I would like to ask you if you know if this behavior is a some kind of bug or maybe feature :)
    I have DHCP server which assigns IP address base on the binding MAC address with the IP address. Without binding, IP won't be assigned so I added MAC address from the AP sticker (MAC and SN number is on the sticker at the back of each AP) to the DHCP, connected AP to the switch port which was configured exactly the same way like other ports on this switch where older AP are working fine and.... nothing. IP address was not assigned. There was no DHCP request in the DHCP server logs.
    During the investigation I've found that AP present 2 MAC addresses on the switch interface:
    switch#sh mac address-table interface fa1/1
    Mac Address Table
    Vlan Mac Address Type Ports
    11 58f3.54c1.2cb3 DYNAMIC Fa1/1
    11 58f3.54c1.2cb4 DYNAMIC Fa1/1
    The first one (58f3.54c1.2cb3) is a "sticker" MAC address but the second one (58f3.54c1.2cb4) is something new. Looking in to the DHCP logs I've found log that this second MAC address (58f3.54c1.2cb4) tried to get IP address but it was not possible because this MAC was not binding with any IP address so DHCP server refuse. I added this second MAC (58f3.54c1.2cb4) to the DHCP server, AP get IP address, join to the WLC, download software, reboot and ... this MAC address disappear.
    switch#sh mac address-table interface fa1/1
    Mac Address Table
    Vlan Mac Address Type Ports
    11 58f3.54c1.2cb3 DYNAMIC Fa1/1
    Software I had on the AP before joining to the WLC was:
    Version :
    Cisco IOS Software, C2700 Software (AP3G2-RCVK9W8-M), Version 15.2(4)JB5, RELEASE SOFTWARE (fc1)
    now I have (after downloaded from the WLC)
    Version :
    Cisco IOS Software, C2700 Software (AP3G2-K9W8-M), Version 15.2(4)JB6, RELEASE SOFTWARE (fc1)
    Do anyone know what happen?

    (WLC1) >show sysinfo
    Manufacturer's Name.............................. Cisco Systems Inc.
    Product Name..................................... Cisco Controller
    Product Version.................................. 7.6.130.0
    Bootloader Version............................... 1.0.20
    Field Recovery Image Version..................... 7.6.95.16
    Firmware Version................................. FPGA 1.7, Env 1.8, USB console 2.2
    Build Type....................................... DATA + WPS
    System Name...................................... WLC1
    System Location..................................
    System Contact...................................
    System ObjectID.................................. 1.3.6.1.4.1.9.1.1069
    Redundancy Mode.................................. Disabled
    IP Address....................................... 10.10.10.10
    Last Reset....................................... Software reset
    System Up Time................................... 25 days 2 hrs 53 mins 5 secs
    System Timezone Location.........................
    System Stats Realtime Interval................... 5
    System Stats Normal Interval..................... 180
    Configured Country............................... US - United States
    Operating Environment............................ Commercial (0 to 40 C)
    Internal Temp Alarm Limits....................... 0 to 65 C
    Internal Temperature............................. +44 C
    External Temperature............................. +22 C
    Fan Status....................................... OK
    State of 802.11b Network......................... Enabled
    State of 802.11a Network......................... Disabled
    Number of WLANs.................................. 6
    Number of Active Clients......................... 25
    Burned-in MAC Address............................ XX:XX:XX:XX:XX:XX
    Power Supply 1................................... Present, OK
    Power Supply 2................................... Present, OK
    Maximum number of APs supported.................. 25
    (WLC1) >show time
    Time............................................. Thu Apr 9 13:51:00 2015
    Timezone delta................................... 0:0
    Timezone location................................
    NTP Servers
    NTP Polling Interval......................... 3600
    Index NTP Key Index NTP Server NTP Msg Auth Status
    1 0 10.10.10.11 AUTH DISABLED
    It's look like AP doesn't allow for console login or commands it just only show activity. After rebooting the WLC I get information:
    Cisco IOS Software, C2700 Software (AP3G2-RCVK9W8-M), Version 15.2(4)JB5, RELEASE SOFTWARE (fc1)

  • "there was a problem re-joining the wireless network or finding the device"

    I get this error when trying to have my Airport (for wireless printer sharing) join my current O2 Broadband wireless network:
    *AirPort Utility was unable to find your Apple wireless device after restarting.*
    *The settings for this Apple wireless device have been successfully updated, but there was a problem re-joining the wireless network or finding the Apple wireless device. You may need to select your network from the AirPort menu and try again.*
    Anyone have any idea how to fix this?

    This has been a total joke...Same problems as many here and zero response from Apple! I've had an AX for 3 years or so and it has worked fine, that is until it dropped its connection 2 days ago. I went to reset and the utility prompted me to do some updates...then magically it all went down the tubes!
    *"The settings for this Apple wireless device have been successfully updated, but there was a problem re-joining the wireless network or finding the Apple wireless device. You may need to select your network from the AirPort menu and try again."*...look familiar? Well, I tried everything including the many possible fixes listed here at the discussions...and of coarse NOTHING. I decided that maybe it had just out-lived itself and bought a brand new AX yesterday...funny SAME PROBLEM. Now all the tinkering is affecting my network. I returned the new AX today, and surprise the people at the Apple Store had never heard of the issues, let alone have idea of what to do next! VERY MAD!
    Any new solutions would be great! THX.

  • Hi! Everyone, I have some problems with JOIN and Sub-query; Could you help me, Please?

    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!

    Hi,
    fac30d8e-74d3-42aa-b643-e30a3780e00f wrote:
    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!
    As the others have said, the execution plan will give you a better idea about which is faster.
    If you're trying to see how using (or not using) a sub-query affects performance, make the rest of the queries as similar as possible.  For example, include field3 in both queries, or ignore field3 in both queries.
    In this particular case, I guess the optimizer would do the same thing either way, but that's just a guess.  I can't see your execution plans.
    In general, simpler code is faster, and better in other ways, too.  In this case
    tableB
    is simpler than
    (SELECT field1, field2  FROM tableB)
    Why do you want a sub-query in this example?

  • Problem with Join Queries using PHP and an Orcale Database

    Ok, I am trying to build a simple php querying tool for my oracle database and for the most part it is working however I am having a problem getting data from my join queries. If I run the following query :
    QUERY:
    SELECT lastfirst,EnteredBy,Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    Lastfirst     EnteredBy     Debit
    caiu, test      204     1
    But when I run the query correctly I get no results
    QUERY:
    SELECT sts.lastfirst,gl.EnteredBy,gl.Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    sts.lastfirst     gl.EnteredBy     gl.Debit
    and if I run the query combining the two above methods and adding a field (schoolid) that has the same name on both table I get the following result sets
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,sts.schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    lastfirst     EnteredBy     Debit     sts.schoolid
    caiu, test      204     1     
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    NONE
    Therefore, I have to have something written incorrectly in my php code and I just can not figure it out. My entire code is pasted below please provide me with an assistance you might have to offer. I have change the odbc_connec line so I could post it to this forum. In addition, I had to phrase out the column headers there for when you write the column headers you have to use ~ instead of , as the separator and then I turn back into the correct format for sql.
    //These scripts just open help windows if somone clicks on the icon
    <script>
    function submit()
    {document.sqlform.submit();}
    </script>
    <script>
    function colwin(){
    window.open("colnames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function tabwin(){
    window.open("tablenames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function help(){
    window.open("http://www.w3schools.com/sql/default.asp",null,"height=500,width=700,scrollbars=1");}
    </script>
    <form method="post" action="<?php echo $PHP_SELF;?>" name="sqlform">
    <?php
    //Cookie to check for authorization to the site
    if($_COOKIE['cookie']=="CheckCookieForAuth")
    //These get the values of the textareas after the form has been submitted
    $sqlSELECT = $_POST["SELECT"];
    $sqlFROM = $_POST["FROM"];
    $sqlJOIN = $_POST["JOIN"];
    $sqlWHERE = $_POST["WHERE"];
    $sqlOTHER = $_POST["OTHER"];
    $sqlSELECTTYPE = $_POST["SELECTTYPE"];
    //This is the variable used to parse out my headers the user entered
    $sqlColNames = split('~',$sqlSELECT);
    //This converts the ~ separator to , so I can actually use it as part of my sql string
    $search = array('~');
    $replace = array(',');
    $mystring = $sqlSELECT;
    $sqlString = str_replace($search, $replace, $mystring);
    //These are the textareas and the drop down options that the end users has to create queries
    echo "<table border=0>";
    echo "<tr><td valign='top'>";
    echo "<B>SELECT TYPE</B> <BR><SELECT NAME=SELECTTYPE>
    <OPTION VALUE='SELECT' SELECTED>SELECT</OPTION>
    <OPTION VALUE='SELECT DISTINCT'>SELECT DISTINCT</OPTION>
    <OPTION VALUE='INSERT'>INSERT</OPTION>
    <OPTION VALUE='UPDATE'>UPDATE</OPTION>
    <OPTION VALUE='DELETE'>DELETE</OPTION>
    </SELECT>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=SELECT wrap=physical>$sqlSELECT</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlC.jpg' width='25' height='25' onclick='colwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>FROM</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=FROM wrap=physical>$sqlFROM</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlT.jpg' width='25' height='25' border=0 onclick='tabwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>JOIN</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=JOIN wrap=physical>$sqlJOIN</textarea>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>WHERE</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=WHERE wrap=physical>$sqlWHERE</textarea>";
    echo "</td></tr>";
    //This is where the end user would enter group by, having, order by, etc..
    echo "<tr><td valign='top'>";
    echo "<b>OTHER</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=OTHER wrap=physical>$sqlOTHER</textarea>";
    echo "</td></tr>";
    This is a run query icon and a help icon
    echo "<tr><td colspan=2 align=right>";
    echo "<img src='images/RunQuery.jpg' width='30' height='28' onclick='submit()'> <img src='images/qm.jpg' border=0 width='25' height='25' onclick='help()'>";
    echo "</td></tr></table>";
    echo "<br>";
    echo "<br>";
    //This is where I connect to my remote oracle database
         $conn=odbc_connect('ODBC_ConnectionName','USERNAME','PASSWORD');
    //This is the sql string created by the end users
         $sql="$sqlSELECTTYPE $sqlString FROM $sqlFROM $sqlJOIN $sqlWHERE $sqlOTHER";
    //This executes the connection string and the sql string
         $rs=odbc_exec($conn,$sql);
    //This will display the query or a message if the query is empty
         if($rs!=NULL){
         echo "<table border=1>";
         echo "<tr>";
    //This loops through the string array the end user enter the field name text area to get column headers
         for($i=0; $i<count($sqlColNames); $i++)
         echo "<td>";
         print_r($sqlColNames[$i]);
         echo "</td>";
         echo "</tr><tr>";
    //This actually fetchs the rows from the statement and then display the data based on the column names the end user speificed
         while (odbc_fetch_row($rs))
              for($i=0; $i<count($sqlColNames); $i++)
                   $results=odbc_result($rs,$sqlColNames[$i]);
                   echo "<td>$results</td>";
              echo "</tr>";
         odbc_close($conn);
         echo "</table>";}else{echo "Results will be displayed here";}
    echo "<br><br>";
    echo $sql;
    else
    echo "Not logged in";
    ?>
    </form>

    This looks more like a SQL question than a PHP issue. There are a couple of JOIN examples at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066611 that might you work through the problem.

  • Select Problem with Joined tables

    Hello everyone I have the following Query
    SELECT
        OBJEKTI.OBJEKAT_ID OBJEKAT_ID,
        OBJEKTI.ADRESA ADRESA,
        OBJEKTI.POVRSINA POVRSINA,
        OBJEKTI.BROJ_IZVRSILACA BROJ_IZVRSILACA,
        OPREMLJENOSTI.OPREMLJENOST_ID OPREMLJENOST_ID,
        OPREMLJENOSTI.PULT PULT,
        OPREMLJENOSTI.REKLAMA REKLAMA,
        OPREMLJENOSTI.MOKRI_CVOR MOKRI_CVOR,
        OPREMLJENOSTI.WC_ZA_IGRACE WC_ZA_IGRACE,
        OPREMLJENOSTI.WC_ZA_OSOBLJE WC_ZA_OSOBLJE,
        OPREMLJENOSTI.VENTILATOR VENTILATOR,
        OPREMLJENOSTI.OSVJETLJENJE OSVJETLJENJE,
        OPREMLJENOSTI.VRSTA_BROJILA VRSTA_BROJILA,
        OPREMLJENOSTI.ELEKTRO_INSTALACIJE ELEKTRO_INSTALACIJE,
        OPREMLJENOSTI.VODO_INSTALACIJE VODO_INSTALACIJE,
        OPREMLJENOSTI.TELEFONSKE_INSTALACIJE TELEFONSKE_INSTALACIJE,
        OPREMLJENOSTI.GRIJANJE_ID GRIJANJE_ID,
        OPREMLJENOSTI.POD_ID POD_ID,
        OPREMLJENOSTI.PROZORI_VRATA_ID PROZORI_VRATA_ID,
        OPREMLJENOSTI.OBJEKAT_ID OBJEKAT_ID1,
        TEHNICKE_OPREMLJENOSTI.TEH_OPR_ID TEH_OPR_ID,
        TEHNICKE_OPREMLJENOSTI.ONLINE_KLADIONICA ONLINE_KLADIONICA,
        TEHNICKE_OPREMLJENOSTI.PANO PANO,
        TEHNICKE_OPREMLJENOSTI.NOSACI NOSACI,
        TEHNICKE_OPREMLJENOSTI.TV_LCD TV_LCD,
        TEHNICKE_OPREMLJENOSTI.TV_TELETEXT TV_TELETEXT,
        TEHNICKE_OPREMLJENOSTI.APARATI_IGRE APARATI_IGRE,
        TEHNICKE_OPREMLJENOSTI.EVONA EVONA,
        TEHNICKE_OPREMLJENOSTI.NOVOMATIC NOVOMATIC,
        TEHNICKE_OPREMLJENOSTI.RULET RULET,
        TEHNICKE_OPREMLJENOSTI.BILIJAR BILIJAR,
        TEHNICKE_OPREMLJENOSTI.KLIMA KLIMA,
        TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID OBJEKAT_ID2,
        PONUDE.PONUDA_ID PONUDA_ID,
        PONUDE.ONLINE_TERMINAL ONLINE_TERMINAL,
        PONUDE.SRECKE SRECKE,
        PONUDE.ONLINE_KLADIONICA ONLINE_KLADIONICA1,
        PONUDE.APARATI_IGRE APARATI_IGRE1,
        PONUDE.RULET RULET1,
        PONUDE.BILIJAR BILIJAR1,
        PONUDE.OBJEKAT_ID OBJEKAT_ID3
    FROM
        OBJEKTI,
        OPREMLJENOSTI,
        TEHNICKE_OPREMLJENOSTI,
        PONUDE
    WHERE
    (PONUDE.OBJEKAT_ID=OBJEKTI.OBJEKAT_ID AND TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID=OPREMLJENOSTI.OBJEKAT_ID) OR (OPREMLJENOSTI.OBJEKAT_ID=OBJEKTI.OBJEKAT_ID AND TEHNICKE_OPREMLJENOSTI.OBJEKAT_ID=OPREMLJENOSTI.OBJEKAT_ID)
    ORDER BY OBJEKTI.OBJEKAT_IDThe problem I get is no matter what WHERE clause I use I get doubled values which makes no sense. I checked in the tables and I don't have any doubled values. Each Opremljenost has 1 objekat (there are 2 rows each with its own Objekat) and the same applies to the other 2 tables (PONUDE and TEHNICKE OPREMLJENOSTI) but for some reason they double up the values. If I run it without a where clause at all I get some values repeat itself up to 4 times. Does anyone have a clue what is wrong with my query?

    You are joining a parent table (OBJEKTI) with three child tables (the other three: PON, TEH, OPR).
    Whenever you do that, you will always get duplication of child-rows, if there are multiple child-rows for a parent-row in any of the three child tables.
    For example, let P be a parent table, with two child tables, say C1 and C2.
    Contents:
    Table P:
    p1
    Table C1 (has two rows for row p1):
    1 p1
    2 p1
    Table C2 (has three rows for row p1):
    10 p1
    20 p1
    30 p1If you now do this:
    select P.*,C1.*,C2.*
    from P, C1, C2
    where [join P with C1]  and [join P with C2]Then your result set will look like this:
    P.p1  C1.1  C1.p1  C2.10  C2.p1
    P.p1  C1.1  C1.p1  C2.20  C2.p1
    P.p1  C1.1  C1.p1  C2.30  C2.p1
    P.p1  C1.2  C1.p1  C2.10  C2.p1
    P.p1  C1.2  C1.p1  C2.20  C2.p1
    P.p1  C1.2  C1.p1  C2.30  C2.p1As you can see every C1 row is duplicated three times in the resultset (due to join with C2).
    And every C2 row is duplicated two times in the resultset (due to join with C1).
    This is simply what happens if you join a parent table with multiple child tables...
    Question now is: what is the expected result that you are looking for?

  • Problems in query result with infoset and timedep infoobject

    Hi,
    I have the following situation:
    infoobject ZEMPLOYEE timedep
    Infocube 0C0_CCA_C11 (standard cost center/cost element postings)
    -> infoset with infoobject and infocube linked with outer join
    My query should show all active employees in one month without any posting in the infocube.
    My testdata looks like this:
    pernr date from    date to         cost center
    4711  01.01.1000 31.12.2002
    4711  01.01.2003 31.01.2009   400000
    4711  01.02.2009 31.12.9999
    That means the employee is only active between 01.01.2003 and 31.01.2009.
    I expect the following result in the query with key-date 31.01.2009:
    4711  01.01.2003 31.01.2009   400000
    I expect the following result in the query with key-date 01.02.2009:
    no result
    -> because the employee is not active anymore, I don't want to see him in the query.
    My query delivers the following result:
    4711  01.02.2009 31.12.9999
    The first and the last entry in master data is automatically created by the system.
    I tried to exclude the not active employees by selection over cost center in the filter (like cost center between 1 and 9999999, or exclude cost center #). But unfortunately the filter selection does not work, because obviously the attributes are not filled in the last entry.
    Is there anyone who can tell me how I can exclude the last entry in the master data in the query?
    Any help is much appreciated! Points will be assigned!
    best regards
    Chris

    HI,
    problem is that I can't use employe status in this case, beacuse for any reason the people don't use it.
    I have also tried with exceptions and conditions, but the attributes ar enot filled, so it seems that nothing works.
    Do you have any other suggestions?
    Thanks!
    best tregards
    Chris

  • Problem Displaying Query Result

    I have been working through David's book 'Dreamweaver CS5 Training from the Source' and am attempting to adapt the tutorials for my own ideas.
    My problem, I believe is in displaying the results of a database query. I want to display to the user a list of group names they are associated with.
    The query looks like this:
    $id = "$identity->user_id"; //logged in user
    $sql = mysql_query("SELECT name
                                   FROM groups
                                   INNER JOIN user2group USING (group_id) // reference table contains user_id and group_id
                                   WHERE user_id = $id
                                   ORDER BY name")or trigger_error ( mysql_error ( ) );
    while($row = mysql_fetch_array($sql)){
              $groups = $row['name'];
    I attempt to display the results with:
    <?php echo "$groups"; ?>
    I have also tried:
    $sql = mysql_query("SELECT name
                                   FROM groups
                                   INNER JOIN user2group USING (group_id) // reference table contains user_id and group_id
                                   WHERE user_id = $id
                                   ORDER BY name")or trigger_error ( mysql_error ( ) );
    while($row = mysql_fetch_array($sql)){
              $groups = array();
              $groups[] = $row['name'];
    and display with:
    <?php echo implode('<br />', $groups); ?>
    In both scenarios I get only one record displayed. (there is more than one record). The records seem to be available to display because if I change the ORDER command I get a different result.
    Any help is much appreciated.
    Thank you

    Thank you so much for the explanation of the while loop it was extremely helpful. I was able to get my results to display correctly by including the echo statement in the while loop.
    I spent several hours trying to use the array_push command with no success. I did explore the link you provided, but found many of the examples people gave to be very complicated. I would really like to start working with this command, if you would be able to provide me with an example based on my query and I can see it working I can start varying it to some of the more complicated methods given in the link.
    Thank you again for your help.

  • Problem to join WLC (AP1131 && WISM)

    Hello,
    AP will not join WLC. Everytime, the AP try to join the WLC but...
    CLI of AP :
    May 18 08:02:51.194:  status of voice_diag_test from WLC is false
    May 18 08:02:51.194: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    May 18 08:02:51.195: %LINK-3-UPDOWN: Interface Dot11Radio1, changed state to up
    May 18 08:02:51.196: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to down
    May 18 08:02:51.201: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to reset
    May 18 08:02:51.227: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    May 18 08:03:01.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 172.23.2.243 peer_port: 5246
    May 18 08:03:01.001: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    May 18 08:03:02.398: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 172.23.2.243 peer_port: 5246
    May 18 08:03:02.400: %CAPWAP-5-SENDJOIN: sending Join Request to 172.23.2.243
    May 18 08:03:02.400: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    May 18 08:03:07.399: %CAPWAP-5-SENDJOIN: sending Join Request to 172.23.2.243
    May 18 08:03:07.400: %DTLS-5-ALERT: Received WARNING : Close notify alert from 172.23.2.243
    May 18 08:03:07.400: %DTLS-5-PEER_DISCONNECT: Peer 172.23.2.243 has closed connection.
    May 18 08:03:07.400: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 172.23.2.243:5246
    May 18 08:03:07.459: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    May 18 08:03:07.459: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    May 18 08:03:07.525: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to administratively down
    May 18 08:03:07.525: %LINK-5-CHANGED: Interface Dot11Radio1, changed state to administratively down
    May 18 08:03:07.526: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
    May 18 08:03:07.556:  status of voice_diag_test from WLC is false
    May 18 08:03:18.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 172.23.2.243 peer_port: 5246
    May 18 08:03:18.001: %CAPWAP-5-CHANGED: CAPWAP changed state to 
    May 18 08:03:19.406: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 172.23.2.243 peer_port: 5246
    May 18 08:03:19.408: %CAPWAP-5-SENDJOIN: sending Join Request to 172.23.2.243
    May 18 08:03:19.408: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
    May 18 08:03:24.406: %CAPWAP-5-SENDJOIN: sending Join Request to 172.23.2.243
    May 18 08:03:24.408: %DTLS-5-ALERT: Received WARNING : Close notify alert from 172.23.2.243
    May 18 08:03:24.408: %DTLS-5-PEER_DISCONNECT: Peer 172.23.2.243 has closed connection.
    May 18 08:03:24.408: %DTLS-5-SEND_ALERT: Send FATAL : Close notify Alert to 172.23.2.243:5246
    May 18 08:03:24.467: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    May 18 08:03:24.467: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    May 18 08:03:24.533: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to administratively down
    May 18 08:03:24.533: %LINK-5-CHANGED: Interface Dot11Radio1, changed state to administratively down
    If someone know how to resolve my problem ..
    Thanks, Vincent A.

    Hello,
    The firmware of the controlers is : 7.0.116.0
    The AP run the firmware c1130-rcvk9w8-tar.124-21a.JA2.tar and the model is AP1131.
    results of 'dir' command :
    AP001d.a1ee.1cbc#dir
    Directory of flash:/
        2  -rwx       20380  May 18 2011 07:20:51 +00:00  event.log
      185  drwx         128  May 17 2011 09:18:44 +00:00  c1130-rcvk9w8-mx
        4  -rwx        7192  May 18 2011 09:03:13 +00:00  private-multiple-fs
        5  -rwx         400  May 18 2011 07:26:15 +00:00  env_vars
        7  -rwx        1919  May 17 2011 09:19:13 +00:00  private-config
       10  drwx         320  May 18 2011 07:20:46 +00:00  c1130-k9w8-mx.124-23c.JA2
        6  -rwx           0  May 18 2011 07:18:08 +00:00  validate.txt
    15740928 bytes total (8032256 bytes free)
    AP001d.a1ee.1cbc#
    On the controllers i can see that, but i don't understand why :
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Msg Type = 3 Capwap state = 0
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Join Request from 172.22.4.96:57804
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Join request received from AP which is already present. Deleting previous connection
                            172.22.4.96:57804
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Multiple Join Request: Join request received from AP which is already present. Deleting previous conne
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Finding DTLS connection to delete for AP (172:22:4:96/57804)
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 Disconnecting DTLS Capwap-Ctrl session 0x136c2550 for AP (172:22:4:96/57804)
    *spamReceiveTask: May 18 11:05:20.375: 00:1e:13:6f:47:f0 CAPWAP State: Dtls tear down
    *spamReceiveTask: May 18 11:05:20.376: 00:1e:13:6f:47:f0 DTLS connection 0x136c2550 closed by controller
    *spamReceiveTask: May 18 11:05:20.377: 00:1e:13:6f:47:f0 Deleting and removing AP 00:1e:13:6f:47:f0 from fast path
    *spamReceiveTask: May 18 11:05:20.377: 00:1e:13:6f:47:f0 DTLS connection not found. Ignoring join request from 172.22.4.96:57804
    *spamReceiveTask: May 18 11:05:20.377: 00:1e:13:6f:47:f0 State machine handler: Failed to process  msg type = 3 state = 0 from 172.22.4.96:57804
    *spamReceiveTask: May 18 11:05:20.377: 00:1e:13:6f:47:f0 Failed to parse CAPWAP packet from 172.22.4.96:57804
    *spamReceiveTask: May 18 11:05:20.377: CAPWAP DTLS connection closed msg
    *spamReceiveTask: May 18 11:05:20.377: 00:1e:13:6f:47:f0 DTLS connection closed event receivedserver (172:23:2:243/52
    Thanks, Vincent A.

  • Strange problem when joining two tables

    Hi,
    I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
    I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
    The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
    select count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    If I explicitly set the Join method to some other type through SQL Hints, or if I use to_number function when joining (even though the two fields used for join in both tables are of NUMBER(10) type), I get the correct result, like for example below:
    select /*+ USE_MERGE (rh rhb) */
    count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    select
    count(*)
    from recharge_history rh, recharge_history_balance rhb
    where to_number(rh.recharge_id) = t_number(rhb.recharge_id)
    and to_number(rh.recharge_id2) = (to_number)rhb.recharge_id2)
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    Thank you for your time.
    Edrin

    Hi, Edrin,
    961841 wrote:
    Hi,
    I have recently encountered a strange problem on an Oracle 11gR2 database which is optimized for Datawarehouse usage.
    I am using two tables that have a relationship enforced by two fields of type NUMBER(10).
    The problem is that when I am joining these two tables very often I get strange results and when I re-execute the query I get a different result. I saw in the explain plan that the Hash Join is used for joining these two tables.
    select count(*)
    from recharge_history rh, recharge_history_balance rhb
    where rh.recharge_id = rhb.recharge_id
    and rh.recharge_id2 = rhb.recharge_id2
    and trunc(rh.recharge_date_time) between '30-Dec-2012' and '31-Dec-2012'
    Don't try to compare DATEs with VARCHAR2s, such as '30-Dec-2012'. The VARCHAR2 '31-Aug-2012' is between '30-Dec-2012' and '31-Dec-2012'; so are '31-Aug-2013' and '30-Mar-1999'.
    That may not be your only problem, but it's still a problem.
    If you're getting incosistent results, then it sounds like a bug. Start a service request with Oracle support.

  • Problem with the result of multiple queries in Web Intelligence (BO XI R2)

    We have a problem with Web Intelligence reports. Behavior of the results is like if we selected the function Count in Designer the properties indicators. Same queries separated one for one report give correct results and together 7 queries in one report give correct results only for the first query and for others (6 others) same results for each date (if report is monthly) or the same result for each hour (if the result is daily) for all Queues tested (other which were not tested have result 0). Even the function Sum inserted into the report structure behaves weird u2013 we have the same result as in the filed (it is a copy of that result, not a sum). We tested queries together in SQL Developer and they give correct results, while in BO big query which contains script from Query 3, Query 2  and Query 1 cannot be completely executed (it executes without end).
    We use Business Objects XI R2 SP3.
    Thanks in advance.

    Hi Peter,
    I guess it is the problem due to the merged dimension and different granurality level in the BO queries. From the document properties uncheck the option of auto-merge common dimension objects or manually unmerge all the common dimensions
    than give it a try.
    I guess this would solve your problem. If not can you provide more query details like what objects you have used in the query.

Maybe you are looking for

  • Can't back up Time Machine to Time Capsule

    Since I upgraded to Maverick.  Can't back up anything.  Error message is "sparsbundle" could not be accessed, (errorr null).  Please help.

  • Rebate Agreement, Open Accrual

    Hi All, In our organization, we use rebate agreement extensively. Most of the agreements are for one year validity period. My problem is that when we finally settle the agreement and issue credit memo for final settlement some accrul is left open. Ge

  • Financial Funds Control Exception

    Funds has been enabled in the BCS. The client does not want it to be immediately control of funds, continue only  financial item and financial center. Execção actualize the rule for funds, but it happens that the Center and Financial item that would

  • What does iMatch actually do?

    I have a subscription to itunes match for the PC. Ive got it setup and have 2000 songs stored on imatch it says. Is it actually a complete backup for my songs in itunes? For example, lets say my PC crashed and I had to reinstall it to factory setting

  • Why does Aperture make D7000 RAW files Dark????????

    Okay, i've been through a million different ways - files look GREAT, then you load them into Aperture and they look like sh*t. And i finally figured out a way to PROVE that Aperture is screwing up my files! Here's what I did: Transfered original RAW