Query - Join Problems

Hello,
I'm in need of query assistance. Per my query below, I am trying to output the name of the manager, # of outlets that he/she manages, total number of direct reports at each location, and total number of rental vehicles.
As you can see between my "current" and "desired" outputs, I'm a little off. Could this be a join issue?
I am using Oacle 11g Express and SQL*Plus.
Thanks for your help!!
QUERY:
SELECT lname || ', ' || fname “OUTLET MANAGER”, COUNT(managerno) Outlets,
COUNT(empno) Employees, COUNT(vehicle.outno) “# OF VEHICLES”
FROM EMPLOYEE
JOIN outlet ON employee.empno = outlet.managerno
LEFT OUTER JOIN vehicle ON vehicle.outno = outlet.outno
WHERE title = 'Manager'
GROUP BY lname || ', ' || fname;
CURRENT OUTPUT:
OUTLET MANAGER            OUTLETS  EMPLOYEES # OF VEHICLES
Smith, Sandy                    1          1             0
Weaver, Brendan                 5          5             5
Green, Eric                     3          3             0
Hill, Wendy                     2          2             0
DESIRED OUTPUT:
OUTLET MANAGER            OUTLETS  EMPLOYEES # OF VEHICLES
Smith, Sandy                    1          3             3
Weaver, Brendan                 5          2             5
Green, Eric                     3          1             0
Hill, Wendy                     1          2             2
SAMPLE DATA:
CREATE TABLE EMPLOYEE
(EmpNo NUMBER(6) PRIMARY KEY,
Title VARCHAR2(30),
Fname VARCHAR2(10) NOT NULL,
Lname VARCHAR2(10) NOT NULL,
OutNo NUMBER(4),
SupervisorNo NUMBER(6));
CREATE TABLE OUTLET
(outNo NUMBER(4) PRIMARY KEY,
  ManagerNo NUMBER(6));
CREATE TABLE VEHICLE
(LicenseNo VARCHAR2(7) PRIMARY KEY,
  outNo NUMBER(4));
INSERT INTO EMPLOYEE VALUES ('100001','Associate','Jenny','Smith','1001','100007');
INSERT INTO EMPLOYEE VALUES ('100002','Associate','Fred','Frapples','1001','100007');
INSERT INTO EMPLOYEE VALUES ('100003','Regional Manager','TJ','Safranski',NULL,'100004');
INSERT INTO EMPLOYEE VALUES ('100004','CEO','Harry','Miller',NULL,NULL);
INSERT INTO EMPLOYEE VALUES ('100005','Associate','Jolena','Koneski','1002','100009');
INSERT INTO EMPLOYEE VALUES ('100006','Associate','Bruce','Peer','1002','100009');
INSERT INTO EMPLOYEE VALUES ('100007','Manager','Sandy','Smith','1001','100003');
INSERT INTO EMPLOYEE VALUES ('100008','Associate','Julie','Walker','1003','100010');
INSERT INTO EMPLOYEE VALUES ('100009','Manager','Brendan','Weaver','1002','100003');
INSERT INTO EMPLOYEE VALUES ('100010','Manager','Wendy','Hill','1003','100003');
INSERT INTO EMPLOYEE VALUES ('100011','Associate','Jeorge','Peer','1004','100012');
INSERT INTO EMPLOYEE VALUES ('100012','Manager','Eric','Green','1004','100003');
INSERT INTO OUTLET VALUES ('1001','100009');
INSERT INTO OUTLET VALUES ('1002','100008');
INSERT INTO OUTLET VALUES ('1003','100008');
INSERT INTO OUTLET VALUES ('1004','100009');
INSERT INTO OUTLET VALUES ('1005','100010');
INSERT INTO OUTLET VALUES ('1006','100010');
INSERT INTO OUTLET VALUES ('1007','100012');
INSERT INTO OUTLET VALUES ('1008','100012');
INSERT INTO OUTLET VALUES ('1009','100012');
INSERT INTO OUTLET VALUES ('1010','100007');
INSERT INTO VEHICLE VALUES ('BH05J9U','1001');
INSERT INTO VEHICLE VALUES ('H4L0DH8','1001');
INSERT INTO VEHICLE VALUES ('5HDI9TG','1002');
INSERT INTO VEHICLE VALUES ('GI0UJD7','1002');
INSERT INTO VEHICLE VALUES ('GJU4Y7D','1001');
INSERT INTO VEHICLE VALUES ('S5BNP2S','1003');
INSERT INTO VEHICLE VALUES ('XCH4Y23','1002');
INSERT INTO VEHICLE VALUES ('A12F8GH','1003');
INSERT INTO VEHICLE VALUES ('C4YUTSA','1004');
INSERT INTO VEHICLE VALUES ('634HV2E','1004');

Actually, the desired output for "Smith, Sandy" is correct:
OUTLET MANAGER            OUTLETS  EMPLOYEES # OF VEHICLES
Smith, Sandy                    1          3             3
Inside the OUTLET table, Sandy's "EmpNo" only appears once (e.g.- 1 outlet). Inside the EMPLOYEE table, both she and two other employees are located at one outlet (OutNo)... so the number of employees equals 3. Inside the VEHICLE table, based off the "OutNo" Sandy manages, a total of three cars are assigned.
Outlet relates to employee because employees are both employed at, and manage, the outlet. Hinging off the "EmpNo" value, we can extrapolate who both works at each outlet and manages said outlet.
Please let me know if I need to do a better job explaining.
Thanks for your help!
Message was edited by: 8bb7968b-e6ae-456c-8459-f418352e9e0a

