Records getting multiplied  by a factor of 3 when joining with other table

When i query a table association_1 records for a particular network element i get 7 records
but join it with rtts_association table to get the rtts_no i m getting 21 records.....
the problems is ... 7 records are getting multiplied by a factor of 3 resulting in 21 records ....
how can i avoid these extra records that appear in the second query
SQL> select raised,cleared from association_1 where ne ='30434000/1MU';
RAISED               CLEARED
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15
12-FEB-2011 06:27:18 12-FEB-2011 06:29:51
21-FEB-2011 21:36:44 22-FEB-2011 10:23:06
23-FEB-2011 01:08:44 23-FEB-2011 06:56:53
23-FEB-2011 17:06:16 23-FEB-2011 19:55:19
23-FEB-2011 20:37:22 23-FEB-2011 23:01:21
24-FEB-2011 00:33:17 24-FEB-2011 02:03:26
SQL> select a.raised,a.cleared,b.rtts from association_1 a, rtts_association b where a.ne=b.ne and a.ne='30434000/1MU';
RAISED               CLEARED                    RTTS
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1490980
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1487697
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1487649
12-FEB-2011 06:27:18 12-FEB-2011 06:29:51    1490980
12-FEB-2011 06:27:18 12-FEB-2011 06:29:51    1487697
12-FEB-2011 06:27:18 12-FEB-2011 06:29:51    1487649
21-FEB-2011 21:36:44 22-FEB-2011 10:23:06    1490980
21-FEB-2011 21:36:44 22-FEB-2011 10:23:06    1487697
21-FEB-2011 21:36:44 22-FEB-2011 10:23:06    1487649
23-FEB-2011 01:08:44 23-FEB-2011 06:56:53    1490980
23-FEB-2011 01:08:44 23-FEB-2011 06:56:53    1487697
RAISED               CLEARED                    RTTS
23-FEB-2011 01:08:44 23-FEB-2011 06:56:53    1487649
23-FEB-2011 17:06:16 23-FEB-2011 19:55:19    1490980
23-FEB-2011 17:06:16 23-FEB-2011 19:55:19    1487697
23-FEB-2011 17:06:16 23-FEB-2011 19:55:19    1487649
23-FEB-2011 20:37:22 23-FEB-2011 23:01:21    1490980
23-FEB-2011 20:37:22 23-FEB-2011 23:01:21    1487697
23-FEB-2011 20:37:22 23-FEB-2011 23:01:21    1487649
24-FEB-2011 00:33:17 24-FEB-2011 02:03:26    1490980
24-FEB-2011 00:33:17 24-FEB-2011 02:03:26    1487697
24-FEB-2011 00:33:17 24-FEB-2011 02:03:26    1487649
21 rows selected.

For every combination of raised & cleared columns in "association_1" table, there are 3 records in the "rtts_association" table with different values for "RTTS" as below:
Association_1:
RAISED               CLEARED
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15
rtts_association
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1490980
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1487697
03-FEB-2011 22:03:10 03-FEB-2011 22:06:15    1487649Hence, evidently you wil get 7 (association_1) * 3 (rtts_association) in your output. If you want only one record in the output, you may need to pick any one of the values of RTTS from the 3 different values based on a pre-defined condition (e.g. record corresponding to lowest or highest value of RTTS)
Cheers --

