Alternative for the Group of

Hi guys I need help with logic. For example, I have the table with the columns has and produce. Each account can so many products. Now I need SQL to see accounts that have produced only.

A way of doing, by doing a group by and having count (Account) = 1. I need an alternative for this. Please help me with your ideas. Thanks in advance.
SELECT  ACCOUNT
  FROM  (
         SELECT  ACCOUNT,
                 COUNT(*) OVER(PARTITION BY ACCOUNT) CNT
           FROM  YOUR_TABLE
        )
  WHERE CNT = 1

SY.

Tags: Database

Similar Questions

  • Captivate in 8, can you apply an effect (for example, a transition) for the grouped shapes? (I can apply the effect to a single shape, but when I group forms, I can't understand how).

    Captivate in 8, can you apply an effect (for example, a transition) for the grouped shapes? (I can apply the effect to a single shape, but when I group forms, I can't understand how).

    Hello

    It is not possible to apply effects to groups of forms. You can apply the transition from the distribution panel and other properties in the property inspector.

    You will need to apply the same effect of the same duration for all objects in a group in this case.

    Thank you.

  • Click and buy alternatives for the Austria - Alternative zur Click and Buy Zahlungsmethode

    There will be a payment option alternative to click and buy, which will no longer be available next month? I mean one without having to own a credit card? Otherwise, I would have to cancel my subscriptions... I want to avoid this!

    Wird are as alternative eine Österreich zu click and buy enter, bei der man nicht einer muss breast credit card owners. Andernfalls would ich alle meine kundigen subscriptions. DAS möchte ich draft!

    You can use the gift card iTunes for another method of payment. This could help you. Let us hope that apple will come up click on any mode of alternative payment for Austria iTunes Store and buy!

    Please read that for the link iTunes gift card Austria - http://www.apple.com/at/itunes/

  • Support for the 'grouping' Dual LAN

    I bought a router of WRT600N, which was far & away the router wireless dual band to use more expensive (& only) available at the time + 2 compatible Ultra Range Plus USB receivers.  Apparently Linsys/Cisco decided to abandon this model & more support - still firmware version 1.0 (from 2008).  OK, then repeat ceMarketing not high on their priorities.

    I recently upgraded my hardware in a platform Intel 1156 running Win 7 Ultimate 64-bit completely.  The new motherboard, a Gigabyte GA-P55-UD5, has a 'dual LAN' support that allows "bundling" - potentially 2 GB support & self-switching if a port is not functional.  Apparently, it requires a router that has 'IEEE 802.3ad' capabilities.  As far as I can tell, this potentially interesting feature only is not supported, & the firmware upgrade failure suggests it will be never. - bought their "Network Magic" software Pro to add another $50.

    So the question is this: I believe - no double support LAN is built in & never will be--or is there a way to use this feature?  Suffice to say, if I paid about $420 for the router & USB receivers where if other router support him on the level of consumption, I will never consider a Linksys/Cisco product in this life.

    Thanks for some clarity - that someone has to offer.

    I would say the associations are no consumer router function. If you really need a connection of 2 Gbps to a single device to your network, I wonder what other device to communicate with this speed. It is not only another device because it would have only 1 GB/s unless you team two remaining ports as well. (Do not forget that desktop computers more level of consumption are not yet fast enough to offer or receive data at a rate even if they have a Gigabit ethernet port).

    If you have a set of other features which, in combination, require 2 Gb/s access server, then you will have again the same problem: it must connect somewhere which means you need a switch that must be connected to the two remaining LAN ports. But then, you might as well get a switch that supports reunification and enough ports and connect everything what he. Of course, an ethernet switch that supports the grouping is usually some 'smart' managed switch that cost easily more then your WRT600N.

    So I think that grouping will be never supported on any Linksys consumer device. If you then you must watch the Cisco Small Business series or better. They have some devices supporting 802. 1 q VLAN and therefore potentially also 802.3ad. Although even in this case I doubt because given the number of ports available on these devices is not really a lot of sense to support at least on a router 4 ports. Devices consumer and SOHO are not for internet connections of 1 Gbit/s or more. So you can only use the speed inside the LAN, but with 4 ports that would be difficult... So I would say that by their design these routers don't support grouping. If you need grouping within your LAN, get a managed switch...

  • Too big for the grouped SQL 2 K 8 Express Database?

    I'm plodding through the vCenter Server 5.1 Upgrade Guide, all the time, assuming that I didn't need to worry about installing a complete SQL DB for 5.1, and I come across this Page 51:

    > Microsoft SQL Server 2008 R2 Express: group database that you can use for small deployments of virtual hosts up to 5 and 50 machines.

    I have 3 guests and 36 VMs.  These 36 VMs, about 25 are critical.  We you will develop, but we should be good for another year or more.

    Question1: should I worry about the time, licenses, etc. to create a complete SQL DB for vCenter 5.1 upgrade?

    Question2: is SQL 2 K 8 R2 Express come with the file .iso image for the upgrade to vCenter and just install/upgrade it first?

    Ty

    -lc

    Answer 1: You can go with the Express for your deployment. In fact, the limitation is a soft and only has an impact on the size of DB stored by vCenter (R2 Express now have a 10 GB limit size of DB) and performance. You CAN have more than 50 virtual machines / 5 ESX, but if you have a problem with your vCenter service (i.e. vCenter start fail, slow performance when you access the inventory, etc.), VMware will not support you in this case. Virtual machines will not be affected by this.

    Answer 2: Yes, SQL Express are delivered on the installation of VC. He moved with vCenter (you can choose during installation).

  • Trying to get ending entry into force for the groups of lines

    Hello world

    I searched the forums, but I can't find a post that is a problem quite like that.

    I have some data that looks like this:
            ID_NUM     EFFECTIVE ALLOC_PERCENT   ACCT
    ---------- --------- -------------   ----
           101 01-JUL-11            21   A1
           101 01-JUL-11            72   A2
           101 01-JUL-11             7   A3
    
           101 01-JUL-12            20   B1
           101 01-JUL-12            80   B2
    
           101 01-JAN-13            20   A1
           101 01-JAN-13            20   A2
           101 01-JAN-13            50   A3
           101 01-JAN-13            10   B1
    
           101 01-JUN-13            50   A1
           101 01-JUN-13            50   A2
    (note: I inserted manually empty lines for clarity)

    Here's the logic: the lines represent an assignment of percentage on the account for the identification number specified for this entry into force. A new date to cancel the previous, and if any line in the conceptual group is replaced, so they are all.

    I'll try to find the date when the effective period of each group ended and which includes in the game so that I can calculate then the number of days in a given line has been effective; something like that;
      ID_NUM     EFFECTIVE END_DATE   ALLOC_PERCENT ACCT
    ---------- --------- ---------- ------------- ----
           101 01-JUL-11 01-JUL-12             21 A1
           101 01-JUL-11 01-JUL-12             72 A2
           101 01-JUL-11 01-JUL-12              7 A3
    
           101 01-JUL-12 01-JAN-13             20 B1
           101 01-JUL-12 01-JAN-13             80 B2
    
           101 01-JAN-13 01-JUN-13             20 A1
           101 01-JAN-13 01-JUN-13             20 A2
           101 01-JAN-13 01-JUN-13             50 A3
           101 01-JAN-13 01-JUN-13             10 B1
    
           101 01-JUN-13 <null>                50 A1
           101 01-JUN-13 <null>                50 A2
    The end_date of the group is the EFFECTIVE_DATE of the next group (ordered by ID_NUM, EFFECTIVE_DATE).

    End_date of two rows is zero because there is no group of lines with an effective date the later - in my process, I'll NVL which sysdate so that my calculations of days will be valid.

    I tried some analytical queries with LEAD, but I couldn't figure out how to get the next date of the efficient group. I could get the entry into force of the next row, but not the next group. I couldn't specify how many lead lines to look forward, because there is not a number of rows in each group.

    How to fill the end_date column?

    Here's the code to create the above.
    create table t
    (id_num number,
     effective_date date,
     alloc_percent number,
     acct_code varchar2(4)
     );
    
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',21.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',72.0,'A2'); 
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2011',7.0,'A3');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2012',20.0,'B1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jul-2012',80.0,'B2');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',20.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',20.0,'A2');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',50.0,'A3');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jan-2013',10.0,'B1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jun-2013',50.0,'A1');
    insert into t (id_num,Effective_date,alloc_percent,acct_code) values(101,'01-jun-2013',50.0,'A2');
    
    commit;
    
    select * from t;
    Oracle version information:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production."
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production


    Thank you very much

    Hello

    Here is one more way to do using lead work.

    WITH ds as (id_num, effective_Date, lead (effective_date) select on end_date (id_num order, effective_Date))

    t

    Id_num group, effective_date)

    Select t.*, ds.end_date

    DS, t

    where t.effective_Date = ds.effective_Date;

  • Toggle visibility for the Group layer

    With the help of this forum, I got a script that activates / deactivates the visibility of a specific layer without selecting the layer.

    I would like to know if the same functionality can be obtained for a layer group.

    In other words the script can toggle the visibility of a layer with output actually group by selecting the Group of layers?

    I understand that some parts of Photoshop are not scriptable and wan to ensure that it is not one of them, before I was embarking on the creation of the script.

    
    

    I have a script that does what you need. Can't remember if I got here, but I know that the scripts here guys are geniuses and can help you with almost anything. That being said, here's the script you need. All you need to do is replace the three parties "Insert Layer Name Here" with the name of the layer you want to toggle. Don't thank me, thank the guy who wrote (probably someone here)

    var targetID = getLayerIDByName('Insert Layer Name here');
    if(undefined != targetID){
        if(getLayerVisibilityByID( targetID ) ){
            hideByName('Insert Layer Name here');
        }else{
            showByName('Insert Layer Name here');
        }
    }
    function getLayerIDByName(name) {
        try{
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "LyrI" ));
        ref.putName( charIDToTypeID( "Lyr " ), name );
        return executeActionGet(ref).getInteger(charIDToTypeID( "LyrI" ));
        }catch(e){}
    };
    function getLayerVisibilityByID( id ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Vsbl" ));
        ref.putIdentifier( charIDToTypeID( "Lyr " ), id );
        return executeActionGet(ref).getBoolean(charIDToTypeID( "Vsbl" ));
    };
    function hideByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Hd  '), desc, DialogModes.NO );
    };
    function showByName(name) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
                ref.putName( charIDToTypeID('Lyr '), name );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    };
    

    EDIT-Oops, I just realized that it is only for layers, not groups. But I hope that it is a starting point

  • Archiving of trigger of end for the Group again

    Hello
    I use Oracle 11.2 64 bit
    Is there a trigger when a redo log group is archived (archival process is complete)?
    Kind regards
    Groxy

    You can install a log_archive_dest for re - try a destination failed after a few seconds, and also make the optional destination for the whole of the base is not crushing a setback if the destination is unreachable.

    Take a look on the doco for log_archive_dest attributes:

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14239/log_arch_dest_param.htm#SBYDB01100

    I hope this helps.

    Thank you
    Paul

  • Index for the Group of readonly cache table

    Hello

    Suppose I have a table in Oracle which is cached in TT as a readonly cache group.
    The oracle table has a primary key, based on columns (c1, c2, c3).

    Now, the oracle table also has a unique index (for example defined on columns c4, c5) in support of some queries.

    (1) is there a way to propagate this unique index for the cache group? (so that we can perform queries effectively TimesTen)

    (2) is it correct to assume that the group create cache statement MUST have the columns (c1, c2, c3) for the primary key? (that is, exactly the same as the pharmacokinetics of the oracle)


    Thank you!

    (1) after you have created the cache in TimesTen group, simply create the index needed on the tables of cache in TimesTen (using CREATE [UNIQUE] INDEX) as you would for any table.

    (2), it depends. A caching table must have a primary key defined in TimesTen. This PK must map to either a real PK defined in Oracle (same column names, order of the columns, data types, nullability, etc..) or a unique index defined on a set of columns not null (column names of the soul, order of the columns, types of data etc.).

    Chris

  • alternative for the printer drivers on Mac OS10.9 system

    Until they are available at HP, is there another way to access drivers for office jet 6700 for Mac OS10.9 system? Or at least another way to print, scan and copy... until the drivers come out?

    Hello

    Yes, if your HP Officejet 6700 worked with OS X 10.7 or 10.8, the drivers and the HP software will continue to work properly with the new OS X Mavericks after an upgrade of the OS.

    If you have a new Mac clean® system or OS X Mavericks, HP also provides driver HP Officejet 6700 and ImageCapture to scan files via Apple Software Update right now.  It's the same star driver full that would provide hp.com/support.  Make sure that the printer is turned on and connected to the Mac when you create the queue for the printer (add a printer).

    HP is now working on the full release HP sw/installers of hp.com/support for your model - available in the near future.

     
  • Question on DNS entries for the grouping and the call

    Hey all,.

    We test a bunch of highway that has been placed in its own subdomian DNS (for example)

    cluster.Domaine.com

    With DNS entries:

    SRV

    _sips._tcp.cluster.domain.com. 86400 IN SRV 5061 1 1 Expressway1.cluster.domain.com.

    _sips._tcp.cluster.domain.com. 86400 IN SRV 5061 1 1 Expressway2.cluster.domain.com.

    _sip._tcp.cluster.domain.com. 86400 IN SRV 1 1 5060 Expressway1.cluster.domain.com.

    _sip._tcp.cluster.domain.com. 86400 IN SRV 1 1 5060 Expressway2.cluster.domain.com.

    _h323ls._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323ls._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    _h323cs._tcp.cluster.domain.com. 86400 IN SRV 1 1 1720 Expressway1.cluster.domain.com.

    _h323cs._tcp.cluster.domain.com. 86400 IN SRV 1 1 1720 Expressway2.cluster.domain.com.

    _h323rs._udp.cluster.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323rs._udp.clusterdomain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    A

    Expressway1.cluster.domain.com. IN a x.x.x.x (address IP Expressway1)

    Expressway2.cluster.domain.com. IN a x.x.x.x (address IP of Expressway2)

    However, I would actual calls placed to the root domain

    domain.com

    But with these entries DNS pointing to the subdomain of cluster, or I point to the individual counterparts of the cluster (see above). My feeling is that what I should do to the cluster so I need update DNS entries for the main domain if the peer of the cluster changes, such as:

    SRV

    _sips._tcp.domain.com. Cluster.Domaine.com IN SRV 0 0 5061 3600.

    _sip._tcp.domain.com. Cluster.Domaine.com IN SRV 0 0 5060 3600.

    But is this correct?

    Post edited by: Chris Swinney

    Comment added to records showing that they point to

    Hi Chris, how are you?

    If I remember correct SRV RFC which would be an error because no recursive search of srv would get,

    the address at the end of the srv record must be an a record (so also no CNAME).

    In your scenario, you can use:

    _sips._tcp.domain.com. 86400 IN SRV 5061 1 1 Expressway1.cluster.domain.com.

    _sips._tcp.domain.com. 86400 IN SRV 5061 1 1 Expressway2.cluster.domain.com.

    _sip._tcp.domain.com. 86400 IN SRV 1 1 5060 Expressway1.cluster.domain.com.

    _sip._tcp.domain.com. 86400 IN SRV 1 1 5060 Expressway2.cluster.domain.com.

    _h323ls._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323ls._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    _h323cs._tcp.domain.com. 86400 IN SRV 1 1 1720 Expressway1.cluster.domain.com.

    _h323cs._tcp.domain.com. 86400 IN SRV 1 1 1720 Expressway2.cluster.domain.com.

    _h323rs._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway1.cluster.domain.com.

    _h323rs._udp.domain.com. 86400 IN SRV 1 1 1719 Expressway2.cluster.domain.com.

    h323cs and rs cannot be used (cs is if you dial the field directly without user @ from the beginning)

    RS is used for registration, most of the configurations that I saw live fine without it...

    BTW, if it is a copy paste, replace your alone there is an error in the last entry of rs, it lacks one. between the two

    cluster and field.

    Btw2, I would set a record also has to be cluster.domaine.com at least one of the VCS, it's

    very convenient for endpoints no or wrong to support srv records.

  • Alternatives for the dashboard?

    Since development Dash be closed, which in my opinion means that the end of the dashboard is on the horizon, it's all alternative and similar platforms out there at this moment?

    I ended up finding an HP Touchpad, even if I still need the dock. Unfortunately, HP Touchpads are difficult to get hold of after the great firesale for a decent price. If you are looking in the range 10 ", keep an eye on some of the Chinese brand tablets with decent specs (Cortex A9, 512 MB or 1 GB of RAM, 5 point multitouch IPS LCD) to drop below $200 (even if they aren't too now).

  • Y at - it an alternative for the filter oil painting?

    Adobe remove paint oil filter with the new version of Photoshop CC 2014... I use this filter a lot, is there an alternative?

    You will find painting oil filter in Photoshop CC.  He was removed from the Photoshop CC 2014.

    So if you have Lightroom creative cloud, you should have the CC of Photoshop and Photoshop CC 2014.

    I been looking for this for 4 days now, and I just found this.  I am so happy.

  • How to use batch_id in interface of requisition for the grouping of the IR

    Hi all
    We want to generate internal applications in order to group of users.
    We assign each group a single batch id.
    But it seems unnecessary to IRs group by id batch, all coming together in a query.

    Can we use batch to group IR code?

    Thanks in advance.
    Best regards
    Zhxiang

    Do not use batch_id.
    Use group_code for Group requests.
    The importation of Req. will put all records with the same group_code on demand.

    Hope that answers your question,
    Sandeep Gandhi

  • CS5.5 looking for the Group waveform normalize?

    Hi, I know that in Audition 3, on the Edit menu, there was the option of group waveform normalize.  I'm looking for this in CS5.5 and can't seem to find it.

    Is this feature still in CS5.5?

    Thank you

    See page 138 of the help file - it's there.

    Downloadable help file

Maybe you are looking for

  • How can I see this?

    Hello, I have a page rekomendasiforex.com I try to open it via safari. Which gives a great result, but I do not see this widget in mobile display Im very grateful for everyone has answered my question, thank you. And I'm sorry if I'm posting in the w

  • Error 1 when generating exe

    I have a program that I regularly build exe from code.  In recent weeks, I've seen growing errors during construction.  Before a backup solves the problem.  The compiler complains about the error 1 for a random vi.  The file identified changes and no

  • Service Packs 1 & 2

    If instead of loading the updates one by one via windows update, I install the two Vista 64-bit service pack only, which will be good?

  • Cannot find router storage attached with the Explorer WIN 7 Home Prem on my PC; but I can find media server (twonkymedia) fine on the same PC!

    Explorer and server multimedia applications work on all of my other computers, laptops and devices.  But I have a PC running windows 7 Home premium which will not find my wireless router only attached a hard drive with windows Explorer. Never. The PC

  • JS function as a type of page in QML property

    Hi all I'm trying to create useful js 'class' for my blackberry application and save here some information about qml object here is the example of such file js: /* * my js */ function Utils(devInfo){ this.devInfo = devInfo; this.text = "test text"; t