Similar Messages

  • Query/join problem

    Does anyone see any issues in my query/join?
    Select c.case_id, a.business_unit, a.field_name, a.change_date, a.old_value, a.new_value, a.created_by, a.creation_date, c.provider_group_id, c.creation_date, c.closed_dttm
    From ps_case c, ps_case_history_audit a
    where
    a.case_id = c.case_id and
    a.field_name = 'case_status' and
    a.new_value = 'Open - Dispatch' and
    a.created_by like '%tag%' and
    c.provider_group_id like '%tag%' and
    c.closed_dttm between '03-NOV-2013' and '10-NOV-2013'
    SQL Dev: All Rows Fetched: 0   But it should be returning something with the stated parameters.

    Hi,
    I'm willing to share what I know about SQL to help solve this problem.  Are you willing to share what you know about the data and the application?
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you expect from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "0 rows found" is sometimes the correct answer.  Why do you think it's not in this case?
    If c.closed_dttm is a DATE (or a TIMESTAMP) then you shouldn't be comparing it to strings, as in
    c.closed_dttm between '03-NOV-2013' and '10-NOV-2013'
    However, that would probably produce too many rows in this case, not too few.
    At any rate, compare DATEs to other DATEs, for example
    c.closed_dttm between TO_DATE ('03-NOV-2013', 'DD-MON-YYYY') and ...
    If this isn't the cause of today's problem today, it will be tomorrow's.

  • HELP - Query Join Problem

    I am trying to write a query to return data from 4 different tables and it is doubling my summed values. I can get the separate queries to work, but not combined and I need them combined so that I can get a balance due and limit the records to only those that had a total billed (fees) less than $200.
    Query #1 Gets the total of the fees due for each appeal type and invoice:
    Note: There is always at least one fee attached to an invoice.
    SELECT APT.APTY_DESCR "APPEAL TYPE",
    INV.INVC_ID_SEQ INVOICE,
    SUM( ALL FEE.AMT_DUE) "TOTAL BILLED AMOUNT"
    FROM WRD_APPEALS AP,
    WRD_INVOICES INV,
    WRD_FEES_DUE FEE,
    WRD_APPEAL_TYPES APT
    WHERE AP.APST_CD = 'PEND'
    AND AP.INVC_ID_SEQ = INV.INVC_ID_SEQ
    AND AP.INVC_ID_SEQ = FEE.INVC_ID_SEQ
    AND AP.APTY_CD = APT.APTY_CD
    GROUP BY APT.APTY_DESCR, INV.INVC_ID_SEQ
    ORDER BY APT.APTY_DESCR, INV.INVC_ID_SEQ
    4     BILLING CATEGORY INCORRECT     4147     1200
    5     BILLING CATEGORY INCORRECT     4203     1100
    6     BILLING CATEGORY INCORRECT     4216     72600
    7     BILLING CATEGORY INCORRECT     4826     1000
    8     BILLING CATEGORY INCORRECT     4951     2060
    Query #2 Gets the total amount paid for each appeal type and invoice:
    Note: An invoice may or may not have a payment, thus the outer join.
    SELECT APT.APTY_DESCR "APPEAL TYPE",
    INV.INVC_ID_SEQ INVOICE,
    SUM(ALL PMT.PAID_AMT) "AMOUNT PAID"
    FROM WRD_APPEALS AP,
    WRD_INVOICES INV,
    WRD_APPEAL_TYPES APT,
    WRD_PAYMENTS PMT
    WHERE AP.APST_CD = 'PEND'
    AND AP.INVC_ID_SEQ = INV.INVC_ID_SEQ
    AND AP.APTY_CD = APT.APTY_CD
    AND INV.INVC_ID_SEQ = PMT.INVC_ID_SEQ(+)
    GROUP BY APT.APTY_DESCR, INV.INVC_ID_SEQ
    ORDER BY APT.APTY_DESCR, INV.INVC_ID_SEQ
    4     BILLING CATEGORY INCORRECT     4147     200
    5     BILLING CATEGORY INCORRECT     4203     0
    6     BILLING CATEGORY INCORRECT     4216     72600
    7     BILLING CATEGORY INCORRECT     4826     
    8     BILLING CATEGORY INCORRECT     4951     
    Combined Query - Gets all of the above as well as the balance due. Note the doubled values for some records.
    SELECT APT.APTY_DESCR "APPEAL TYPE",
    INV.INVC_ID_SEQ INVOICE,
    SUM( ALL FEE.AMT_DUE) "TOTAL BILLED AMOUNT",
         SUM(ALL PMT.PAID_AMT) "AMOUNT PAID",
         (SUM(ALL FEE.AMT_DUE) -
         NVL2(SUM(ALL PMT.PAID_AMT), SUM(ALL PMT.PAID_AMT), 0)) "BALANCE DUE"
    FROM WRD_APPEALS AP,
    WRD_INVOICES INV,
    WRD_FEES_DUE FEE,
    WRD_APPEAL_TYPES APT,
         WRD_PAYMENTS PMT
    WHERE AP.APST_CD = 'PEND'
    AND AP.INVC_ID_SEQ = INV.INVC_ID_SEQ
         AND INV.INVC_ID_SEQ = PMT.INVC_ID_SEQ(+)
         AND INV.INVC_ID_SEQ = FEE.INVC_ID_SEQ
         AND AP.APTY_CD = APT.APTY_CD
    GROUP BY APT.APTY_DESCR, INV.INVC_ID_SEQ
    ORDER BY APT.APTY_DESCR, INV.INVC_ID_SEQ,
    4     BILLING CATEGORY INCORRECT     4147     1200     400     800
    5     BILLING CATEGORY INCORRECT     4203     2200     0     2200
    6     BILLING CATEGORY INCORRECT     4216     72600     435600     -363000
    7     BILLING CATEGORY INCORRECT     4826     1000          1000
    8     BILLING CATEGORY INCORRECT     4951     2060          2060
    HELP PLEASE!
    Thank you.

    When you have multiple child rows, the parent row gets returned once for each child row found. Therefore, if you have summed the invoice, it gets summed again for each payment. Perhaps this little example will help you understand the problem.
    Note that I used a sub query here to obtain the desired results. Analytic functions can do the same I believe, but I am still learning them :-)
      D> DROP TABLE DMILL.invoice;
    Table dropped.
      D>
      D> DROP TABLE DMILL.payments;
    Table dropped.
      D>
      D> CREATE TABLE invoice AS
         SELECT 1 id, 10 amount FROM DUAL UNION ALL
         SELECT 2 id, 10  FROM DUAL UNION ALL
         SELECT 2 id, 10  FROM DUAL UNION ALL
         SELECT 3 id, 10  FROM DUAL;
    Table created.
      D>
      D> CREATE TABLE payments AS
         SELECT 1 inv_id, 5 amount FROM DUAL UNION ALL
         SELECT 1 inv_id, 5 amount FROM DUAL UNION ALL
         SELECT 2 inv_id, 5 amount FROM DUAL UNION ALL
         SELECT 2 inv_id, 5 amount FROM DUAL UNION ALL
         SELECT 2 inv_id, 5 amount FROM DUAL;
    Table created.
      D>
      D> select * from invoice;
            ID     AMOUNT
             1         10
             2         10
             2         10
             3         10
      D>
      D> select * from payments;
        INV_ID     AMOUNT
             1          5
             1          5
             2          5
             2          5
             2          5
      D>
      D> select id
                  ,sum (amount)
          from  invoice
         group by id;
            ID SUM(AMOUNT)
             1          10
             2          20
             3          10
      D>
      D> select inv_id
                  ,sum(amount)
          from  payments
         group by inv_id;
        INV_ID SUM(AMOUNT)
             1          10
             2          15
      D>
      D> select inv.id
                  ,inv.amount
                  ,pay.amount
          from invoice  inv
                 ,payments pay
         where pay.inv_id = inv.id;
            ID     AMOUNT     AMOUNT
             1         10          5
             1         10          5
             2         10          5
             2         10          5
             2         10          5
             2         10          5
             2         10          5
             2         10          5
    8 rows selected.
      D>
      D> select inv.id
                  ,sum(inv.amount)
                  ,sum(pay.amount)
          from invoice  inv
                 ,payments pay
         where pay.inv_id = inv.id
         group by inv.id;
            ID SUM(INV.AMOUNT) SUM(PAY.AMOUNT)
             1              20              10
             2              60              30
      D>
      D> select inv.id
                  ,sum(inv.amount)
                  ,(SELECT sum(pay.amount)
                    FROM   payments pay
                    WHERE  pay.inv_id = inv.id)
          from invoice  inv
         group by inv.id;
            ID SUM(INV.AMOUNT) (SELECTSUM(PAY.AMOUNT)FROMPAYMENTSPAYWHEREPAY.INV_ID=INV.ID)
             1              10                                                           10
             2              20                                                           15
             3              10Let me know if you need further explanation.

  • Select query join problem

    hey guys,
    i've used a select query to get details from KNA1, KNVV, ADRC, KNVP, pa0002. tables by joining. but i'm getting only about 170 records. there are more than 3000 records in the database. for each tables. here is my select query
    SELECT KNA1KUNNR KNA1NAME1 KNA1NAME2 ADRCSTR_SUPPL1 ADRCSTR_SUPPL2 ADRCSTR_SUPPL3 ADRCCITY1 KNVVVWERK KNVPPERNR PA0002VORNA PA0002NACHN KNVVVKBUR KNVVKDGRP KNA1STCD1 KNA1~STCEG
        INTO CORRESPONDING FIELDS OF TABLE IT_FINAL FROM KNA1
        INNER JOIN KNVV ON KNA1KUNNR = KNVVKUNNR
        INNER JOIN ADRC ON KNA1ADRNR = ADRCADDRNUMBER
        INNER JOIN KNVP ON KNA1KUNNR = KNVPKUNNR
        INNER JOIN PA0002 ON KNVPPERNR = PA0002PERNR
        WHERE KNA1KUNNR IN S_KUNNR AND KNVVVWERK in P_VWERK AND PA0002PERNR IN S_PERNR AND KNVVVKBUR IN S_VKBUR AND KNVV~KDGRP IN S_KDGRP.
    can anyone tell me the problem in the above query.
    thanks.

    Hi
    you are using tables KNA1, KNVV, ADRC, KNVP, pa0002.
    Create internal table for each table mentioned above with all the primary keys and find the links between them
    then select data in one table and select data from another table into your internal table for all the entries exists in firs internal table.
    go for below links.
    http://www.sapdev.co.uk/abap/commands/select_forallentries.htm
    http://wiki.sdn.sap.com/wiki/display/ABAP/FORALLENTRIES-Home+page
    http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_ITAB.htm
    Thanks
    lalit

  • Adhoc Query Join Problem

    Hi All,
    I have created a query on PNP logical database which looks very simple, Lets say it has pernr, first name, last name, and Mailing ZIP on the output. P0006-SUBTY = 'MAIL'
    Now, the problem is .... if someone do not have mailing address subtype populated then that pernr's record is not appearing on the output. ZIP should be blank if the Mailing Address subtype is not saved for that pernr.
    I am using PNP in my infoset so I think I do not have any control over the joins, PNP should not behave like this I guess, is it normal behavior or it can be fixed? or this is one of the reasons to go for Custom ABAP Reports as it cannot be done in SQ01?
    Is the only solution through Adhoc queries to add all these PA tables in Inner Joins instead of using PNP, in SQ02?
    Thanks in advance.

    It is a common behavior of Adhoc query in PNP. You will need to create custom fields and put logic for subtypes. Using joins is not a good solution, for performance issues you cannot join many tables and HR tables have begda and endda in tables which may create problems for proper joins.

  • SQL Query join problem

    Hi,
    I have two tables in my db, the patient table holds details of patients, the contact table holds details of contacts related to the patient.
    patient table
    patientid - primary key - int
    patient name - varchar
    contact table
    contactid - primary key - int
    patientid - foreign key from patient table - int
    incontact - foreign key from paient table to relate contacts - int
    My contact table has the following data:
    contactid patientid incontact
    2              19           21
    2               19          22
    I can retrieve data for the patients that have been in contact with patientid 19, by using the following join:
    SELECT * FROM PATIENT
    LEFT JOIN incontact
    ON incontact.incontact = patient.patientid
    WHERE incontact.patientid = 19
    However, can you please tell me how I can get data from the patients table where the incontact is 21?
    So I can get contacts from patients and patients from contacts?
    Thankyou

    Thanks very much for your replies again.
    Basically, I have a table of patients, and I would like to link them to each other, many to many.
    I populate the incontact table, which stores the original posted patientID, and the new generated patientID. I populate the DB with the code below.
    <cfquery name="update" datasource="staffdirectory">
    SET NOCOUNT ON
    INSERT INTO patient (title,firstname,surname,gender,DOB,telephone,address1,address2,address3,town,postcode
    VALUES ('#title#','#firstname#','#surname#','#gender#',#createodbcdate(createdate(startyear, startmonth, startday))#    ,'#telephone#','#address1#','#address2#','#address3#','#town#','#postcode#
    SELECT @@Identity AS newid   
    SET NOCOUNT OFF
    </cfquery>
          <cfquery name="insert" datasource="staffdirectory">
      INSERT INTO incontact (related,incontact)
    VALUES (#patientid#,#update.newid#)
    </cfquery>
    This works fine and I can get all related patients by usingthe following query:
    SELECT * FROM patient
    LEFT JOIN incontact
    ON patient.patientid  = incontact.related
    WHERE  incontact.incontact = #patientid#
    MY problem occurs when I want to find related patients from the related column, the reverse relationship. I use this seperate query:
    SELECT * FROM patient
    LEFT JOIN incontact
    ON patient.patientid  = incontact.incontact
    WHERE  incontact.related= #patientid#
    Is there a way I can combine both queries, or is there a better way I can achieve the same result?
    Many thanks again

  • About query related problem

    hi ,
           we are generate query in 2005b,and procced for execuite query.following problem occure'<b>odbc sql server driver'[sql server] syntax error the converting the nvarchar value' 70302/20307' to column of data type int received alert OAIB</b>
    QUERY SHOWN BE AS FOLLOW.
    SELECT T5.DocNum as'Po. No. ', T5.DocDate as 'Po Date',T0.CreateDate,T5.NumAtCard as 'Man.PO. No/ Dt.', T0.DocNum as'AP No. ', T0.DocDate as 'AP Date',T0.NumAtCard as 'Vendor Ref. No.', T0.U_vbdt as 'Vendor Ref. Date', T0.CardName as 'Vendor', T1.Dscription as 'Item',  T1.Quantity AS 'QTY'  , T1.Price as 'Basic Rate', (T1.Price *T1.Quantity) as 'Value',T0.Comments as 'Po No. & Po.Dt.' FROM OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OPDN T3 ON T2.CardCode = T3.CardCode INNER JOIN PDN1 T4 ON T3.DocEntry = T4.DocEntry INNER JOIN OPOR T5 ON T2.CardCode = T5.CardCode INNER JOIN POR1 T6 ON T5.DocEntry = T6.DocEntry INNER JOIN OITM T7 ON T1.ItemCode = T7.ItemCode INNER JOIN OITB T8 ON T7.ItmsGrpCod = T8.ItmsGrpCod WHERE (  T1.BaseRef  =  T3.DocNum )  AND ( T4.BaseRef =  T5.DocNum ) AND (  T0.U_vbdt >=[%25]AND  T0.U_vbdt <=[%26]) AND ( T4.Dscription =T1.Dscription ) AND ( T4.Dscription = T6.Dscription  ) AND  (( T1.Dscription=[%0] OR T1.Dscription=[%1] OR T1.Dscription=[%2] OR T1.Dscription=[%3] OR T1.Dscription=[%4] OR T1.Dscription=[%5] OR T1.Dscription=[%6] OR T1.Dscription=[%7] OR T1.Dscription=[%8] ) OR ( T0.CardName=[%10] OR T0.CardName=[%09] OR T0.CardName=[%27] OR T0.CardName=[%28] ) OR ((  T8.ItmsGrpNam =[%11]  oR T8.ItmsGrpNam =[%12] OR T8.ItmsGrpNam =[%13] OR T8.ItmsGrpNam =[%14] OR T8.ItmsGrpNam =[%15] OR T8.ItmsGrpNam =[%16] OR T8.ItmsGrpNam =[%17] OR T8.ItmsGrpNam =[%18] OR T8.ItmsGrpNam =[%19] ) and  ( T7.U_FirmName =[%20] OR T7.U_FirmName =[%21] OR T7.U_FirmName =[%22] 
    oR T7.U_FirmName =[%23] OR T7.U_FirmName =[%24] )) )

    Hi Vishal,
    the value '70302/20307' is not an whole number so converting it to an int is not possible.
    You should check your data for this value an change your query or data.
    Regards
    Ad

  • Query - join tables

    Dear all,
    I'm trying to create a query joining 2 tables: CATSDB and PROJ, because I want to visualize the project and the wbs at the same time according the working time recorded in cat2.
    But when I execute the query doesn't appear any values. But if I create a query separately, i.e, table by table, the values appears without problems.
    Please anyone can help me???
    Thanks,
    P.

    There should be Field/s that link these tables in order for you to create an infoset out of a table join.
    e.g. PA0008 and PA0007 both have the field PERNR.
    If there is no field common between the two, your query won't be extracting any data as you've experienced.
    These two tables don't have any field that is common to both of them. Table join won't be possible.

  • Sales Order Query Join

    Hi I have a query which returns the sum of linetotals from sales orders related to a specific Business Partner and also related to a specific Item Code.
    The problem which I'm having is that when I am testing the reports I am finding out that some of the amounts are being multiplied for a number of times.
    I think that it is a join problem.
    The query is the below:
    select distinct
              t0.cardcode
    ,          t0.cardname
    ,          sum(t2.linetotal) as 'Total'
    ,          sum(t3.linetotal) as 'GATEWAY - IPLCS'
    ,          sum(t4.linetotal) as 'GATEWAY - IP TERMINATING CHRGS & LINKS'
    ,          sum(t5.linetotal) as 'Dedicated Symmetric International IP Bandwidth'
    ,          sum(t6.linetotal) as 'Dedicated Symmetric International IP Bandwidth Daily'
    ,          sum(t7.linetotal) as 'Shared IP Transit'
    ,          sum(t8.linetotal) as 'Premium IP'
    ,          sum(t9.linetotal) as 'IP Addresses'
    ,          sum(t10.linetotal) as 'DDos Service'
    ,          sum(t11.linetotal) as 'MIX'
    ,          sum(t12.linetotal) as 'PVC'
    ,          sum(t13.linetotal) as 'Short term IP Transit'
    ,          sum(t14.linetotal) as 'Shared Premium IP'
    ,          sum(t15.linetotal) as 'Shared Rack Co-Location - Setup And Installation Charge'
    ,          sum(t16.linetotal) as 'Shared Rack Co-Location'
    ,          sum(t17.linetotal) as 'Remote Hands / Engineering Support'
    ,          sum(t18.linetotal) as 'Rack Co-Location- Setup & Installation Charge'
    ,          sum(t19.linetotal) as 'Rack Co-Location Space'
    ,          sum(t20.linetotal) as 'Power'
    ,          sum(t21.linetotal) as 'Wireless Ip Microwave Link - Single-Homed Setup & Installation Charge'
    ,          sum(t22.linetotal) as 'Wireless Ip Microwave Link - Dual-Homed Setup & Installation Charge'
    ,          sum(t23.linetotal) as 'Wireless Ip Microwave Link - Recurring Charge Including Mca Fees'
    ,          sum(t24.linetotal) as 'Local Connectivity - Vlan'
    ,          sum(t25.linetotal) as 'Local Connectivity - Bandwidth Access Cost (Traffic)'
    ,          sum(t26.linetotal) as 'Local Connectivity - Activation And Installation Charges For Fibre-Based Ethernet Business Plus'
    ,          sum(t27.linetotal) as 'Local Connectivity - Ethernet Over Fibre'
    ,          sum(t28.linetotal) as 'International Private Leased Circuit'
    ,          sum(t29.linetotal) as 'International Private Leased Circuit Setup Fee'
    ,          sum(t30.linetotal) as 'Wireless link operating on the Unlicensed Band - Setup fee'
    ,          sum(t31.linetotal) as 'Wireless link operating on the Unlicensed Band - Recurring Charge'
    ,          sum(t32.linetotal) as 'GIGE LX SFP Module'
    ,          sum(t33.linetotal) as 'PSAX 1000 Fan/Alarm Module'
    ,          sum(t34.linetotal) as '-48 VDC PS PSAX 2300 4500'
    ,          sum(t35.linetotal) as 'Stratum/-48VDC PS PSAX 1000'
    ,          sum(t36.linetotal) as 'Alcatel Equipment TNEs FOR INVOICE POSTING ONLY'
    ,          sum(t37.linetotal) as 'Tower Site Works'
    from
              ocrd t0 left outer join ordr t1 on t0.cardcode = t1.cardcode
                        left outer join rdr1 t2 on t2.docentry = t1.docentry
                        left outer join rdr1 t3 on t3.docentry = t1.docentry and t3.itemcode = 'DSC000001'
                        left outer join rdr1 t4 on t4.docentry = t1.docentry and t4.itemcode = 'FLC000001'
                        left outer join rdr1 t5 on t5.docentry = t1.docentry and t5.itemcode = 'RVL000001'
                        left outer join rdr1 t6 on t6.docentry = t1.docentry and t6.itemcode = 'RVL000002'
                        left outer join rdr1 t7 on t7.docentry = t1.docentry and t7.itemcode = 'RVL000003'
                        left outer join rdr1 t8 on t8.docentry = t1.docentry and t8.itemcode = 'RVL000004'
                        left outer join rdr1 t9 on t9.docentry = t1.docentry and t9.itemcode = 'RVL000005'
                        left outer join rdr1 t10 on t10.docentry = t1.docentry and t10.itemcode = 'RVL000006'
                        left outer join rdr1 t11 on t11.docentry = t1.docentry and t11.itemcode = 'RVL000007'
                        left outer join rdr1 t12 on t12.docentry = t1.docentry and t12.itemcode = 'RVL000008'
                        left outer join rdr1 t13 on t13.docentry = t1.docentry and t13.itemcode = 'RVL000009'
                        left outer join rdr1 t14 on t14.docentry = t1.docentry and t14.itemcode = 'RVL0000010'                    
                        left outer join rdr1 t15 on t15.docentry = t1.docentry and t15.itemcode = 'RVM000001'
                        left outer join rdr1 t16 on t16.docentry = t1.docentry and t16.itemcode = 'RVM000002'
                        left outer join rdr1 t17 on t17.docentry = t1.docentry and t17.itemcode = 'RVM000003'
                        left outer join rdr1 t18 on t18.docentry = t1.docentry and t18.itemcode = 'RVM000004'
                        left outer join rdr1 t19 on t19.docentry = t1.docentry and t19.itemcode = 'RVM000005'
                        left outer join rdr1 t20 on t20.docentry = t1.docentry and t20.itemcode = 'RVM000006'
                        left outer join rdr1 t21 on t21.docentry = t1.docentry and t21.itemcode = 'RVN000001'
                        left outer join rdr1 t22 on t22.docentry = t1.docentry and t22.itemcode = 'RVN000002'
                        left outer join rdr1 t23 on t23.docentry = t1.docentry and t23.itemcode = 'RVN000003'
                        left outer join rdr1 t24 on t24.docentry = t1.docentry and t24.itemcode = 'RVN000004'
                        left outer join rdr1 t25 on t25.docentry = t1.docentry and t25.itemcode = 'RVN000005'                    
                        left outer join rdr1 t26 on t26.docentry = t1.docentry and t26.itemcode = 'RVN000006'
                        left outer join rdr1 t27 on t27.docentry = t1.docentry and t27.itemcode = 'RVN000007'
                        left outer join rdr1 t28 on t28.docentry = t1.docentry and t28.itemcode = 'RVN000008'
                        left outer join rdr1 t29 on t29.docentry = t1.docentry and t29.itemcode = 'RVN000009'
                        left outer join rdr1 t30 on t30.docentry = t1.docentry and t30.itemcode = 'RVN0000010'
                        left outer join rdr1 t31 on t31.docentry = t1.docentry and t31.itemcode = 'RVN0000011'
                        left outer join rdr1 t32 on t32.docentry = t1.docentry and t32.itemcode = 'TNE000001'
                        left outer join rdr1 t33 on t33.docentry = t1.docentry and t33.itemcode = 'TNE000002'
                        left outer join rdr1 t34 on t34.docentry = t1.docentry and t34.itemcode = 'TNE000003'
                        left outer join rdr1 t35 on t35.docentry = t1.docentry and t35.itemcode = 'TNE000004'
                        left outer join rdr1 t36 on t36.docentry = t1.docentry and t36.itemcode = 'TNE000005'
                        left outer join rdr1 t37 on t37.docentry = t1.docentry and t37.itemcode = 'TNE000006'
    where
              t0.groupcode in (100,114)
    group by
              t0.cardcode
    ,          t0.cardname
    Can you help please?
    Thanks,
    vankri
    Edited by: vankri on Nov 10, 2009 1:02 PM

    Try something like this with all your required items:
    Select  t0.cardcode , t0.cardname , sum(t2.linetotal) as 'Total'
      ,(select sum(r.linetotal) from rdr1 r join ordr o on r.docentry=o.docentry
              where o.cardcode=t0.Cardcode and r.ItemCode= u2019DSC000001')
                        as 'GATEWAY - IPLCS'
      ,(select sum(r.linetotal) from rdr1 r join ordr o on r.docentry=o.docentry
              where o.cardcode=t0.Cardcode and r.ItemCode= u2019FLC000001u2019)
                        as 'GATEWAY - IP TERMINATING CHRGS & LINKS'
    From ocrd t0 left outer join ordr t1 on t0.cardcode = t1.cardcode
                      left outer join rdr1 t2 on t2.docentry = t1.docentry
    group by t0.cardcode ,t0.cardname

  • Query designing problem while applying cell properties

    Hello Experts,
    I have a problem while designing query. Problem is as follow:
    I have a calculated field on key figure column. This key figure calculates variance between 2 columns.
    for E.g I have 2 columns Budget and Actual and third column is %Variance which should be          
    1. ((Actual - Budget)/Budget) *100 or
    2. ((Budget -Actual)/Budget)*100, depening on some values on the row i should use any of these 2 formulas but the result should be dispalyed in single column % Variance.
    how can i change the formula in key figures depending on these conditions. I can achieve this by applying cells but i dont want to do so as it is very complex way to desing these queries.
    also let me know applying cells on query affects its performance or not?
    Regards,
    Nirav

    Hi Nitin,
    Your reply may help me.
    But my exact requirement is not that. Requirement is as follow:
    I have created Char. Structure in row which contains few rows as revenue and few rows as expense.
    I created them by creating selections. Now in case of expense the variance should be                (Budget-Actual)/Budget *100.
    In case of revenue variance should be (Actual-Budget)/Budget *100.
    So, here i have to find out revenue & expense char. iresspective of which one is greater.
    Regards,
    Nirav

  • Query has problem

    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --

    848478 wrote:
    Below query has problem .
    Pls see the queries for Usage Summary with Partition and Without Partition
    . I have executed this now so it may be in Buffer …****
    DB Query ... SUM from event objects, bin variables
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    --                   and event.Poid_id0 >= 266838277921701888****
    --                 and event.Poid_id0 < 267928993456455680****
    --               and ebal.obj_id0 >= 266838277921701888****
    --             and ebal.obj_id0 < 267928993456455680****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    SELECT sum(amount) , sum(quantity), event.poid_type,ebal.
    resource_id,****
    event.service_obj_type, event.service_obj_id0,ebal.
    rate_obj_id0, ebal.OFFERING_OBJ_ID0, ebal.IMPACT_CATEGORY ****
    FROM event_bal_impacts_t ebal, item_t item, event_tevent*
    WHERE event.item_obj_id0 = item.poid_id0****
    AND ebal.obj_id0 = event.poid_id0****
    and event.Poid_id0 >= 264199450015039488****
    and event.Poid_id0 < 265237388991660032****
    and ebal.obj_id0 >= 264199450015039488****
    and ebal.obj_id0 < 265237388991660032****
    AND item.bill_obj_id0 = 148715294****
    AND ebal.product_obj_id0 = 27433706****
    AND ebal.account_obj_id0 = 146876519****
    AND item.account_obj_id0 = 146876519****
    AND event.poid_type like '%session/telco/gsm%'****
    AND ebal.impact_category <> 'Free'****
    AND resource_id not in (select resource_id from
    resource_id_t)****
    group by****
    event.poid_type, ebal.resource_id,****
    event.service_obj_type, event.service_obj_id0,****
    ebal.rate_obj_id0, ebal.OFFERING_OBJ_ID0,ebal.
    IMPACT_CATEGORY****
    order by****
    ebal.resource_id desc;****
    --Consider getting the asterisk key fixed, since it results in invalid SQL syntax

  • Query/join/where/child parent table

    query/join/where/child parent table
    hello my query below is not working for my cf application can
    you help?
    thanks
    this is my previous question so i tried to do it my self.
    tcase_req.tcase_req_id is added
    tcase.case_id=tcase_req.case_id :note that this is not part of the
    inner join in the from clause. it does not depend on the rest of
    the inner join.
    the reaon for this is that i need to get
    WHERE tcase_req.case_req_typ_cd = cwc and
    tcase_req.case_req_typ_cd = cwnc
    here is the original question
    Hello ,
    I need help again on the inner join/and conditions in the
    where clause
    I have these 2 tables tcase and tcase_req where there common
    field Is the case_id.
    tcase is the parent table and the tcase_req is the child
    table.
    (1)I wanted to add this to the from clause using the inner
    join table . what do I do and where do I put it
    (2)I then need to put a condition in the where clause to
    replace
    WHERE TCASE.CASE_NBR Like '%HPOZ%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
    by
    WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR Like
    '%CWNC%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
    Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
    is this efficient??
    thanks
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id,
    tcase_req.case_req_typ_cd
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE TCASE.CASE_NBR Like '%CWC%'and
    tcase.case_id=tcase_req.case_id
    (3)To a tcase_req
    Suffix_id are equal to = cwc and cwnc ( in the tcase_req
    table)(Suffix_id is the field that cintains the suffix cwc and cwnc
    for the tcase_req)
    also,
    this is the original query and it works fine
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR Like
    '%CWNC%')

    query/join/where/child parent table
    hello my query below is not working for my cf application can
    you help?
    thanks
    this is my previous question so i tried to do it my self.
    tcase_req.tcase_req_id is added
    tcase.case_id=tcase_req.case_id :note that this is not part of the
    inner join in the from clause. it does not depend on the rest of
    the inner join.
    the reaon for this is that i need to get
    WHERE tcase_req.case_req_typ_cd = cwc and
    tcase_req.case_req_typ_cd = cwnc
    here is the original question
    Hello ,
    I need help again on the inner join/and conditions in the
    where clause
    I have these 2 tables tcase and tcase_req where there common
    field Is the case_id.
    tcase is the parent table and the tcase_req is the child
    table.
    (1)I wanted to add this to the from clause using the inner
    join table . what do I do and where do I put it
    (2)I then need to put a condition in the where clause to
    replace
    WHERE TCASE.CASE_NBR Like '%HPOZ%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
    by
    WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR Like
    '%CWNC%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
    Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
    is this efficient??
    thanks
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id,
    tcase_req.case_req_typ_cd
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE TCASE.CASE_NBR Like '%CWC%'and
    tcase.case_id=tcase_req.case_id
    (3)To a tcase_req
    Suffix_id are equal to = cwc and cwnc ( in the tcase_req
    table)(Suffix_id is the field that cintains the suffix cwc and cwnc
    for the tcase_req)
    also,
    this is the original query and it works fine
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR Like
    '%CWNC%')

  • Join PRoblems in Oracle  BI

    Experts,
    Do we have any automated tool that will detect joins in the layers ???
    secondly in case we start with manually joining the tables will there be any join problems like we have in BO?
    Third In case of manual joins in physical layer can have to make joins that suit our requirement or we have to follow the database structure. and join all columns that could be joined in the structure
    thanks in advance
    Edited by: ZSAMEE on May 2, 2011 11:55 AM
    Edited by: ZSAMEE on May 2, 2011 12:11 PM

    As far as I know there are no tools out there that would automatically join the tables in BMM layer. You have to join the fact and dimensions to design star/snow flake schema's manually.
    Thanks,
    -Amith.

  • HT6114 Joined problem labels Labels to color everyone in the line archives mp3 and selection in dots as it exists now can be anyone who wants to do what HELPS of how thoroughly enjoyable.

    Joined problem labels Labels to color everyone in the line archives mp3 and selection in dots as it exists now can be anyone who wants to do what HELPS of how thoroughly enjoyable.

    Sp188585 wrote:
    Joined problem labels Labels to color everyone in the line archives mp3 and selection in dots as it exists now can be anyone who wants to do what HELPS of how thoroughly enjoyable.
    Sorry, you will have to outline your issues more clearly.
    Thanks
    Pete

  • Failure to search - query window problem

    Hello again,
    Have anyone of you came across a problem with SAP search mechanism in query window attached to document field? I've created a simple query of "Select acctcode,acctname from OACT where acctcode like '2%' and postable='Y' order by acctcode" and attached it to one of document fields (doesn't matter which one). When I run this query a usual window poped up with a search field on the top, but when I typed "2" in it, selection bar moved right into first 231 account ignoring any of the lesser numbers. There is more - when I changed query to search for '5%' like accounts, I gained the same result - accounts less than 530 were ignored even if I typed "50" or "51". BUT - when I changed query sort order to "desc", all account became "findable".
    I got this problem in one database only which is SAP 8.8 PL10 version upgraded recently from 2007A one. I've checked with a newly created 8.8 and such problem hasn't occured.

    Hello Thomasz,
    I might be off base here, what happens when you use this??? 
    Do you get the same types of query window problem???
    Select
    acctcode,
    acctname,
    segment_0
    from OACT
    where Segment_0 like '2%'
    order by acctcode
    for browse
    Regards,
    Zal

Maybe you are looking for

  • Possible to disable all notifications in iOS 5?

    In iOS 4, when I wanted to take a nap, I would go to settings->notifications->off.  That would disable all notifications, so I would only be woken by a phone call or a text message, not by a notification.  In iOS 5, I no longer see a way to turn off

  • Email Client - POP3 Counting Incoming Email

    I have no email stored on the N900.  At the end of every day I delete everything from the inbox.  I noticed something yesterday when I went to delete messages... An option that says "Show More" with numbers.  I attached a print screen of it.   I have

  • Performance based maintenance

    I have made performance based maintenance plan , in this plan i have assin counter with annual estimate 100 nos and my Maintenance plan cycle lenth 10000 nos .  ( annual estimate i kept 100 nos because  i need  maintenance order counter baase only )

  • Physical backup from OS windows 32 to OS windows 64

    Can I clone my Oracle 10g Database running on xeon-64bit with OS windows 2003 - 32 bit into xeon-64bit with OS windows 2003 64 bit? So, same architecture with different OS bit version. Thank you

  • Recommend good books for learning java?

    im using Java How to Program, Deitel&deitel. i find it all right. what do u think about this one? can u recommend any other? Natasha