Record duplication issue

I am currently having an issue linking two tables in a report.  When I generate the report, the records in the detail section become duplicated.  To further explain, in one table I am looking for item numbers, transaction date and transaction quantity. 
In the next, I am looking for item numbers, transaction dates, and shipment quantities.
In the last I am retrieving item numbers and descriptions. 
The only fields that seem to be consistent between tables are the item numbers, so I am joining on that basis.
However, what ends up happening is this:
Item #   Date       Trans Qty      Date        Ship Qty
1001 (Grouping)
              5/12/09     49000       5/20/09     20000
              5/12/09     49000       5/28/09     12000
              6/1/09       30000       5/20/09     20000
              6/1/09       30000       5/28/09     12000
2001 (Group)
              5/12/09     20000       5/5/09       20000
              5/12/09     20000       5/19/09     12000
              5/12/09     20000       6/5/09       15000
If you know why this is happening, or better yet, a way to fix it, I would greatly appreciate your help.

It is happening because the item number appears multiple times in one or more of the "left tables" in the join.
How to fix it depends on what you are trying to accomplish.
If you are trying to match something like Order Details to Shipment Details against those orders, you'll need an order and line number in your Shipment Details file that reference the same fields in the Order Detail file.
If you are just looking for total ordered vs total shipped, you'll need to aggregate the ordered and shipped quantities by item BEFORE doing the join.  In SQL it would look something like this (MS SQL):
select isnull(a.item_no, b.item_no) as Item_no,
   isnull(a.ordered_qty,0) as ordered_qty,
   isnull(b.shipped_qty, 0) as shipped_qty
from (
    select item_no, sum(ordered_qty) as ordered_qty
    from Order_Details
    where date between {?start date} and {?end date}
    group by item_no
) a
full outer join (
    select item_no, sum(shipped_qty) as shipped_qty
    from Shipment_Details
    where date between {?start date} and {?end date}
    group by item_no
) b
on a.item_no = b.item_no
HTH,
Carl

