Suppress Duplicates

I am running a query in report builder with a union between two select statements to list machines and their AV product, but some machines do not have anything installed. The first statement brings back the results of the ones with a detected product
and then the second statement just brings back all the machines in the group and so some machines show up in each statement - I have a field in the second statement which just returns an empty field (vAgentStatusRpt.toolTipNotes). I want to display
the machines if they match the first statement, but if it is then listed in the second statement as well I don't want to display the second result. Is that possible?
SELECT
  VMonitorEventsetAgentAssignment.machName
  ,VMonitorEventsetAgentAssignment.EventSetName
  ,vAgentStatusRpt.OperatingSystem
FROM
  kasadmin.org
  INNER JOIN machGroup
    ON kasadmin.org.id = machGroup.orgFK
  INNER JOIN dbo.machNameTab mn
    ON machGroup.machGroupGuid = mn.machGroupGuid
  INNER JOIN VMonitorEventsetAgentAssignment
    ON mn.agentGuid=VMonitorEventsetAgentAssignment.agentGuid
  INNER JOIN vAgentStatusRpt
    ON mn.agentGuid = vAgentStatusRpt.agentGuid
WHERE
  VMonitorEventsetAgentAssignment.EventSetName LIKE N'%AV - %'
  AND kasadmin.org.orgName = @account_name
UNION
SELECT
  vAgentStatusRpt.ComputerName
  ,vAgentStatusRpt.toolTipNotes
  ,vAgentStatusRpt.OperatingSystem
FROM
  kasadmin.org
  INNER JOIN machGroup
    ON kasadmin.org.id = machGroup.orgFK
  INNER JOIN dbo.machNameTab mn
    ON machGroup.machGroupGuid = mn.machGroupGuid
  INNER JOIN vAgentStatusRpt
    ON mn.agentGuid = vAgentStatusRpt.agentGuid
WHERE
  kasadmin.org.orgName = @account_name

