A combine with other values of the column, the column values


Hi all

I need your help on this. I have a req I need to combine values of a percentage to the values of column test column. Here are examples of data

Select decode('test',null,'ABC') abc, b.percent, b.amount

from tableA, tableB b

where id = b.id

Examples of data

Amount of the percentage TEST

ABC              0.3                10

ABC              0.5                20

ABC              0.2                30

After him combine the values of percentage to the ABC percentage column values must be zero

Desired output

Amount of the percentage TEST

ABC(30%)                              10

ABC(50%)                              20

ABC(20%)                              30

Valuable suggestions are appreciated

Alter the query from Etbin with a trifle for the exact release.

with

t as

(select 'ABC' test, 0.3 percent, 10 amount of all the double union

Select 'ABC', 0.5, 20 double Union all

Select 'ABC', 0.2, 30 double

)

Select test | ' ('| to_char(100 * percent) |'%)' test, null as a percentage, the amount

t

Tags: Database

Similar Questions

  • On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    On my ipad, addresses in the e-mail of sellers are appearing in my favorite app of cards.  I can't remove them as I can with other recent in the cards.  How can I stop this from happening?  I'm not typed the e-mail address link.

    Maps - tap the box down a drop of addresses

    Under recent - click Favorites

    At the bottom, click on Favorites and remove addresses from this point of view - shot from right to left

  • Stock image Library for sharing with other members of the team

    How do I share pictures Adobe Stock I recorded in a Stock library with other members of the team (under a login team shared, although separate user accounts)? And I don't mean through other Adobe applications; I want just to save a group of possible images in a folder for the rest of my team to be able to view/choose. Who is?

    Connection on www.adobe.com and you will see a link to the libraries. From there, you can share for collaboration, send a link to your meals, etc,

  • With the help of D7000 with other routers on the network

    I'm trying to connect my router D7000 with other routers on my network

    None of these options allow to my D7000 router be considered a WAN device on my other router.

    Why not allow it? Are there problems with the firmware?

    I've now solved the problem on my own without Netgear support

    The problems have been resolved

  • the event structure cannot combine with other events and run only once

    Why it will always get stuck when I combined the 'new user add' event to the event of 'Login '?

    It works for me when I separate the two, but the 'Add a new user' button can work but only once for the structure above, program will be blocked on the second time that I press the button "add a new user".

    It has already been said, you must use that a single structure of the event and not 2. Also, avoid using local variables (better store data in a shift register and not in an indicator) how you do it, it can cause bad racing conditions.

    Actually here you just don't another data storage since you have a file. Don't store data file to the root of the C drive, you do not have write permission. Use the default data folder or the folder of the application.

    I have attached a simple example. I guess that's a work at home? Please make my account help: try to understand why your VI does not work and try to find a solution by yourself. Modify my sample and play with him. This is how you learn LabVIEW. If something is not clear, post here, and we can explain/help.

    Edit: has the 'connection' event, I don't check against whether the file exists or not. Difficulty of this part, gives too little practice.

  • Contacts are combined with others during the synchronization of google

    I'm having a problem where some of my contacts are getting merged during synchronization of google.

    For example, I have 3 contacts:

    Shipping of 1 company that owns two phone numbers

    2 transmission, which has two business phone numbers

    Shipping of 3 company that owns two phone numbers

    On my pre, I see two entries of contacts:

    Shipping of 1 company that owns two phone numbers

    2 transmission, which has four telephone numbers of the company

    I can't get 3 company, but their phone number appears under the company 2.

    Ideas, suggestions, etc.

    Hi rjoffe,

    Welcome to the forums of Palm! In your specific example, open the contact for shipping of 2 company, then tap the header at the top. A list appears showing all sources of data for this contact. Tap the 3 company shipping option, then select Remove the link profile. This will separate 3 company so that it is a separate contact.

  • [PIVOT] amount to combine with other pivot?

    Hello.

    I have this statement in my 11g database:

    WITH my_data AS
           (    SELECT    'pave'
                       || MOD( LEVEL
                             , 2
                              )
                         AS pave_name
                     , MOD( LEVEL
                          , 2
                           )
                         AS pave_version_nr
                     ,    'Cogr'
                       || FLOOR(   (  1
                                    + LEVEL )
                                 / 2
                                )
                         cogr_name
                     , LEVEL AS value_init
                     , 2 AS value_delivery
                     , 'fakjfhajhfkajöfdsgaösfdghöaoifdsgöafsghöa' AS coin_names
                  FROM DUAL
            CONNECT BY LEVEL < 9)
      SELECT *
        FROM (SELECT ROW_NUMBER( )
                       OVER( PARTITION BY cogr_name
                             ORDER BY
                               pave_name
                             , pave_version_nr
                            )
                       AS set_id
                   , cg.*
                FROM my_data cg                                                                                                               --
                               )
    ORDER BY cogr_name;
    

    where this result:

    PAVE_NAME PAVE_VERSION_NR COGR_NAME VALUE_DELIVERY COIN_NAMES VALUE_INIT SET_ID

    ---------- ---------- --------------- --------- ---------- -------------- -----------------------------------------

    1 pave0 0 Cogr1 2 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    2 pave1 1 Cogr1 1 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    1 pave0 0 Cogr2 4 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    2 pave1 1 Cogr2 2 3 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    1 pave0 0 6 Cogr3 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    2 pave1 1 Cogr3 2 5 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    1 pave0 0 Cogr4 2 8 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    2 pave1 1 Cogr4 2 7 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    For each separate COGR_NAME, I need to compare, VALUE_INIT, VALUE_DELIVERY and COIN_NAMES.

    so my desired output is:

    PAVE_NAME_1 PAVE_VERSION_NR_1 COGR_NAME_1 VALUE_INIT_1 VALUE_DELIVERY_1 COIN_NAMES_1 PAVE_NAME_2 PAVE_VERSION_NR_2 COGR_NAME_2 VALUE_INIT_2 VALUE_DELIVERY_2 COIN_NAMES_2

    ----------- ----------------- ----------- ------------ ---------------- ----------------------------------------- ----------- ----------------- ----------- ------------ ---------------- -----------------------------------------

    pave0 0 Cogr1 2 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa pave1 1 Cogr1 1 2 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    pave0 0 Cogr2 4 2 pave1 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa 1 Cogr2 2 3 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    pave0 0 Cogr3 2 6 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa pave1 1 Cogr3 2 5 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    pave0 0 Cogr4 8 2 pave1 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa 1 Cogr4 2 7 fakjfhajhfkajofdsgaosfdghoaoifdsgoafsghoa

    I tried a solution COGR_NAME and max() uses groups to keep (dense_rank last/first order of set_id) but it does not work with COIN_NAMES which is really a CLOB.

    So I guess it's possible with the pivoting of the query but any other solution is also welcome...

    Good bye

    DPT

    Hello

    One way is with a self-join, like this:

    WITH got_analytics AS

    (

    SELECT d. *- or whatever the desired columns

    ROW_NUMBER () OVER (PARTITION BY cogr_name

    ORDER BY pave_name

    pave_version_nr

    ) AS set_id

    , COUNT (*) OVER (PARTITION BY cogr_name

    ) AS n_rows

    OF my_data d

    )

    SELECT a1.*, a2. *- or other columns of your choice

    Got_analytics A1

    JOIN a2 ON a1.cogr_name = a2.cogr_name got_analytics

    WHERE a1.set_id = 1

    AND a2.set_id = a2.n_rows

    ORDER BY a1.cogr_name

    ;

  • One of my javascript interfere with other javascript in the drop-down nav menu

    I use javascript for a slideshow and scroll to images in my home page. The thread is that I realized that now, there is another javascript in the page that I don't remember call myself and it seems that connects both slideshows and also interferes with the drop down menu script menu, which now does not work.

    I used Magento, so that the header is not part of the same page. I don't know if is a Magento or something to Dreamweaver, that this new javascript was placed in the home page.

    Here's the url: http://www.southsunbeads.com

    " These two javascripts go with the main top page show: src = ' http://www.southsunbeads.com/website/slideshow/jQuery-1.2.6.Pack.js ">

    <script type="text/javascript" src="http://www.southsunbeads.com/website/slideshow/simplegallery.js">
    
    This one is part of the scroll image at the bottom: <script type="text/javascript" src="http://www.southsunbeads.com/website/carousel/stepcarousel.js">

    But then I have this one, that is causing all the problems and is apparently plug everything together, when I tried to remove it, slide shows stop working.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    
    I don't know javascript, so I have no idea how to fix this problem. Basically what I need is that the menu on the top doesn't get affected by these other javascripts.
    
    

    Can anyone help?

    Thank you

    Happy to be useful even in such a non-Dreamweaver related question ;-)

    And here's my usual Mantra as "watchdog" for this particular forum: questions better in the future such regular Dreamweaver general discussion post or (where it s a PHP related question) the Dreamweaver Application Development forums. The current forum addresses issues related to uninstall Dreamweaver extension, which generates the server-side code and has been abandoned for more than a year, that is, the number of fellow forum participants is much more out there in the forums of regular Dreamweaver - who knows, some of them might even be familiar with Magento and could advise you better than what you have here ;-)

    Cheers and good luck,

    Günter

    PS Si you think that the answers that happened - sort-help to resolve your issue, please consider this marker as "answered".

  • Daisy chaining with other routers and the common IP range EA6500 V2

    I have a local network of...

    • a modem
    • a gateway connected to the modem computer/server
    • has a modem-router connected to the gateway/server via the port of the gateway/internet
      (gateway/a two server NETWORK interface card)
    • a and B modem router wireless connected to the router via the gateway/router internet port B
    • both A and B using the same set of IP addresses, 192.168.0.XXX

    Now I want to do the same thing with my Linksys EA6500 V2 I did with router B, I want to connect the Linksys router has via gateway/internet port on Linksys.  In addition, I want the Linksys router to use the DHCP server on the gateway server / as everyone is on the local network and, of course, I want to use the series of IP addresses, 192.168.0.XXX.

    What I tried to do is to disable DHCP on the Linksys service, but nothing seems to change once the changes are activated.  I look in the Local network settings and see all the old default 192.168.1.1 for the router address and so on.  I also tried to change the address of the router manually an address of 192.168.0.x and was immediately cut off this subnet.  I tried the renewal of my Windows client computer and couldn't do that either.  And as my client could not change its own address 192.168.1.X, I couldn't reach the router to the address that I gave him.

    How can I set up this router so that it uses the DHCP server on the gateway/server computer, including acquiring its own address in the same series.  Or at least set up so that it uses the same series of address than the rest of the LAN and no longer functions as a separate subnet?

    It seemed that all I had to do to set up router B to connect this way was to disable the DHCP server and everything fell into place, no problem.  Is this all I need to do here?  Am I supposed to restart or something?  I'm tired of guessing and trial and error.

    All tips or hints would be appreciated.

    You have to give the EA6500 a router static IP address in the same subnet as your network, but not in the DHCP range.

    Follow the instructions for 'LAN to LAN' Cascading in the link below:

    In waterfall or connect a Linksys router to another router

    Thing to keep in mind when cascading a router:

    1. Change the IP address of the secondary router to something like 192.168.1.254 so its on the same network, but is not in conflict with the main router
    2. Make sure that the DHCP service is disabled on the secondary router
    3. Make sure that nothing is ever connected to the internet port of the secondary router
    4. Differentiate the wireless SSID by location (Ex: downstairs) and the channel
  • value null with other values display

    Hello world

    I have this request

    Select the scott.emp nvl (comm, 3) where comm! = 500

    It is to exclude the line 500, but I want the null row display because it excludes null values too

    proora wrote:
    Hello world

    I have this request

    Select the scott.emp nvl (comm, 3) where comm! = 500

    It is to exclude the line 500, but I want the null row display because it excludes null values too

    Select the scott.emp nvl (comm, 3) where comm! = 500 or comm is null;

  • Question about warranty in combination with a downgrade from the OS

    If I want the free extended warranty, my serial number is not active. I've killed my XP OS. May be the problem of downgrade? Thank you

    Check if mix you letters and numbers!

    If you will not be able to register the warranty extended in the internet then contact ASP in your country and the guys should help you record your laptop!

  • How to share files & folders with other users on the same PC

    We have 2 users on our PC I can find how to 'share' on a network, but not on the same PC (I'm a user 'low tech') all the headings of 'aid' seemed to refer to a network of more than 1 PC

    Files/folders that you want to share between users on the same machine should be placed in the Public, C:\Users\Public directory. That is what concerns the Public directory. MS - MVP - Elephant Boy computers - don't panic!

  • Raw disk used by the prompt on the same host, broadcasts available on other hosts in the Cluster

    We have a Cluster of MS using RDMs in a host cluster ESXi 4.1 5.  The RDM physical Mode, on a guest on hostA, the storage is presented to the host b, hostC, pass, hostA, hostE.

    It has always been my understanding (and I saw with other RDMs in the past) when a ROW gets used by a hostA of comments, it will be posted is no longer in the pool of strage avalible under the window "Add Storage" on the host b.-e... I would still be able to see as RDM LUN if I went to a guest and added another hard drive, but the host would no longer display it as storage avalible.

    It is confirmed in the following article: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1016222

    In my scenario, I can still see the storage that has been given to a guest on HostA as a RDM on hostsB-E in the add storage window. (this cause some problems when let storage recover 'unused' LUNS and storage that has been considered as non-allocated was actually released several guests as RDM.)

    The article suggests that this occurs when the storage is not presented consistently on all hosts in a cluster.  We use EMC FC storage, and my storage administrators swear that LUNS are the same for all hosts in my cluster.

    I search in the KB articles information and empty to come... I'll open a case with VMware, but was wondering if someone else has experienced problems similar, and that has been done on your side to solve (and hopefully help someone to avoid any similar problems)

    In addition, there is an easy way to compare points of view "Add Storage" of all hosts in a cluster to verify that they see the same unallocated storage?

    No, if the number of LUNs and the naa numbers game (don't forget the 16 and the last 8 digits of number of naa are still the same according to the table), you can have row filtering disabled Please check

    The values below the default values are true

    • In the vSphere Client, select Administration > vCenter Server settings > Advanced settings.
    • According to your needs, add one of the following or the two key-value pairs:
    • config.vpxd.filter.rdmFilter; fake
    • config.vpxd.filter.vmfsFilter; fake

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1010513

  • BlackBerry Smartphones Bluetooth connection with others

    I have similar problems with other users about the bluetooth connection, my blackberry "BOLD" cannot receive data from the device by using the bluetooth connection. I tried all the steps in the user guide, but nothing helped. What makes me wonder is that it works well, but I don't know, maybe I'm pushing the wrong buttons in the Setup menu? Someone help please? It works fine when it comes to sending data however.

    Try resetting the device with the phone, turn on, remove the battery for 30 seconds and reinstall again.

    Try matching that of devices again, let me know.

  • How do I move the UCS with OS blade on the local disks between chassis

    Hello

    I have to move the blade between chassis - blade have OS installed on local disks and Associates profile.

    I can simply:

    Shutdown

    Enter the maintenance

    remove the chassis

    Exchange with other blades of the second chassis

    power on

    Blade are properly recognised and profile will go with it?

    I found Advisor here it is best to unassign blade profile and partner back after removal:

    https://supportforums.Cisco.com/discussion/11230671/physically-move-Blad...

    but it seems too complex for me - if someone who tired of this exercise can share some experiences?

    See you soon

    Hello

    Assuming the frame belong to the same domain (even pair of fabric for interconnection) and you are using ESXi, try the following:

    1 - Enter the host in maintenance mode (it can be move virtual machines to another server/power them off / take them into so maintenance mode)

    2. cut the blade

    3. ensure that the Service profile does not have a disc of scrub policy so that data is not deleted when the profile Service (SP) is ungrouped

    4 separate the SP

    5 decommissioning of the blade

    6 - Remove the blade and insert the new blade

    7. move the second chassis original blade

    8 - though the blade and an associate of the same/original SP

    9 powers on the blade

    10. take the server out of maintenance mode. as well as virtual machines

    Note: For the blade inserted in the drive, that we released our blade, you can create a new SP and pair with it or you can actually have any MS (including that attributed to the recently released blade) and assign it to the new blade.

    A single SP by sever and that one server per SP.

    SPs are independent from the hardware (as long as the material is compatible with the functions set up by the PS)

    Let me know if this info has helped, if not let me know and I wil expand or try to make your job easier.

    Please note ALL useful answers

    -Kenny

Maybe you are looking for

  • Extension of X 200 and monitor satellite

    Each computer laptop include expansion of the monitor on small like. Why this is happening and how with it to struggle? :| Thank in advance for your answers!

  • IMessage connect to facebook

    Using imessage I connect more on the facebook chat; I have imac with el capitan 10.11.1 installed. It goes on for a few days... I don't ' know why. I'm sure that the parameters are good; I tried all the possible solutions, but no one worked... always

  • Popup of duplexing manual, other oddities

    I have two users on two different printers CB509A of HP Laserjet 4015n of impression and they both receive the pop-up below when printing to some programs.  I have no idea why this is coming.  We have recently begun to share printers of new 64-bit 20

  • Purchase of upgrade of Windows 8 $14,99 - a few questions

    I know it's more a matter of Microsoft, but I thought that some people here are likely to answer my specific questions including HP. I recently bought a new laptop with Win 7. Although I am happy with Win 7 and do not know if I would be just as happy

  • Question about running from two cameras at the same time with MAX

    Hello I have two cameras attached to NI PCIe-1430 frame grabber card (Atmel Aviiva M2 CL and Fairchild 2 K LS) IRLS. It's ok when I run two cameras individually, but I can't run them at the same time. This is the step that simultaneously run two devi