Similar Messages

  • Is there a way to get the calculator from the dashboard to appear along with other programs?  Can anyone recommend a calculator which will work as a stand alone app?

    AS it stands now, in order to use the calculator that comes with the Dashboard, you cannot read from a list of numbers in, lets say, word or excel. The dashboard is full screen and nothing can stand along side it. Is there a way to get the calculator from the dashboard to appear along with other programs?  Can anyone recommend a calculator which will work as a stand alone app?

    there is one, just search with spotlight "Calculator".
    It works great!
    Hope this helps.

  • Since upgrading the IOS 8 on my IPad 2 I can longer get a full screen on my TV when connected with an HDMI cable. anything I should change in my settings? Right now my iPad is mirrored on the TV with a black box all around the edge

    Since upgrading the IOS 8 on my IPad 2 I can longer get a full screen on my TV when connected with an HDMI cable. anything I should change in my settings? Right now my iPad is mirrored on the TV with a black box all around the edge

    I have reached the same conclusion in the mean time. I have done a bit of investgation in to other grahics cards and am seeing some that show SPDIF connections from the card to the mother board. I was not familar with SPDIF but it did a little bit of sluething. It is of course a digitally enconded voice. I am guessing that in that case the mother board ( assuming it supports this hardware option) would use this output and be able to translate that digital audio to its other audio outputs. That is a lot of guessing of course. I think my "solution" might  be a whole new desktop - a rather drastic course of action! I was in the proceess of getting ready to upgrade this machine anyway with a new graphics card (which I will now return), go to Win 7, and maybe even a new digital TV reciever,  and I don't want to throw good money after bad anyway.
    Thanks for your comments

  • Join EQUI table with other table so as get address detail.

    Hi All,
    Can any one help me in the following case :
    I have to pass Equipment No. EQUNR on the selection screen and get Address detail (city, region, state, country, zipcode )
    now I am getting all this address related field in KNA1 table. Also I am able to join this two table with
    KNA1-KUNNR join EQUI-KUNDE as common field.
    Turning point
    when I am passing test data of Equipment No. EQUNR 60099204 I am not getting the address detail,
    because after passing EQUNR I am not getting KUNNR.
    So can any one please help me in joining EQUI table to some other table with field name so that I can get the address detail.
    Thanks

    Hi,
    The join between the table EQUI-kunde  join  KNA1-kunnr is ok but it not working for every value.
    Example :-
    In EQUI table when we pass  Equnr - 60099204 we need to get some value in KUNDE field, then only it will join to KNA1 table. But this is not happening, I am not getting value for KUNDE, hence join is not performing.
    So I need some other solution so that when we pass EQunr we can get the address details
    one thing more equnr  60099204 is having address detail, if we'll check IE03 (transaction by clicking address envelop)
    Thx.

  • Parse comma separated value and map with other table to get Name and change it back to comma separate.

    Hi,
    I have one existing view(with around 15 fields), in which I have to add few more fields from table called PI.
    Now these fields have values like (55C4444F-D83B-4F96-A011-367A3755BA6C , F52388E2-485B-49DF-8534-FDF46D23F59E , 722432E1-F063-4CBD-B83D-1B97836E82953) 3 values comma separated.(Sometimes only one value and sometimes 4 or 5 or 7-8 depend on user has entered
    on web page)
    Also I have another table called PHA and this tables has 2 fields Values and Name so I have to map this two tables based on VALUES fields and get Name from this PHA table and show in view and that also Comma separated.
    So basically I have to Parse the PI table's Values field 1st, map it with PHA table to get Name and then Make it comma separated in that existing view.
    To make fields comma separate I used below query,
    (SELECT DISTINCT SUBSTRING
                SELECT ','+ PI.[Name]  AS [text()]
                FROM [DB].[dbo].[Table] PHA1
    Inner Join  [DB].[dbo].[Table] PI
    ON PHA.[Value] = PI.[VALUE]
                WHERE PHA1.PId =PHA2.PId and PHA1.CId = PHA2.CId
                ORDER BY PHA1.PId
                For XML PATH ('')
            ), 2, 1000) 
    FROM [DB].[dbo].[Table] PHA2
    Inner Join [cSharpSite_profiles].[dbo].[PetAllergies] PA
    Inner Join  [DB].[dbo].[Table] PI
    ON PHA.[Value] = PI.[VALUE]
    ) [Name]
    Vicky

    Wait, this sounds wrong. You have a view where you group values into a comma-separated list. While that surely will make some purists cringe, I can see that it makes sense from a presentation perspective.
    But if you want to use these concatenated values as atomic values again, you should go back to the base tables and them from there. Building views on views may sometimes be a good idea, but if you are too keen on reuse you can cause a performance disaster.
    So do it right from the beginning.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • HT5225 how do I get my icloud a/c onto my mailbox along with other email a/c's ?

    How do i get move my icloud a/c onto my mailbox along with other email accounts ?

    What Mac OS are you using? It should be setup automatically if using 10.7.2 or later after moving to iCloud.

  • How to get access to the local file system when running with Web Start

    I'm trying to create a JavaFX app that reads and writes image files to the local file system. Unfortunately, when I run it using the JNLP file that NetBeans generates, I get access permission errors when I try to create an Image object from a .png file.
    Is there any way to make this work in Netbeans? I assume I need to sign the jar or something? I tried turning "Enable Web Start" on in the application settings, and "self-sign by generated key", but that made it so the app wouldn't launch at all using the JNLP file.

    Same as usual as with any other web start app : sign the app or modify the policies of the local JRE. Better sign the app with a temp certificate.
    As for the 2nd error (signed app does not launch), I have no idea as I haven't tried using JWS with FX 2.0 yet. Try to activate console and loggin in Java's control panel options (in W7, JWS logs are in c:\users\<userid>\appdata\LocalLow\Sun\Java\Deployment\log) and see if anything appear here.
    Anyway JWS errors are notoriously not easy to figure out and the whole technology in itself is temperamental. Find the tool named JaNeLA on the web it will help you analyze syntax error in your JNLP (though it is not aware of the new syntax introduced for FX 2.0 and may produce lots of errors on those) and head to the JWS forum (Java Web Start & JNLP Andrew Thompson who dwells over there is the author of JaNeLA).

  • DNS record is not dynamically created in DNS Zone, when joining to DNS domain

    hi
    in my test lab i have deployed two virtual machines (both are windows server 2008 R2 enterprise).
    on vm1 i have installed just DNS role (without Active directory) and created a primary non-ADintegrated zone.
    on this DNS zone, i have enabled dynamic update set to
    non-secure & secure .
    now in my vm2 (as a DNS client) , i set the ip address of this DNS server as preferred DNS server and then in system properties, on the primary DNS suffix field, i entered the name of my DNS domain (mydomain.lab)& rebooted VM2, but the a record of this
    client (vm2) is not registered (created ) in mydomain.lab zone.
    i respect the record be created like the situations which we join a client to AD domain 

    Hi  John ,
    When registering DNS record ,client will send a SOA query to find the primary server of the zone .Then send register message to the server .
    We can use nslookup to find the problem :
    Open Command Prompt
    type nslookup
    type set type=soa
    type zone name
        1. If there is positive response ,check the name of
    primary name server and the IP address of the server .
    Its name should be vm1.mydomain.lab .If not ,edit the SOA record in the zone .
    If no IP address ,edit NS record in the zone .
        2. If there is no response ,check the SOA record in the zone .
    We can manually delete and recreate the records to ensure there are right SOA and NS records .
    Here is the guide for using nslookup :
    Nslookup :
    https://technet.microsoft.com/en-us/library/cc940085.aspx
    Best Regards,
    Leo
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Hi Leo, thanks for reply.
    i did all steps you mentioned but still no result.
    i put an screenshot of my desktop here , everything is shown here:

  • Customer Getting "The MX connection timed out."When Joining The Beehive OWC

    Hello,
    I have attempted to use the Beehive client for initiating the owc with customers, and in 60-70% if the cases, they end up getting the message, "The MX connection timed out".
    I don't know how to get around this issue, will appreciate if someone has a fix or work around to overcome this issue.
    I am working on a Win 7 platform, Beehive Conferencing 2.0.1.7.0
    I am also having an issue when starting an owc. Beehive (by default) assigns 'My Personal Workspace' as the location of my conference. But when I click on the dropdown,
    on the second line, I see "loading", but nothing ever loads.
    Thanks.
    Anees.

    Hi Phil,
    I am getting the same error message MX connection timed out.
    (I am Oracle customer). My desktop running window 7, has latest JRE 7 update 21 installed. still getting the error.
    Couldn't get beehive running, but no issue when using the old web conference RTC real-time collaboration from Oracle.
    Any ideas what else I need to do to fix this. (Oracle customer support very much give up and frustrate too).
    Thank you.
    Elizabeth.

  • Getting digital cam images into the iPad when shooting with a non-SD card.

    Just thought I'd let people know, I was able to get my really inexpensive Targus USB 2.0 media adapter to connect to the USB camera adapter on my iPad. This allows me to import photos from my Olympus Evolt digital camera that uses an XD or Compact Flash card. Also worked with our two other small digital point and shoot cameras that use non-SD cards. It also lets me use my Micro SD card from my Samsung Moment cell phone.

    Hello strmchsr,
    Thank you for sharing your issue with the community. We certainly want to resolve this as quickly as possible. I understand you must be frustrated. I would like to ask you a couple of questions to better understand your concerns.
    What specific error message are you receiving on the iPad?
    Have you been able to connect the Mifi 2200 to another device such as a laptop or computer?
    If so what were the results? If not I have included some troubleshooting steps below.
    I recommend trying to activate the Mifi 2200 on a windows based pc using the usb cable that came with the device. http://vzam.net/
    The recommendation to remove the battery while the device is powered on is a great option, as ttb_62 suggested.
    As a final option you can perform a hard reset provided that you have the original sticker from the Mifi 2200, which will include default password and the MEID number. I have included a link below to assist you.
    Hard Reset:
    http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=23749
    Once you have tried these steps please retest your data service for functionality. If the issues persist please advise us and we will provide additional assistance.
    Sincerely,
      JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • Getting an error when inserting a big table inside a ""-

    hi iam getting an error String not properly closed when i add big table inside a "".plz give me an idea how to insert a table inside a String.iam using jsp .
    thanks in advance

    1) Please use proper English grammar, spelling, punctuation, and capitalization.
    2) I don't know what you mean "convert this forum page to a Word doc." Are you talking about taking HTML that's served up from some arbitrary URL and saving it in a Word doc? If so, you would not have the page's content hardcoded in your JSP. If you need to hardcode the page's content in your JSP, then I'm still not understanding what you're doing.
    3) If you want to write it out in .doc format, then you need to use a library that can write that format, such as POI from jakarta: http://jakarta.apache.org/poi/
    4) Don't tell me not to say I don't understand. If I don't understand what you're saying, I'm going to say so. It would be stupid for me to pretend I understand when I don't.
    I don't think I can help you. Good luck.

  • COPA Assessement - reciever tracing factors getting multiplied

    HI All,
    COPA assessment cycle has been defined to send the costs from cost centers to COPA profitability segments.  Posted revenue has been used as tracing factors. My question is regarding calculation of tracing factors.
    The revenue for receivers is 22.22 and 444, however when the cycle is executed, the receiver tracing factors as shown in test run screen is 44 and 888. System is internally doubling the receiver tracing factors while executing the cycle in KEU5. Although the receiver values are correct in absolute terms, Users cannot understand why the receiver tracing factors are multiplied
    Why do the tracing factors get multiplied?
    Thanks & Regards
    Pooja Saxena

    HI Ajay
    Thanks for responding, My error is coming when i am trying to execute the assessment cycle, In some segments, the tracing factor got multiplied by 10!
    So not always doubles
    When you execute the cycles where reciver tracing factor is displayed in the output, is it always equal to the value that is in the system or some multiple of the same
    Thanks & Regards
    Pooja SAxena

  • Issue : Metrics getting multiplied

    Hi All,
    I am working on the contracts data model where my dimension is at the header level and fact is a the subline level. There is one to many relationship between header and subline. One header can have many sublines.
    The issue is that i need to show a metric which comes from the header table only hence i have created that measure in the RPD in the header dimension table.
    Now suppose for a single header id, i have 5 sublines. Now the issue is when I am pulling that metric ( which I have created) it is getting multiplied by the no of sublines. So i get a wrong number because that value is already at the header level and shouldn't be multiplied.
    What could be work around for this ? Should I create a column to count the no of records and then divide the metric by that? I know this way I might get the correct data but is there any other work around for this ?
    Thansk,
    Ronny

    Dimension and fact table must be on the same level of detail. In this case you need to create an aggregate table of your existing fact table.

  • Child Records getting inserted before Parent

    HI All,
    I have an Entity object (Vendors) that has a defined relationship to payments (12 months) when I create a new vendor record I'm creating the 12 child records that all works fine but when I try to issue a commit the child records get inserted first creating a constraint error. If I turn the constraint off and using the "Jbo.debugoutput=console" I can see the 12 months being inserted followed by the vendor record. The payment records vendor_id is being set to the correct parent but the insert is happing in the wrong order does anybody know how to control the order of the insert. There's a Association set between the Vendor entity and the payment entity. If I move the code to a view object it seems to work fine. But in this case we have multiply view objects on these entity objects and I'm trying to prevent having to write the same code in every view Object.
    Here's the code for the Create on the Vendors EntityImpl
    protected void create(AttributeList attributeList) {
    super.create(attributeList);
    // Set the default values and the Seq number for this new record
    SequenceImpl seqNoImpl = new SequenceImpl("VENDORS_SEQ",getDBTransaction());
    this.setVendorId( seqNoImpl.getSequenceNumber());
    Number zeroAmt = new Number(0);
    RowIterator paymentsIter = this.getVendorPayments();
    // When creating a new Vendor create the 12 months of payment records
    for (int i = 1; i < 13; i++) {
    Row newRow = paymentsIter.createRow();
    newRow.setAttribute("Month",i);
    newRow.setAttribute("Amount",zeroAmt);
    paymentsIter.insertRow(newRow);
    Dose anybody have any ideas....

    Pieter,
    Thanks for the information!!
    Using it I was able to get the process working. There where some interesting side affects. If I just turned on the "Composition Association" then no payment records got inserted into the database even though they where in the entity and view objects. I took the second recommendation of adding code to the PostChanges event and was able to get the parent and children inserted in the correct order.
    Thanks again for the idea and information

  • Numeric getting multiplied by 10 at table level

    Hello Experts,
    1) When we save PO, suppose if we have 1 Qty , netprice = 80, it is getting saved in PO as it is. Whereas at table level, it is getting multiplied by 10 and the value  800 is getting saved at the table level.
    2)Even in material master accounting view also, suppose if stock value is 120 & MAP is say 6, whereas in MBEW table values are updating as 1200 & 60.
    But in standard reports, values are proper, whereas in tables it is storing this way.
    This is more problematic, since during FS preparation, we'll  have to fetch the values from tables.
    Kindly Suggest
    Mahesh

    Hi
    PLease check in Material Master Accounting view for how many price unit you have maintained ? check whether it is given for 1 price unit or for 100 price unit
    it will solve your problem
    Thanks & Regards,
    Mani