I've just been working on this query further, how would I add another union statement after the first select and have them go into the same temp table which the final statement uses?
ie - like below (Which doesn't work...)
SELECT
  VMonitorEventsetAgentAssignment.machName
  ,VMonitorEventsetAgentAssignment.EventSetName
  ,vAgentStatusRpt.OperatingSystem
INTO #temp
FROM
  kasadmin.org
  INNER JOIN machGroup
    ON kasadmin.org.id = machGroup.orgFK
  INNER JOIN dbo.machNameTab mn
    ON machGroup.machGroupGuid = mn.machGroupGuid
  INNER JOIN VMonitorEventsetAgentAssignment
    ON mn.agentGuid=VMonitorEventsetAgentAssignment.agentGuid
  INNER JOIN vAgentStatusRpt
    ON mn.agentGuid = vAgentStatusRpt.agentGuid
WHERE
  VMonitorEventsetAgentAssignment.EventSetName LIKE N'%AV - %'
  AND kasadmin.org.orgName = @account_name
SELECT *
FROM #temp
____NEW Section_________
UNION
SELECT
  kav.ComputerName
  ,kav.ClientVersion
  ,kav.OperatingSystem
INTO #temp
FROM
  kasadmin.org
  INNER JOIN machGroup
    ON kasadmin.org.id = machGroup.orgFK
  INNER JOIN dbo.machNameTab mn
    ON machGroup.machGroupGuid = mn.machGroupGuid
  INNER JOIN kav.vmachines kav
    ON mn.agentguid = kav.agentguid
WHERE
  kasadmin.org.orgName = @account_name
SELECT *
FROM #temp
_______END NEW Section
UNION
SELECT
  vAgentStatusRpt.ComputerName
  ,vAgentStatusRpt.toolTipNotes
  ,vAgentStatusRpt.OperatingSystem
FROM
  kasadmin.org
  INNER JOIN machGroup
    ON kasadmin.org.id = machGroup.orgFK
  INNER JOIN dbo.machNameTab mn
    ON machGroup.machGroupGuid = mn.machGroupGuid
  INNER JOIN vAgentStatusRpt
    ON mn.agentGuid = vAgentStatusRpt.agentGuid
WHERE
  kasadmin.org.orgName = @account_name
AND NOT EXISTS(SELECT 1
FROM #temp
WHERE machName = vAgentStatusRpt.ComputerName

Similar Messages

  • How to suppress duplicate records in rtf templates

    Hi All,
    I am facing issue with payment reason comments in check template.
    we are displaying payment reason comments. Now the issue is while making batch payment we are getting multiple payment reason comments from multiple invoices with the same name and it doesn't looks good. You can see payment reason comments under tail number text field in the template.
    If you provide any xml syntax to suppress duplicate records for showing distinct payment reason comments.
    Attached screen shot, template and xml file for your reference.
    Thanks,
    Sagar.

    I have CRXI, so the instructions are for this release
    you can create a formula, I called it cust_Matches
    if = previous () then 'true' else 'false'
    IN your GH2 section, right click the field, select format field, select the common tab (far left at the top)
    Select the x/2 to the right of Supress  in the formula field type in
    {@Cust_Matches} = 'true'
    Now every time the {@Cust_Matches} is true, the CustID should be supressed,
    do the same with the other fields you wish to hide.  Ie Address, City, etc.

  • Need help-SQL with result format suppressing duplicate values

    I am trying to write a SQL which would select data from the below tables(in reality i have many other tables also) but I wanted to know how do i get the data in the format given below.
    The scenario is :-A training_plan can N no. of OBJECTIVES and EACH objective has N no.of activities
    Insert into TEST_TRAINING_PLAN
       (TPLAN_ID, TPLAN_NAME, TPLAN_DESC, T_PERSON_ID
    Values
       ('111', 'test_name', 'test_name_desc', '****')
    Objectives table:-
    Insert into TEST_TRAINING_OBJECTIVE
       (T_OBJECTIVE_ID,  T_OBJECTIVE_NAME,T_owner)
    Values
       ('10', 'objective1', '1862188559')
    Objective and Training Plan relationship table where TPLAN_ID is the foreign key.
    Insert into TEST_TP_OBJECTIVE
       (TPLAN_TOBJ_ID, TPLAN_ID, T_OBJECTIVE_ID, 
        REQUIRED_CREDITS)
    Values
       ('1', '111', '10',5)
    Objective and Activity relationship table where T_OBJECTIVE_ID is the foreign key from the TEST_TRAINING_OBJECTIVE table.
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1000', '10', 'selfstudy event', SS1, NULL,
        'Event', 0, 0);
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1001', '10', 'SQLcourse', 1, NULL,
        'Course', 1, 0);
    Insert into TEST_TRAIN_OBJ_ACTIVITY
       (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
        ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
    Values
       ('1002', '10', 'testSQL', 1, NULL,
        'test', 2, 0);
    COMMIT;
    firstname     emplid     Tplan name     Number of activities/credits completed(for TP)     Objective Name     Number of required activities/Credits (for objective)     Number of activities/credits completed(for objective)     activity  name     activity completion status
    U1     U1     TP1     5                         
                        OBJ1     4     3     C1     PASSED
                                       C2     PASSED
                                       C3     WAIVED
                                       T1     ENROLLED
                                       T2     ENROLLED
                        OBJ2     3     2          
                                       S1     ENROLLED
                                       S2     PASSED
                                       T3     WAIVED
    U1     U1     TP2                         C4     INPROGRESS
                   50     OBJ11     50     30     C11     PASSED
    **The second row where we have another training_plan record and accordingly all objectivesand their objective.**similarly ,i need to display many Training_plan records in such tabular format.Please help with the SQL query to select and display data in the above format
    If you want to suppress duplicate values in some of your results columns
    I am using toad 9.1 using Oracle 10g version 2

    Hi,
    You can use the BREAK command to suppress duplicate values.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12009.htm#SQPUG030
    (scroll down for an example)
    It's a 'SQL*Plus-ism', not sure if TOAD's capable to handle it.
    Simple example:
    HR%xe> break on department_name
    HR%xe> select l.department_name
      2  ,        e.last_name
      3  ,        e.first_name
      4  from     departments l
      5  ,        employees e
      6  where    e.department_id = l.department_id;
    DEPARTMENT_NAME                LAST_NAME                 FIRST_NAME
    Executive                      King                      Steven
                                   Kochhar                   Neena
                                   De Haan                   Lex
    IT                             Hunold                    Alexander
                                   Ernst                     Bruce
                                   Austin                    David
                                   Pataballa                 Valli
                                   Lorentz                   Diana
    Finance                        Greenberg                 Nancy
                                   Faviet                    Daniel
                                   Chen                      John
                                   Sciarra                   Ismael
                                   Urman                     Jose Manuel
                                   Popp                      Luis
    Purchasing                     Raphaely                  Den
                                   Khoo                      Alexander
                                   Baida                     Shelli
                                   Tobias                    Sigal
                                   Himuro                    Guy
                                   Colmenares                Karen
    Shipping                       Weiss                     Matthew
                                   Fripp                     Adam
                                   Kaufling                  Payam
                                   Vollman                   Shanta
                                   Mourgos                   Kevin
                                   Nayer                     Julia
                                   Mikkilineni               Irene
                                   Landry                    James
    Public Relations               Baer                      Hermann
    Accounting                     Higgins                   Shelley
                                   Gietz                     William
    106 rijen zijn geselecteerd.

  • Looking for alternative formulas to suppress duplicates through Section Expert

    I'm using version 14.0.2.364 CR and having trouble building a customized treatment plan report for our case workers to manage to filter out duplicates. I'll do my best to give a layout and criteria:
    GH: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    Case #
    First Name
    Last Name
    Home Phone
    DOB
    Tx Plan Start Date
    Tx Plan End Date
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    GF: CDCLIENT.SAI_ID    STAFF.SORT_NAME
    The problem is that when pulling data for each client, it will bring forward all their tx plans, but I just want to show the newest one. I was inclined to go to section expert > Select Details > Suppress (No Drill down) and in X-2, put the following:
    if {CDCLIENT.CASE_NUM} = next({CDCLIENT.CASE_NUM}) then true else false
    This will suppress duplicate records ONLY if I have this sorted by Case #. The problem is, we want to sort by Tx Plan End Date, so case workers can identify which clients are coming up for expiring tx plans. The way the data is stored, I have the first 5 columns from one table, and the last two in another. I also tried to format the field, go to "Commons" on CASE_NUM and choose Suppress (if Duplicated) in combination with the Section Expert, but it was still pulling both if I have it the sort order start at PLAN.END_DATE.
    Is there a way to preserve the most recent begin / end date and suppress any duplicates without sorting it by case #?

    Jamie Wiseman wrote:
    or in the case of your report use this as the suppression formula...sorry again about the original code.
    {AZCLPLAN.BEG_DATE} <> maximum ({AZCLPLAN.BEG_DATE}, {CDCLIENT.SAI_ID})
    The problem with this suppression is that for each Case Worker (Group) it is only pulling one client record forward, thus suppressing all other multiple unique clients associated with this caseworker.
    What my original report (before your suggestions is this):
    Case Manager Name (group CDCLIENT.SAI_ID)
    CDCLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2013
    01/01/2014
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Notice, it finds two records for Client A, because they are an existing client that needs continuous treatment. The caseworker doesn't need to see the older record for Client A, but also needs to see all other unique records.
    I basically want it to suppress the first row (older treatment plan) for Client A and have it display like this in conjunction with all other unique clients:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    2
    Client B
    Client B
    222-222-2222
    02/22/22
    02/02/2013
    02/02/2014
    3
    Client C
    Client C
    333-333-3333
    03/31/33
    03/03/2013
    03/03/2014
    1
    Client A
    Client A
    111-111-1111
    01/01/11
    01/01/2014
    01/01/2015
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    What your Section Expert + Summary Code did, was essentially this:
    Case Manager Name (group CDCLIENT.SAI_ID)
    CLIENT.CASE_NUM
    CDCLIENT.FIRST_NAME
    CDCLIENT.LAST_NAME
    CDCLIENT.PHONE
    CDCLIENT.DOB
    PLAN.BEG_DATE
    PLAN.END_DATE
    4
    Client D
    Client D
    444-444-4444
    04/04/44
    04/04/2014
    04/04/2015
    Maximum
    04/04/2015
    Let me know if this is possible.

  • Suppress duplicate notifications if member and manager in assignment group are same

    Hello All,
    We are currently using out of the box notification mechanism in HPSM 9.32. I have added few notifcations for SD, IM, CM and PM Modules.
    I would like to know if there is a way to suppress duplicate email notification being sent to the same person if he/she is of the member as well as manager or coordinator of the same group.
    Currently HPSM is sending 2 emails notifications to the same person one which configured to be sent to the manager of the group and another to the assignment group. Hence, manager is also one of the member in the assignment then he is getting 2 email notifications.
    I need your assistance in suppressing such duplicate email notifications.
    Regards,
    NSEIL

    I have CRXI, so the instructions are for this release
    you can create a formula, I called it cust_Matches
    if = previous () then 'true' else 'false'
    IN your GH2 section, right click the field, select format field, select the common tab (far left at the top)
    Select the x/2 to the right of Supress  in the formula field type in
    {@Cust_Matches} = 'true'
    Now every time the {@Cust_Matches} is true, the CustID should be supressed,
    do the same with the other fields you wish to hide.  Ie Address, City, etc.

  • How to suppress duplicates

    Hi,
    how can I suppress in Forms duplicates! I mean if I have in my Table two same job's then it should be suppress.
    In SQL can we do it with DISTINCT! How in Forms?

    You can set WHERE Clause
    where ROWID in (select MIN(ROWID) from MY_TABLE
    group by COLUMN1, COLUMN2,... COLUMN_LAST)
    Forms works slowly then view but you can update (delete) data using PRE-UPDATE (-DELETE) triggers.

  • Suppress Duplicates and Summarize (Count)

    Hello,
    I am somewhat new to Crystal Reports. I am trying to do a couple things that I cannot figure it out. Please help.
    1. Trying to count a field {JobHours.JobNumber} without the duplicates. I have suppressed the duplicates on the field and the summary is still counting them. Group # 3 Name: JobType.Description
         I could not figure it out so I created also created this formula: {@JobNoDuplicate}
         numberVar X :=1 ;
         if ({JobRecord.Jobnumber}) = previous({JobRecord.Jobnumber}) then 0 else 1
         It works but it wont let me summarize the {@JobNoDuplicate}.
    2. My report is grouped by the "start date" then by the "contractor name" then again by the "job type". I need to count the number of jobs that were planned but its in another crystal report. I dont know how to get the information on this report without messing up all my data/fields.
    Please help and thank you.

    Hi Nicole,
    Create a formula with this code:
    DistinctCount({JobNumber})
    That should give you the count of Job numbers without the duplicates.
    If you're trying to find out count of Job Numbers for each group, then just change the code to:
    DistinctCount({JobNumber}, {group field})
    For the second question, please post that as a new discussion per SCN's rules.
    -Abhilash

  • How to suppress Duplicates in oracle reports?

    My database has a list of actions with numerous dates.
    My query lists something like this:
    ACTION Dates
    Hold consultation Forum Jan-Feb
    Hold consultation Forum Apr-Mar
    Hold consultation Forum Nov-Dec
    Is it possible to restrict the repitition of the same action in oracle reports? I don't wanna create a repeating group for actions. Is it possible?

    If you have duplicate lines then use the DISTINCT operator in your sql query - if you mean group the actions under one date then you need to use a repeating frame

  • Suppress Duplicates That Aren't Exactly Duplicates

    I'm using the following query command in a report:
    SELECT DISTINCT
                          TOP (100) PERCENT U.USER_NAME, A.NAME, S.SAMPLE_NUMBER, V.VERSION
    FROM         dbo.TEST AS T INNER JOIN
                          dbo.SAMPLE AS S ON T.SAMPLE_NUMBER = S.SAMPLE_NUMBER INNER JOIN
                          dbo.ANALYSIS AS A ON T.ANALYSIS = A.NAME INNER JOIN
                          dbo.LIMS_USERS AS U ON A.KEY_CONTACT = U.USER_NAME INNER JOIN
                          dbo.VERSIONS AS V ON A.VERSION = V.VERSION
    WHERE     (S.STATUS = 'U') AND (S.LOGIN_DATE BETWEEN CONVERT(datetime, CONVERT(varchar, DATEADD(day, - 100, GETDATE()), 101), 101) AND
                          CONVERT(datetime, CONVERT(varchar, DATEADD(day, 0, GETDATE()), 101), 101))
    ORDER BY U.USER_NAME, A.NAME, S.SAMPLE_NUMBER, V.VERSION DESC
    Basically, my output is something like this:
    John   pH   12365   2 
    John   pH   10020   2
    Sally   pH   12365   1
    Sally   pH   10020   1
    Sue    Turb  56479   3
    Sue    Turb  56479   2
    Sue    Turb  56479   1
    I don't want the report to show the rows with a pH analysis of an old method version. Thus, only John's records should show up and not Sally's. And I don't want Sue's last two records to show up, since version 3 is the highest.
    Maybe there's a way to modify the query command to only show records for the highest version of a method, but I'm not sure how to do that. Or maybe there's a way to suppress the lower version analyses in Crystal.
    Any ideas?

    you can do this by:
    1) create a group on the name
    2) put a summary on the version for Minimum for the entire report
    3) put a summary on the version for Maximum for the name group
    4) create a suppression formula for the details section using something similar to
    = Minimum() or
    < Maximum(, namegroup)
    Edited by: Jamie Wiseman on Dec 31, 2009 3:57 PM

  • Suppressing duplicates for summing

    Post Author: srikarthy
    CA Forum: General
    Order
    Amount
    Item
    quantity
             ATR-PSU1
    1211.93
    PR0000460
    583.14
    PR0000460
    291.57
             ATR-PSU1
    1.00
    PR0000460
    0.00
             ATR-PSU1
    1.00
    PR0000460
    0.00
             ATR-PSU1
    1.00
    PR0000460
    13.60
             ATR-PSU1
    1.00
    PR0000460
    277.97
             ATR-PSU1
    1.00
    PR0000750
    628.79
    PR0000750
    314.39
             ATR-PSU1
    3.00
    PR0000750
    0.00
             ATR-PSU1
    3.00
    PR0000750
    0.00
             ATR-PSU1
    3.00
    PR0000750
    27.20
             ATR-PSU1
    3.00
    PR0000750
    287.19
             ATR-PSU1
    3.00
    Good Day!
    In the report above, each production order has various costs like material costs, operations cost hence there are many lines for a production order. But the quantity is just 1 and 3 in the two production orders above. How to total the quantity by item? When I sum it, it shows 20 instead of 4.
    Thanks,
    srikarthy

    Post Author: synapsevampire
    CA Forum: General
    Assuming you're already grouped by whatever entity you are trying to show the sum for, add a group by the order (you can suppress it if need be) and use the 3 formula method:
    ATR-PSU1 group header formula:whileprintingrecords;numbervar MySum:=0
    Order Group Header formula:whileprintingrecords;numbervar MySum:=MySum+{table.quantity}
    ATR-PSU1 group footer formula (displays the sum here):whileprintingrecords;numbervar MySum
    -k

  • Unwanted suppression of duplicate rows

    Hi,
    I am on 10.1.3.4
    I have a business area where all of the underlying folders have no aggregation applied to any of the columns.
    I have some cells that are calculated, but nothing more complex than A - B or substring(A,1,6)....
    When I pull my query back I find that it suppresses duplicate values - unless I pull back enough columns to ensure that the permutation of all columns is unique.
    I can get around this by doing this and then hiding the unwanted columns.
    Changing all columns to aggregation = none on the function bar does not work.
    Any idea why I am getting this behaviour, what fix to apply??
    thanks for your thoughts,
    Robert.
    Many thanks for your input,
    Robert.

    This is general OBIEE behavior ...to give you the distinct records (suppress the duplicate values). This is because this attr may be a part of Hiereachy Key. To perform a simple test..create a RPD with no aggr rule and no hierarchy. Also, for the DB features in Physical Layer uncheck support distinct...
    Not sure why you don't want BI to behave in its proper way...but for a workarnd..your first method is correct and second is wrong.

  • Combo Box with duplicate data

    Hello All,
    I am creating a form with a combo box but the data from the table is duplicating.  Can anyone provide guidance on how to make the combo box only display only two choices of the data?  For example, when the box is selected the drop down list
    will have multiple/group of  'Yes' and 'No'.  It appears that everytime a record is added to the table, it gets duplicated.  I think I'm overlooking something from working long on this and it maybe something simple/obvious.   Any
    help would be appreciated, thanks.
    Evin

    As Bruce said you can use the DISTINCT predicate to suppress duplicate rows, but if you are getting duplicates in a combo box's list it suggests that you are querying the wrong table as the Control's RowSource property.  If we take a simple example
    of a combo box to list states, then the following would return duplicates of the table contains rows for two or more cities in the same state:
    SELECT State
    FROM Cities
    ORDER BY State;
    You could suppress the duplicates with:
    SELECT DISTINCT State
    FROM Cities
    ORDER BY State;
    but the correct solution would be:
    SELECT State
    FROM States
    ORDER BY State;
    i.e.  in the Cities table State is a foreign key column referencing the primary key of States.  You might ask why have a States table at all as the values are already in Cities?  The answer is that by having a States table you can enforce referential
    integrity in the relationship between Cities and States, preventing the insertion of invalid State values into Cities.  Without protecting the integrity of the database in this way errors in data entry will sooner or later occur (Murphy's Law is infallible
    in this respect!).  I have personal experience which is testament to this, having once found three versions of my own name as author in a table of references to technical articles in my own field of work.  As far as the database is concerned this
    makes me three separate people!  The table should have referenced the key of an Authors table of course.
    Ken Sheridan, Stafford, England

  • New to Crystal, seeing duplicate records in my report of the same field

    Post Author: trillium
    CA Forum: General
    I am new to Crystal Reports 10.   I am having to use it with Rational ClearQuest and I am seeing the same problem over and over again and I am hoping someone can help!
    Some reports I have created the records in clearquest are displaying only once.   I have started a new report in crystal and for some reason when I perform the report query in rational one record is displaying 2 to three and sometimes four times even though in the database there is only one record.  I have seen this in other reports I have created but I attributed it to multiple values in one field.
    Any help on fixing this would be greatly appreciated, I have tried the Suppress Duplicates but it doesn't seem to help except hiding something I need.

    Post Author: GraemeG
    CA Forum: General
    I agree with SKodidine - check your joins and selections to make sure that all variations are taken care of. Here's a simplified version of one that I messed around with for ages when I started on CR:
    Table 1 - TRANSACTIONS, Item, date, warehouse, qtyITEMA   AUCKLAND          01/01/07    15ITEMA   AUCKLAND          20/01/07    10ITEMA   CHRISTCHURCH  31/01/07    25ITEMA   OTAGO                15/01/07     5
    Table 2 - ITEM MASTER, Item, descriptionITEMA   WINDOW FRAME
    Table 3 - ITEM/WAREHOUSE MASTER, Item, warehouse, ABC Class, unit costITEMA   AUCKLAND         MEDIUM USAGE  $5.00ITEMA   CHRISTCHURCH  HIGH USAGE       $5.05ITEMA   OTAGO  LOW      USAGE                $5.00
    The report was to show:Item, description, date, qty, movement cost
    My joins were:Table 1 - Table 2 on itemTable 1 - Table 3 on item
    What I got out was:ITEMA   WINDOW FRAME   01/01/07   15   $75.00ITEMA   WINDOW FRAME   01/01/07   15   $75.75ITEMA   WINDOW FRAME   01/01/07   15   $75.00ITEMA   WINDOW FRAME   20/01/07   10   $50.00ITEMA   WINDOW FRAME   20/01/07   10   $50.50ITEMA   WINDOW FRAME   20/01/07   10   $50.00ITEMA   WINDOW FRAME   31/01/07   25   $125.00ITEMA   WINDOW FRAME   31/01/07   25   $126.50ITEMA   WINDOW FRAME   31/01/07   25   $125.00ITEMA   WINDOW FRAME   15/01/07    5    $25.00ITEMA   WINDOW FRAME   15/01/07    5    $25.25ITEMA   WINDOW FRAME   15/01/07    5    $25.00
    Because I didn't make the warehouse part of my Table 1 - Table 3 join, I got a report line for every warehouse in the Table 3 file.
    So I changed my joins to:Table 1 - Table 2 on itemTable 1 - Table 3 on item and warehouse
    What I got out was:ITEMA   WINDOW FRAME   01/01/07   AUCKLAND          15    $75.00ITEMA   WINDOW FRAME   20/01/07   AUCKLAND          10    $50.00ITEMA   WINDOW FRAME   31/01/07   CHRISTCHURCH   25   $126.50ITEMA   WINDOW FRAME   15/01/07   OTAGO                  5   $25.00
    Hope the example helps.

  • Suppressing rows in the next mail alert  (EBS)

    Hi All,
    I am working on an alert and looking to suppress those rows from appearing in the alert which were processed in the last alert.
    i.e. Everytime the alert runs, it should NOT pickup the rows shown in the last alert.
    I know there is a flag called ''suppress duplicates'' in alert sets page, however it doesnt seem to be working.
    (I am not sure how to use this)
    Can anyone help please.
    Thanks in advance.
    -Nil
    Edited by: nimTree Consulting on Jun 10, 2009 11:01 AM

    Hi,
    I know there is a flag called ''suppress duplicates'' in alert sets page, however it doesnt seem to be working.
    (I am not sure how to use this)This feature would work for a detail action (not for a summary action).
    Note: 1056367.6 - Alert Sends Multiple Messages for Single Action w/ Suppress duplicate Enabled
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=1056367.6
    Can anyone help please.Review the following document and see if it helps.
    Note: 76318.1 - How to suppress Duplicate Values in Reports
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=76318.1
    Regards,
    Hussein

  • How to force duplicate row display automatically

    In answers, we have one table that has duplicate data. The only thing different between some rows is the ROWID. When use user requests data, Answers automatically suppresses the duplicate rows. How can I force answers to display all rows and not suppress duplicate values?
    For example - db table contains
    COL-A COL-B COL-C
    ABC 3 5
    DEF 2 1
    DEF 2 1
    When adding COL A, B, and C to a report - Answers will display:
    ABC 3 5
    DEF 2 1
    How do I get answers to display
    ABC 3 5
    DEF 2 1
    DEF 2 1
    automatically?
    Thanks!

    I did as instructed - remove the check for DISTINCT_SUPPORTED from all DATABASE connections, saved the repository and recycled BI server and Presentation services. Unfortunately, there was no impact to suppression.
    My DB is Oracle 10.2.0.4 on Windows 2003.
    In addition, we have the following connection strings in place to allow for case-insensitive searches:
    alter session set NLS_SORT=BINARY_CI
    alter session set NLS_COMP=LINGUISTIC