Similar Messages

  • Soundblaster 4 & recording latency Issues

    Hi. I'm new to this board and to Soundblaster. I'm hoping that its ASIO capabilities can resolve recording latency issues I'm having. I'm a voice over actress and singer and need to hear myself over the headphones while I'm recording in real-time. I have a split-second delay in the headphones, making it impossible monitor live. I have a brand new PC and just installed the SoundBlaster Audigy 4 card yesterday. I have several recording/editing programs (Acid Pro 3, Audacity, Cakewalk Express) and can't get it to work correctly.
    I downloaded a program from asio4all, but it doesn't seem to make any difference. Can someone wiser than myself help me resolve this issue?
    Thanks!
    Joni
    email: [email protected]
    www.jonilambert.com

    Does any of your software support ASIO (eg. ACID 3 PRO since Audacity and Cakewalk Express don't support)?
    If not, since you propably are familiar w/ ACID, you can download a freeware version of Sony ACID 5 Express to get ASIO supported. It's a bit limited from PRO but least it's newer than v3 that you listed.
    There are other similiar software available as freeware (some don't have MIDI features):
    Kreatives Kristal - http://www.kreatives.org/kristal/
    Mutools Luna FREE - http://www.mutools.com/products.html
    Cockos Reaper (free up to version 0.999) - http://www.cockos.com/reaper/index.php
    etc.
    jutapa

  • What happens when we delete trillion records and issue a commit.

    Q1. what happens when we delete trillion records and issue a commit and also is there any way to calculate that how much time this commit will take to complete the process?
    Q2. how do interpret the oracle execution plan?
         cost, cardinality, rows, etc...

    dba wrote:
    Q1. what happens when we delete trillion records and issue a commit and also is there any way to calculate that how much time this commit will take to complete the process?Since you're modifying the blocks, Undo will be generated for the modified data and change vector will be recorded in the redo log buffer.(and surely your records will be deleted ;) )
    The timing of a Commit doesn't depend on the size of transaction.
    dba wrote:
    Q2. how do interpret the oracle execution plan?
         cost, cardinality, rows, etc...Oracle documentation should help you, just google for that. You should also visit 'asktom.oracle.com' for the topic. I'm going through a book 'Troubleshooting Oracle Performance' written by Christian Antognini and I feel it contains very good explanation on such topics.
    Regards,
    S.K.

  • 1 record 2 tables. Identity duplication issue

    Hi,
    I have to add a file info in two different tables: the first one is the dictionary and the second one is used to store the file.
    The issue is the IDs set in the second table is not correct. Could you please let me know if you see anything wrong in the following SQL:
    -- Insert in the dicctionary
    INSERT INTO DB1.[dbo].[FilesDictionary]
    (FileRef,
    FileDescription)
    VALUES (@FileRef,
    @FileDescription);
    --Get the diccionary ID
    SELECT @FileDictionaryID = SCOPE_IDENTITY()
    -- Save the file in the second table using the dictionary ID as reference
    INSERT INTO DB2.[dbo].[FilesStore]
    (FileDictionaryID
    ,FileAttachment)
    SELECT FileDictionaryID
    , @FileAttachment
    FROM DB1.[dbo].[FilesDictionary]
    WHERE FileDictionaryID = @FileDictionaryID
    Issue: System is saving the info like this sometimes:
    Table:DB1.[dbo].[FilesDictionary]
    FileDictionaryID       FileDescription
    123                         Test
    124                         Test
    DB2.[dbo].[FilesStore] -- Files are saved in another DB for storage limitation and the FileDiccionaryID is the link between both DBs
    FileDicionaryID        FileAttachment
    124                         --file string
    <-- this id should have been 123 instead of 124
    124                         --file string
    Should I use @@identity instead of scope_identity()? Is there any other issue? I think scope_identity()  is correct based on the theory but just to be sure.
    Thanks for your help

    Hi,
    Thanks both for your replies. I really appreciate it.
    FilesDictionaryID is the primary key in the FilesDictionary table but not in the FilesStore table. So FilesDiccionaryID is always unique in the FilesDictionary table but could be duplicated in the FilesStore table (it shouldn't, based on the previous code).
    Those tables are updated by the application which is calling this SP so no one could set this manually.
    I am working with SQL Server 2008 so Jn_ds could be right but I am already using the OUTPUT when the variable @FilesDictionaryID is declared so...
    It’s hard to test this because I couldn't reproduce the issue but DB data shows this issue is happening…
    I am going to investigate about the SQL Server 2008 bug but any suggestion in the meantime is welcome :) Thanks!

  • Data duplication issue. Please advise.

    Hi,
    I created a multiprovider on  notification item and causes. I need Cause code from causes and Damage code from Items. When i report on this multiprovider data is getting duplicated.
    I tried. Excluding # one's it's wprking but missing out some records like the notifications without cause code/damage code. But i want all the notifications to be displayed in my report  without duplications.
    I tried infoset option there also same issue Not all the notifications in Items are not there in causes.
    I think multiprovider can solve the issue if i keep cause code or damage code in free chars but they want both to be displayed in the report.
    I appreciate your response.
    Thanks,
    Naveen

    I would combine this data first in an ODS.  That will combine the data for you and you can report on a single line granted you create the ODS key properly.
    Brian

  • Record Count Issue in Search page ?

    Hi Friends
    I am trying to display record count on Search page and I have the following code in
    The table has total of 62 Rows
    AM : for testing purpose, i am printing in log
    public void getISAGRecordCount()
    OAViewObject vo = (OAViewObject)getXXG2_ELIM_ISAGSView1(); //getXXG2ISAGSearchVO1();
    int fetchedRowCount = 0;
    vo.setMaxFetchSize(-1);
    vo.executeQuery();
    fetchedRowCount = vo.getRowCount();
    System.out.println("RowCount: "+ fetchedRowCount);
    IN PFR of CO: I am calling by this way
    am.invokeMethod("getISAGRecordCount");
    the Issue is
    for the first time, when i search  Based on search criteria, I know it should dispaly 10 records  but in the Log file i see the total Record Count of the Table     Ex; 62
    When i do the serach for the second time, based on search criteria, I know it should display 20 records, but the log file has 10 records ( previous search results)
    If I do the search for 3rd time, I see 2nd search results in log
    Any help in this issue, how to fix this?
    Thanks
    Ravi

    Hi,
    Please donot use getRowCount(), use getFetchedRowCount() and remove setMaxFetchSize(-1).
    Hope it will resolve your issue.
    Just for understanding of the concept:
    getFetchedRowCount() returns the number of rows cached in the view object -- including programmatically inserted rows.
    The getRowCount() implicitly execute a query against the database (if a query has not been executed yet)
    Regards,
    Reetesh Sharma

  • Stream.record() keyframe issues

    I have an application that uses server side recording using the Stream.record() method. The source for the Stream class is a live stream that several clients can publish to or view. Only one client can talk at a time but they can stop and start publishing when they like. Stream.record() allows me to handle recording from these different sources into a single server file. The code looks no different that that seen elsewhere on this forum or indeed in the Adobe documentation (FMIS3.0.4) and is something like this;
    To start the recording;
    application.recording =  Stream.get("recorded_stream");
    if (application.recording) {
       application.recording.play("live_stream");
       application.record("append");
    and to stop the recording;
    if (application.recording) {
       application.recording.play(false);
       application.recording.record(false);
    And on the client a NetStream.publish("live_stream","live") or NetStream.play("live_stream") are issued depending on whether the client is talking to a group of clients or listening to one of the other clients.
    Now this code works provided, it seems, the first recorded section is greater than some interval around 30 seconds otherwise the keyframe metadata (as reported by YAMDI) has large gaps at irregular intervals that cause stalls during playback. You can see in the metadata output from YAMDI that the filepositions are consistent (all the data is there) but as there are large gaps (like up to 20 seconds) in the keyframe entries anything that plays it stalls, also the duration in the metadata includes the gaps.
    I have tried using FLVCHECK and it says the files are fine. I have tried making each recorded segment into its own file (with the intention of joining them with FFMPEG post process) but it makes no difference, the playback stall manifests itself as a gap at the start of one of the movies and FFMPEG uses the metadata it finds so it can't help.
    The second related issue is that the keyframeinterval and framerate of the recorded file don't relate to those requested by the client at all. In this case I am asking for 15fps with a keyframe every second and I am getting 7-11fps that and 4-5 keyframes per second. Also neither of these figures match the system wide defaults in the Application.xml file. In this particular application the system will be used to record British Sign Language exchanges and I need to keep the framerate and image quality high an although I can understand why the server would want to fix its framerate/interval (as its recording from different client sources) I can't find anywhere in the docs where these values can be set abd the dont relate to the settings in the Application.xml file for this app either. BTW the server running FMS3.0.4 is a quad-core XEON with 16GB through a 100Mbit switch that does nothing else so its not a resource issue !!
    Anyone done anything similar or had a simlar problem? I guess the weird part in my app is that usually Stream.record() seems to be used for injecting live custom metadata or for recording live broadcasts from FME both of which probably aren't going to switch stream sources so quickly so maybe this is a bug?
    thanks for reading this,
    Andy Freeman
    Correspondent Corp

    Hi, there may be a component test for the keyboard in the F2 UEFI Diagnostics that you could try, I pasted the instructions from the manual below: To start HP PC Hardware Diagnostics UEFI: Turn on or restart the computer, quickly press esc, and then press F2 

  • Nokia Lumia 1520 Video recording/playback issues.

    I seem to have issues with video recording. Video seems to have some pause "still" effects when taking video and playback in phone shows those stops very clearly as it freezes for while and jumps many seconds forward.
    When I play same file in PC with video player the video plays better but still I can manage to see some small Glitch in video like my phone did stop recoding for some frames.  I have been using SD card and phone memory and both have same problem.

    No solution so far and it is my wife phone so haven't have much reason to play with it find solution. She only takes photos anyway.
    This current phone has already broke down 2 sim cards also or wireless charging did brake those not sure after stop using wireless charging 3rd sim card have been fine.
    someday when have I feeling to take this phone to warranty service I will try wireless charging again.

  • Unable to start recording - occasional issue

    We're having an intermittent issue that so far we have been unable to narrow down the exact cause so that we can fix the issue. Once in a while, when someone tries to start recording a call that an avgent is on, they will get a message stating "Unable to start recording for agent <agent's name>.". Initially we found that restarting the computer that the agent is sitting at would resolve the issue and they could be recorded again. That was not a viable long term solution however, and further troubleshooting has found that the computer itself doesn't need to be restarted to fix the issue. We found that just restarting the Cisco Agent Desktop software fixes the issue and allows that agent to be recorded again.
    We have checked settings in CM for the agents and phones that this has happened to previously but everything has been correct there. The only common connection that we have found so far has been that the issue seems to happen after the agent has transferred a call or received a transferred call.
    This isn't a widespread issue and only happens once in a while(maybe once or twice a week), and so far it isn't always the same person(agent or the person doing the recording) or the same computer. We're trying to gather more data, but due to the intermittentcy of this issue there isn't much at this point to go on.
    Anyone have any suggestions/ideas?

    Hi,
    Sorry for the delayed reply. Reporting of this issue to us from the users has been sporadic. Our UCCX version is 8.
    The issue isn't happening to any one agent but the ICD extension isn't shared with any other numbers that we can see, and checking the Route Plan Report doesn't show any lines that are shared with other numbers.
    Is there possibly a timeout setting of some kind that could be affecting recording when a call is transferred?

  • Duplication Issues with Photo Sync via iTunes/iPhoto and Photo Stream/iCloud (Detailed Scenario Given)

    Hi Everyone,
    I'd like to share an issue I am having with photo syncing between my iDevices.
    Here is how I USED to sync my Photos between my iDevices (no issues with photo duplication)
    Note: In this scenario, I use iTunes and iPhoto on my Mac. iCloud and Photo stream have NOT been activated in this case.
    1. Take photos via iPhone that saves in Camera Roll
    2. After a month or so, I will connect my iPhone to my Mac.
    3. Import my Photos in iPhoto and arrange  Events and Photos in monthly sections and add some of them in a separate Albums (ex. Written Notes Photos) for easy access.
    4. Once the import is done, iPhoto prompts an option to delete photos in my Camera Roll which I do as I like to start a fresh month with empty Camera Roll in my iPhone.
    5. In order to access the Photos I have imported in iPhoto in my iPhone, I go to iTunes and sync all my photos to my iPhone. This syncs my events, photos, faces, albums as they have been arranged in iPhoto in my Mac. (I cant delete them in my iPhone once they are synced. I have to delete in my iPhoto and sync again to have similar setup in my iPhone which isn't a problem).
    NOW I decided I don't want to manually go through all this process and went on to enable the Photo Stream ON in my iPhone and iPhoto with iCloud.
    THIS IS WHERE THE PROBLEM ENSUES.
    1. I  Take photos with my iPhone that saves in Camera Roll
    2. This automatically syncs with my Mac due to Photo Stream which a really convenient.
    3. It syncs automatically to Photo Stream, Events, Photos, Faces section in the iPhoto and I put put some of them (notes) in a separate album.
    THE PROBLEM:
    The Photos does not show up in the Album, Events and Photos Folder in my iPhone. They are only shown in Camera Roll. So I thought to sync using iTunes so the new Photos will be arranged in their appropriate folder like it used to with my prior process of syncing. This worked, HOWEVER the photos in my iPhone started showing DUPLICATES! Apparently, one comes from Photo Stream (which, if I delete on my phone also deletes in all my iDevices) and the other duplicate is from the iTunes sync (this sets up my photos as arranged in iPhoto which is what i WANT to happen as Photo Stream does not sync them accordingly).
    SOLUTION I AM IN SEARCH FOR:
    I want to be able to take photos with my iPhone that automatically syncs in iCloud AND iPHOTO AS ARRANGED IN MY MAC (Albums, Events etc) WITHOUT PROBLEM OF PHOTO DUPLICATES.

    Other folks have resolved similar issues by trashing  the iPod Photo Cache.
    Regards
    TD

  • Anyone else having duplication issues?

    every so often after having edge animate open for an undeterminate ammount of time I'd press ctrl+d to duplicate something.
    and in the undo history it says object is duplicated while there's nothing new in the elements tab.
    I'd have to save close edge animate, then reopen it for the duplication to work again.
    is this a known issue? Is there anything I can do to prevent this?
    It happens quite frequently and I have no idea if I'm doing something to set off this bug.

    I saved out the an file to a new folder and it still crashes.
    Another weird issue is I can't select an element, right-click copy  and right-click paste either, paste is always greyed out
    I also tried letting edge rebuild it's settings
    http://forums.adobe.com/message/5746134#5746134
    following this issue. same problem, I can't copy and paste
    seems I may have found a temporary solution.
    I made a new scene, tested out copying an pasting (ctrl+d, alt-drag,right-click copy/paste), and everything worked fine.
    I opened the comp with the issues.
    went to the main stage tried all the copy and paste functions, everything worked
    went into the symobl layer (where the issues happened) that gets pulled into the main stage
    tried to copy and paste things, and this time it worked. Although the elements panel scroll flickers a bunch of times scrolling up and down on it's own, it seems to work now. odd.

  • Records Management issue

    Hello,
    I'm trying to create a Records Management demo scenario, but i got a error trying to create a Record from a model previously created:
    "No record model registered. Maintain in the registry."
    Can anyone give me a tip for solve this issue?
    Regards,
    Luis Carlos

    Hi Luis,
    Don't know if you got youre demo working but this what you should do:
    Make sure youre model is relased. Then go to the registry (SRMREGEDIT area S_AREA_RMS)) and go to the service provider for your record (standard SRM_SP_RECORD) and select youre spsid for the record you use (standard SRM_SPS_RECORD). Open it in change mode and go to tab Connector Parameter Values. Select the Model_ID line and click the create button. Now search for your model and save it.
    Now in organizer you should be able to create a record based on your own model.
    Best regards,
    Tjalling-Jan Gerkema

  • Select Recording Source issue on Audigy 2

    I unistalled and installed the program and can't get it to work. I have the Audigy 2 ZS plat. with the software and all. Problem I have when I open up the Organizer MediaSource Player everything works but the "select recording source" button or selection doesn't work. It's kind of blanked out as if I don't have that option at all. But when I go to the mixer I can here the line inputs but I can't record from it b/c I can't select it. If anyone has this issues let me know or how to solve it. I have windows XP and also my Audio Stream recorder doesn't work either.

    Ok I got it to work. This is the reply I got from Creative but I didn't remove the program from the add/remove option on the PC b/c that didn't work at first. I inserted the installation CD and remove it from that wizard. Rebooted and the PC found new hardware. I then installed the driver and software from the CD and now it works.
    For Mediasource. It appears something was corrupted in Mediasource or there is a conflict within the system.Please uninstall all software and drivers for the soundcard, from add/remove programs. Once this is done, shut down the system and changePCI slots for the soundcard, then turn the system back on, cancel the found new hardware wizard, disable all background applications (especially virus scanner, firewall, and any other background applications running in the bottom right hand corner of the system), andthen perform a full reinstallation of the drivers and software from the soundcard installation cd.
    CAT I hope you fix your sound card. Good luck.

  • HR record replication issue

    Hi Experts, We have a few user's who are on Higher Duty and for these persons in table HRP1001 in SRM shows all the entries but when we try to view it in the Org plan it doesn't appear anywhere. I know we can pfal the person, but i would like to know why isn't the person showing in the Org structure. This problem arises postly for person who are HDA. The relationship is B 081. has anyone faced this similiar issue before. Please advise.
    Rgds
    Saj

    Hi, In public sector this is very common when a person is acting on a higher position because the position is vacant or the person holing that position is on leave or vacation it is said to be an HDA position. IT0509 the rel is A081. This records are flowed into SRM so that the workflow and route as per the current records from table hrp1001
    I hope this helps.
    Rgds
    Saj

  • Record selection issue in cross tab.

    Hello!
    I have a record  filtering problem. I tried many scenarios, and searched this forum but I cannot find an solution.
    I have a sub-report that contains a cross tab that provides a few summarized fields.
    I have two tables: a table with category of events : (field catID and Catname) and an event table with a CatID, a date field and others number field I use in the cross tab.
    I want my cross tab to show one row per category. The Catname and the summaries.
    Now all is working fine but for one issue. I need to select my event according to a time bracket.
    So I created two time parameters (start and end) and select the event dates between these two dates.
    Now, when selected, any category that does not have an event between these dates are not displayed. I would like them to be shown with "o" values.
    There must be a way of doing this. I just cannot find it.
    Esther

    In order for Crystal to show data, it must be given data to show!
    You will need to base your subreport on an SQL Command.  In that command, put the current SQL used by the report.  To this, do a UNION to a select that selects the category name, and a zero for each field that you are summing in the crosstab.
    As a simplified example, suppose the original SQL was (MS SQL):
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    This would be changed to
    select c.catname, sum(e.quantity) as Quantity
    from categories c, events e
    where c.catid = {?catid parm}
    and c.catid = e.catid
    and e.date between {?start} and {?end}
    UNION
    select c.catname, 0 as Quantity
    from categories c
    where c.catid = {?catid parm}
    This will return an additional zero record, regardless of what data the original query returns, thus giving Crystal the data needed to display.  Note that the zero value will not affect the results in any way, except causing a zero to be displayed if no data is returned from the original query.
    Just remember that the second SELECT in the UNION has to have the same number of fields, of the same data type, as the first SELECT.
    HTH,
    Carl

Maybe you are looking for

  • Why does my screen saver say "no photos" when they are definately there?

    I just downloaded the latest OS update and my screen saver no longer works.  When i go into system preferences and set up the folder to use for the picture slide show--it gives me an error that there are "no photos". But I have triple-checked and the

  • Sharing internet with Macbook from an XP machine?

    I know on OS X that I can easily turn on internet connection sharing, and take my XP laptop and connect to that Wifi network, but can anyone tell me how to do this the other way around? In other words, how do I configure XP to share a connection with

  • Creating a Dynamic LOV to pass parameters

    I am attempting to create an LOV to pass parameters to my Discoverer report I have on my portal. Any way to make the LOV dynamic? I want a simple sql statement in there to populate it. I used a simple parameter portlet and that wont work...just stati

  • Constant of type C , what has this got to do with reading

    Q]     IN  the statement SABC_ACT_READ(4)               VALUE 'READ', Taken from http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/content.htm SABC_ACT_READ(4) is a constant of type C , & has a value “4” –what has this got

  • Excise capture in Consignment

    Hi Friends, This is regd. consignment process for Indian scenerio. I want to know when we should capture RG23A Part 1 & Part 2 entry. The process we are following: 1. Maintain info record for material & vendor 2. Make PO with item cat. "K" 3. Do GR w