How to better master with this model s/n, sides IN and OUT in the same line.

Hi all!
I'm just facing some old historical table where, to the transaction recorded in the same line, something like:

column name
==============
ref_no,
x_id,
product_id,
product_amt,
-* IN part
in_flag-(IN)
in_customer,
in_address,
-* PORTION
out_flag-(OUT)
out_customer,
out_address

Nice shipping biz where we can have the two sides met in the same line, they have same value for IN and OUT_flag = actual values 'IN' and 'OUT', woou!
I really expect to have this table in different model where a line is an entry, probably with PK = ref_no + in_out_flag.
But it looks like I can do anything on this design, and now I choose upong xactions request entry and EXIT, IN/OUT fixing portions on a common part with the UNION. This, the only way I can see how to solve this problem, or I'm not right? And I need to pack all in the stored procedure.

Appreciate your comments how to do this, I'm really new to Oracle, however have some exp.
And comments about these models db as well! -).


Best
TR

I don't understand what problem needs to be solved.

What criteria an independent observer would conclude that a correct solution has been posted.

Published by: sb92075 on September 11, 2010 17:19

Tags: Database

Similar Questions

  • How to get the ASA packets that come in and out on the same interface?

    Hi all

    How can I configure the ASA5520 routes the packets that come in and out on the same interface? I ve more than 1 network behind the camera of the SAA. It s separated by internal router. They can communicate with each other.

    I've seen it's PIX design problem. She applies to the platform of the ASA?

    Please advice.

    Thank you

    Nitass

    This golden rule remains immutable. the only exception is the vpn traffic. ASA for example (or pix v7) would act as a hub for traffic between two rays rediect vpn.

    regarding your question.

    Internet <-->asa <-->1 <-->lan router <-->lan 2

    assuming the host to lan 1 to asa as the gateway default, even asa has a static route to the internal router of the point for local network 2, the golden rule will reject this operation.

    one solution is to re - configure the dhcp on the LAN 1 scope and make the internal router as the default gateway; and the internal router has the asa as the default gateway.

  • on the Iphone 7. How to listen to music, if we have a normal headset and charge at the same time?

    How to listen to music, if we have a normal headset and charge at the same time?

    < re-titled by host >

    It sopposed must be a wireless charging dock to be launched shortly if the dock does not so it is a disappointment

  • How do I bookmark with this product?

    I don't know how to make bookmarks with this new product. How do I bookmark?

    Hi beahollandergoldfein,

    We can create bookmarks using Acrobat Pro/Standard DC application not with drive DC application.

    Acrobat help. Page inPDFs of thumbnails and bookmarks

    Thank you

    Abhishek

  • Accidentally, I bought the Mac in December and contacted support which helped me to get the right version installed, but now the PC version is not in my account downloads and I need to add it to a new computer. I don't know how to get help with this.

    Accidentally, I bought the Mac in December and contacted support which helped me to get the right version installed, but now the PC version is not in my account downloads and I need to add it to a new computer. I don't know how to get help with this. I don't remember how I got the PC version, I think I have access to my computer remotely and she sent, but I can't find any record of it.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • The product key you entered will not work with this edition of Windows Vista. You must run the Windows Vista Setup program or enter a Windows Vista business product key

    Product key bad for the wrong version?

    Hello

    Recently the computer in business inherited from a friend, very fast and very good. Regardless of the operating system no - geniue, is with Vista Business, while the thumbnail of authentication is Vista Ultimate. I took a screenshot of what it says when I put Vista Ultimate product key: (it does not appear if you are unable to use it: P)

    http://S13.PostImage.org/57nfn5pqv/vistareg.jpg

    He said: "the product key you entered will not work with this edition of Windows Vista. You must run the Windows Vista Setup program or enter a Windows Vista Business product key."

    How would the installation of Windows Vista? My files would still be there when you need him? My drivers would still exist? No matter what to get deleted or become unusable? He would return to SP1? Any response is welcome.

    You can order form of the manufacturer's recovery media.

    The reason why the system as non-authentique shows currently is using a license in Volume KMS - these licenses must be re-activated at least every 6 months by connecting to the KMS user license activation server.

    It will require a reformat and reinstall whatever you do, unless you can connect to the KMS - Volume media server cannot be upgraded under normal conditions.

  • "The product key you entered will not work with this edition of windows vista. You must run the windows vista Setup program or enter a windows vista product key. »

    I bought a laptop HP three years ago in Dubai, now I am in India, my family problem does not activate windows vista and also use it now, I try to use but asked the system to activate product key not found the product key at the bottom of my laptop I enter the product key but the system says "the product key you entered will not work with this edition of windows vista.»  You must run the windows vista Setup program or enter a windows vista product key. "In my company sticker a HP laptop, it says" Windows Vista Home Premium, also found in computer ownership 'Windows Vista Ultimate' and as low property said: you must activate today and return their product ID: 89580-014-0000025-71152, but in my laptop near the product key, wrote a different number which is "89580-014-0000025." what is the problem and how to solve that advice me please. ""

    Hello

    You can use this Recovery Partition to reinstall Vista to his new condition with the right edition of Vista.

    This recovery partition was photographed on your hard drive by HP during the manufacturing of the factory.

    You press F11 on startup to start the process of recovering back to factory settings.

    Here is the information about HP.

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00809678&LC=en&DLC=en&cc=us&product=18703

    If the recovery partition is damaged, you can buy HP's Vista recovery discs for a small fee.

    If HP's Vista recovery disks, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon

  • Question of BitLocker with new models E7270 E5470 E5570 Latitude and precision 7710 7510

    Hello

    I got all these new models last week and I have a problem with them...

    Deploying Windows 7 Enterprise 64-bit with SCCM 2012 and bitlocker is configured during the task sequence by a PIN at startup.

    This process works for all models until there... Latitude and Precision of previous generations, but now, with new models, there is a problem with the PIN code. At the end of the sequence of tasks, the drive is encrypted and there is no error BUT the PIN is not recognized and the recovery key is requested.

    This recovery key is correctly stored in AD. TPM and owner is ok. Version of the TPM secure is 1.2...

    I already tried to manually decrypt and encrypt again after you secure the TPM reset, but no way.

    I also tried Windows 10 companies, and the issue is the same.

    Is this a known issue? Someone here already experienced the same thing?

    Hello

    This question is one that is being developed and there are updates of BIOS coming out that will fix it.

    At the moment the latest BIOS for the E7270 will fix the problem (BIOS 1.2.2)

    For the E5470/E5570 of Latitude and Precision 7510/7710 updates of BIOS to fix this will be published soon. I will not give dates at this stage because they can change.

  • Error "this graphics driver is not compatible with this version of windows" when you try to install the graphics card

    Title: windows 7 Enterprise 64-bit

    I have hp Pavilion dv6 2138 ca for computer pc laptop and intel hd graphics and nvidia grahics on my windows 7 Home premium 64-bit, but after I've upgraded to windows 7 Enterprise and try to install the graphics driver nvidia. It is said

    the NVIDIA Setup program cannot continue and this graphics driver is not compatible with this version of windows.

    while I chose the latest graphics driver from the hp Web site.

    kindly tell me, that means the sentence above means and what programs and features must be changed in windows? or what steps should be taken to install nvidia graphics?

    answer me

    Thank you

    Hi Hamdullah,
     
    Welcome to the Microsoft community.
     
    "I understand from the description of the issue, you do not know the error' Nvidia graphics drivers are not compatible" when you try to install the drivers. I will definitely help you with this problem.
     
    (1) what is the model of the graphics card are you using?
     
    Method 1: If the NVIDIA GeForce GT 320 M graphics driver, I suggest you to download the Nvidia graphics drivers from the link and check if it helps.
     
    Method 2: If the problem persists, I suggest to select the graphics driver and check if you have any driver update available.
     
    I hope it helps. If you have problems in the future, please let us know. We will be happy to help you.
  • I dealt with this problem for months. Even hired a comp tech to fix it and still have the same question. There, nobody helping me?

    I dealt with this problem for months.  Even hired a comp tech to fix it and still have the same question.  I had my computer wiped and windows 7 and 8 then reinstalled by a professional.  This all started when I upgraded form 7 to 8.  After 7 to 8 my computer kept getting this error. . kept crashing.  He was supposed to be fixed and it still does the same thing. I was told then move to 8.1.  I have always the same coming error.  I'm not on computer.  IS THERE ANYONE WHO KNOWS HOW TO FIX THIS?  Someone who can explain to me step by step how to fix?  I've tried everything.  Error 0x0000005c [settings 000000000000800 0x000000000000000B x 0 0 x 0000000000000000 0 x 0000000000000000]

    Hello

    The upgrade to 8.1 was perhaps not the best thing to do...

    A lot of people are having problems with it also.

    If it is a desktop computer, have you checked the wall outlet and the plug on the back of the computer?

    Your point about starting the tone certainly as a power or a hard disk problem...

    The problem with you mouse pointer could be related to a feature called quick start...

    Your other problem also, perhaps... Try to turn it off and see if it helps...

    This feature works only when you make a STOP and then start.

    It is not perform a RESTART.

    Turn on or off...

    Go to the control panel... Power options, and then select choose the power what buttons on the left.

    Then select change settings that are currently unavailable near the top center of the screen...

    Lower on the window, uncheck the quick start.

  • How to choose the Department with employees in the same line?

    Hello world

    I need to make this request,

    Suppose we have 2 departments with n used on each Department

    I need to select the departments with only 2 employees in the same line, example here

    Department Name of Department Employee1 Employee2
    10HUMAN RESOURCESMarcSteve
    20HEPaul
    30New Department
    40FinanceJeanMichael

    This query below did not work because it only displays the first employee, but I need to display 2 employees (same as the above table)

    select
    deptno,
    (select ename from emp, dept where rownum =1 and emp.deptno = dept.deptno) employee1,
    (select ename from emp, dept where rownum = 2 and emp.deptno = dept.deptno) employee2
    
    from dept;
    
    

    ...

    I did this, but with the function returning the Emp2Dep1 Emp1Dep1

    function get_ename(p_dept number,p_col number)
    return varchar2
    is
        v_ename varchar2(4000);
        v_first boolean := true;
    BEGIN
            select ename
                  into v_ename
                  from
                      (
                      select ename, rownum as rn
                      from (
                            select ename
                            from emp ,dept
                            where    emp.deptno        = p_dept
                            order by 1 asc
                            )
               
                      )
                  where rn = p_col;       
              
    
         return v_ename;
    END;
    
    

    and simply put

    select
    get_ename(deptno ,1 ) employee1,
    get_ename(deptno ,2 ) employee2
    from dept;
    
    

    Is there a better way to do it?

    NB: database 11g

    Thank you

    Select the Department, employee1, employee2

    (select Department, name, cnt

    (name, department, row_number (select) at the NTC (partition by order of the Department by null)

    employees

    )

    where NTC<=>

    )

    Pivot (max (name) of the cnt (1 as employee1, 2 as employee2))

    order by Department

    DEPARTMENT EMPLOYEE1 EMPLOYEE2
    10 Marc Steve
    20 Paul -
    30 - -
    40 Jean Michael
    50 Alpha Beta

    Concerning

    Etbin

  • Windows the dates that I am up to 22 gigabytes off 69.5 gigabits on drive D. Can someone help me with this problem so I don't run out of space

    original title: windows dates

    on my computer windows vista home basic, is Drive - D were all my windows updates are stored. I do not stor photos or other long-term files on my computer.
    I ' am up to 22 gigabytes of 69.5 gigabits on drive D. Can someone help me with this problem so I don't run out of space.
    Also all update my windows go back as far as the year 2008. Note-windows update are the only element which appear on the D drive and also when I backup windows is were I notice less space on this drive. Is there something I can do so I don't run out of space on this drive?
    could someone help me with this problem.

    I have found, do not delete the old windows updates.
    they could corrupt your entire system.

  • Sound is comin from the speaker and headphones at the same time. How to solve this problem?

    Hello! I installed win7 professional and upgrade to ultimate and when I play a music or vdo sound is coming from the speaker and the headphones. I have a 3ghertz Pentium 4 with 1 GB of ram, and it runs the 32-bit version. And also the headphone option is not present in the peripheral reading option.
    Can any1 please please help me?

    We consider that your machine uses Realtek HD audio-
    (Older versions of Realtek HD audio drivers may have a slightly different form, but the)
    basics should be the same).

    There are two ways to set up the helmet when it is plugged into the façade decision-making;
    (1) in Realtek Manager of her go to Advanced Settings feature in the upper right of the window.
    Check the circle next to cut... plugged back.
    When this fact was you must also click on the yellow folder icon below the
    Device settings advanced and check 'Disable protection of jack façade' is clear.
    -Of the drawbacks of this method are that you do not get an option of separate settings for headphones.
    then they use the same environment as your speakers and EQUALIZER settings, but you can use both the
    speakers and the headphones if you wish.
    -Note that with this option, the helmet does not show in Sound Manager window.

    (2) advanced settings in the sound Manager go to Realtek device.
    The check box next to do advance... at the same time.
    This will disable the speakers when headphone is plugged in the socket of the façade,
    and return to the speakers when headphones are disconnected.
    Also check one or more of the boxes below, according to your need.

    -With this setting, there is an option for headphones in the two Windows Sound manager
    and Realtek HD Audio Manager.
    -With this setting, it does not matter which option to use in yellow folder as the setting icon
    is ' either / or '. You cannot run at the same time the speakers and headphones.

    -Note that with games the headset must be connected prior to spear the game, or
    the default set to the speakers.

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • How to run tenants melted precision and outs in the middle of the clamp for mounting in hearing spoken 6.0?

    Unfortunately, I like many others, had to move to Windows 7 from Windows XP and not all features in Audition 3.0 will run on Windows 7. I am now using hearing 6.0. I edit tracks of voice of spoken for several networks. Often in the edition in the "Edit Mode" must be melted or not a specific word when taking the failures or errors or rebuild a sentence to his natural. 3.0 has been intuitive and easy to use that I could define a range and determine EXACTLY how I wanted to fade the ins and outs of sound. It seems that 6.0 designers forgot that fades of precision are needed in the middle of a clip for the edition of spoken word in the edit view. The only way I see is to use the fade in and out in the 'Favorites' pull-down menu and highlight the range of the predetermined fade. It seems that 6.0 developers are only concerned about fading the beginnings and the ends of a clip. With each new feature 6.0, the simplest and the most important functions in 3.0 have been abolished or made less usable. After use Syntrillium Cool Edit 2000 at each iteration of Adobe Audition, Audition 5.0 was a disaster and 6.0 is somehow an improvement. I did thousands of hours of network programming and work of voiceover using Audition 1.5 and 3.0. I hope that Adobe listens to its loyal user base.

    I understand your concerns on the future of this software. I cut my teeth back to Cool Edit 1.0 and have loved it since then. Tweaks that happened since then were not so good.

    To fade you speak, I want to go into the menu to --> Amplitude Compression &--> bland envelope. There you can choose an envelope tweaks to share model and on the other a clip and bend it to your needs.

    Steve

Maybe you are looking for

  • Satellite A200-1RK: how to connect to internet

    Hello I just bought my daughter an A200-1RK for Christmas.I would like to have the internet up and running when she opens it up, but I'm worried about the best way to do it. I have 2 mb broadband via a NTL cable modem.Could connect a usb cable from t

  • How to convert a CD to AIFF-C on "Audio CD" to burn universal copies.

    I have a CD with a radio show of 1957 on it in AIFF-C. I want to convert it to "CD Audio" so it can be listened to on a regular CD player. I understand not all formats possible import options (which use?) in iTunes. Do not know the part export/burn b

  • How much is a 2009 Imac end 27 "a value?

    Apple iMac 27 inch late 2009 2.8 GHZ Quad Core i7 16 GB OF RAM 2 TB hybrid SSHD Today, what would be its value?  How much time could still be usable for?

  • reset the password of the forgotten mailbox iCloud

    How to reset the password of the forgotten mailbox iCloud?

  • network shared variable treatment

    Hello everyone, Someone tried to link data from a network shared Variable to the query (running in a smartphone or Tablet) made with "treatment"? I know on the dashboard of data but I would like to know if West someone working with these two technolo