Maybe you are looking for

  • How can I check for keylogger and other malicious software on a used Mac

    I purchased a used iMAC (Late 2012 21.5") and it has OSX 10.9.4. How can I ensure that it is clean and doesn't have any password or key logging or other malicious software installed in it ? I basically want to ensure I have a clean iMac at the start

  • What's with all the "name"s-short, long, user, computer?

    I'm a long time Mac user but not lots of experience with multiple user accounts. Trying to migrate from MB with one account to MBA; on about the 7th or 10th erase & install. Various methods of getting the data over are not working. I'd like to have a

  • Re: Flash Player problem

    I'm experiencing similar problems. My setup is: Mac OSX 10.5.8 Safari 5.0.2 (Latest on site as of this date) Flash 10.1 (Latest on site as of this date) Flash does not work in Safari but Flash works in Firefox with my main Admin user account. Every t

  • Document related to RSRV

    Hi Experts, Please help me, it is urgent for me. can any one give information about the  T-code RSRV and its usability. Thanks Sekhar

  • Forms in iweb, anyone?

    So, Here's my problem. I used "HTML SNIPPET" and inserted my code from GoogleDOCS. Form works great, EXCEPT when the user clicks "submit" it directs you to the GoogleDOCS page. Any way to change where the "submit" button is pointing? Any help would b