Maybe you are looking for

  • Can't use external monitor as default monitor for full-screen settings

    Hey guys, I have been trying to get quicktime to let me use my external monitor as the full-screen monitor. Every time I go into full-screen, it reverts back to my MBP screen. I cannot seem to find this option even in the fullscreen preferences. Rath

  • Crystal report viewer 13 are displaying blank page after deploying in web server

    Dear friends, i have designed crystal report (in VS2012 &  CRRuntime_32bit_13_0_8 installed in web server) it's working fine in machine VS2012, but when deploying in web server (Windows Server 2008 R2 64bit) it's getting blank page. I have read the h

  • Capture 3D Plug-In

    I keep getting the error: "Capture 3D Plug-In Damaged". I have followed all the instructions to "fix" this but still comes up. I am using Acrobat 9 Pro Extended on a Windows 7, 64 bit computer. Thank you, Joe

  • Web part refresh causes sticky headers to disappear in sharepoint list

    I embedded a snippet called "sticky headers" that freezes the column titles of a long sharepoint list so that when you scroll down, the column titles remain visible. However, I noticed that the "sticky headers" disappear when the web part refreshes a

  • Coulmn heading in several rows using 'Delimited' option

    Hello folks -- I am using Oracle Reports 6i and when generating a File to 'Delimited' to produce a Text file, I am getting the Column headings repeated in every row. So, all the columns are being produced in every row and every column and then data i