query: find all the rows that are not separate

Hi first of all I am not dba nor have much experience of fancy requests so be gentle

Im trying to find all the lines that have a non-distincte value in column "C".
Therefore, if the values in the column 'C' where:
4
54
33
4
1
9
9

the query returns 4 and 9

I made this request:

Select t.c
table t
where 1 <)
Select count (c)
table
where c = t.c)

but this looks like n ^ 2 complexity that is too long for the size of this table

is there a better way?
Thank you
select *
  from (select t.*, count ( * ) over (partition by C) cnt
                from table1 t)
 where cnt > 1

Tags: Database

Similar Questions

  • How is possible to create a smart collection to find all the photos that are not belongs to any collection?

    Hello

    How is possible to create a Smart Collection to find all the photos are not belongs to any collection?

    "Yesterday I was importing a lot of photo when my camera battery died then I succeeded him and continued to import without thinking that the previous import collection literally means" previous import. "

    So I need to find a way to create a smart collection that will reveal all the photos that do not belong to any collection.

    I solved the problem with a workaround is creating a collection based on the date of the photo which worked well, but must be nice to have a more general collection to find all the photo that are not from the collections.

    Thanks in advance,

    Marco.

    Another way to do

    1. Select all photos in the catalog

    2 dismiss a color label

    3. go to collections and multi select all your collections (ctrl)

    4. select images and give them a color

    5. return to the catalogue

    6. filter by color label - No

  • I want to see just all the Photos that are not in an album - possible?

    Hello

    is it possible to see all the photos that are not in the album?

    Photo on Mac

    THX

    Stefan

    Yes, create smart albums with the rule 'Album isn't everything. "

    For the file menu: file > new Smart album

    This album will contain all the photos that are not in any standard album.

  • y at - it a button to remove all the nuances that are not used in an file?

    Hey all,.

    I was wondering is there a button that removes all the nuances that are not used in an illustrator file?

    Any help would be great

    Look in the Actions Panel. It should be an action he who says to remove all unused items in the Panel.

  • SQL query to a / columns of values for all the rows that are returned by default

    Hello everyone.
    I was looking for help to make an SQL query that can be achieved if all goes well-

    I want that all the rank values in a particular column of a set of rows returned by default for a specified string. For example, consider the SQL below:

    Select date, start_time, building and room
    of star.events

    Consider this example output of the query above-

    Start_time date room
    2009-07-01 9: 00 AB 99
    2009-02-03 7:11 ED
    2009-01-03 8:23 FF
    2009-03-04 4 am SD 29

    How can I change my statement default SQL column space to say ' 57 "regardless of what the actual database values are showing this instead?

    Start_time date room
    01/07/2009 9:57 AB
    2009-02-03 7:57 ED
    03/01/2009 8:57 FF
    2009-03-04 4 am JJ 57

    Any direction/suggestions would be much appreciated.
    Thank you!

    Hello

    SELECT DATE,
           start_time,
           building,
           57 as room
    FROM   star.events;
    

    Kind regards

  • How can I see the photos that are not in an album?

    How can I see the photos that aren't in an album in the App "Photos"? I noticed that in the Album 'Pictures' are pictures I thought I deleted already. I would like to see all the photos in an album, so I can finally delete them.

    You can go the the file menu Photos and click New Smart Album, and then set the condition of Album - is not. This will create a smart album that will show you all the photos that are not in any other album.

  • I added a 128 gB microSD card to provide the space for my photos, (a second hard drive) but lightroom won't let me not import all the pictures that are already on the map. The only import option is 'copy', not 'Add '.

    I had a problem with Lightroom on Microsoft Surface 3.  I added a 128 gB microSD card to provide the space for my photos, (a second hard drive) but lightroom won't let me not import all the pictures that are already on the map.  The only import option is 'copy', not 'Add '.  I worked around this by mounting a network directory containing photos and imported from there.  Is it possible to stop Lightroom to see such a map as a camera?

    I have not tested, but it should work with Lightroom:

    http://stltechtalk.com/ultimate-Ms-surface-hack-fully-utilize-micro-SD-card/#.

    Not sure what happens if you remove the card and put in a similar SD card. I would like to test it so that you know what to expect.

  • Do I lose all the iMessages that have not been delivered to my iphone if I withdraw (from iMessage) my phone number? My current iphone is broken and I am planing to get a new one, with in a few months.

    Do I lose all the iMessages that have not been delivered to my iphone if I withdraw (from iMessage) my phone number? My current iphone is broken and I am planing to get a new one in a few months.

    You may lose everything.  iMessage, like most e-mail services, don't keep permanently undeliverable messages.  They only keep in the short period send queue (I don't know exactly how much time but some Apple tech sites indicate no more than 10 days to two weeks) until they are purged.  That's pretty standard as otherwise, large volume, messaging services would be sitting on tera-bytes of messages not delivered each month.

    You actually have to change my phone number?  If not, let alone sign and only in iMessage when you have the new phone with this set of numbers upward to the service.

  • I want to see all the devices that are connected to my router

    I have a router E1200 and it is very good, however I have noticed that there are 12 devices connected to my router so infact it should be only 4 devices. I would like to see all the devices that are connected and disconnect those who do not belong to HELP!

    You use software to see all the devices that are supposed to be connected to your router? You can reset and start over with your router.  Make sure you have security enabled on it as WPA Personal. You can try a DHCP reservation so to ensure that devices that will have access to your router are those you have included on the list.

  • Hello, I downloaded a new Web site, but all the svg files are not displayed on the browsers. When I opened it in Muse with the "Preview in browser", its fine! can someone tell me please where is my problem? (Sorry for my English!)

    Hello, I downloaded a new Web site, but all the svg files are not displayed on the browsers. When I opened it in Muse with the "Preview in browser", its fine! can someone tell me please where is my problem? (Sorry for my English!)

    Hello

    Could you please check this thread, it might be useful

    Muse exporting is not svg, can only see Preview

  • queue on the profile that are not used

    Hi guys,.

    is anyway to wrap on the profile that are not used or attributed to any user name or roles?

    flaskvacuum wrote:
    Hi guys,.

    is anyway to wrap on the profile that are not used or attributed to any user name or roles?

    SQL> CREATE PROFILE test LIMIT
      2     FAILED_LOGIN_ATTEMPTS 5
      3     PASSWORD_LIFE_TIME 60
      4     PASSWORD_REUSE_TIME 60
      5     PASSWORD_REUSE_MAX 5
      6     PASSWORD_VERIFY_FUNCTION null
      7     PASSWORD_LOCK_TIME 1/24
      8     PASSWORD_GRACE_TIME 10;
    
    Profile created.
    
    -- Created but not assigned --
    SQL> select distinct profile from dba_profiles where profile not in (select profile from dba_users);
    
    PROFILE
    ------------------------------
    TEST
    
    SQL>
    
  • Find indexes in the schema that are not used

    Hello
    Anyone know an easy way to SQL or EM to find all indexes that are not used (not accessed) in a schema?
    Greetings

    Published by: user552215 on January 26, 2012 04:15

    Salvation;

    Please see:

    Identify unused indexes [ID 144070.1]
    Identify unused indexes with the ALTER INDEX TRACKING controls [ID 136642.1]

    Respect of
    HELIOS

  • Query to find all the tasks that were running for a particular user

    Hi all

    When you see the 'history of resource' of a particular resource for a user, we can see all the tasks that have been completed for the user.

    I have a requirement which is, I need to display the same information via a database query.

    Any help in this regard will be highly appreciated.

    Kind regards.

    OSI table contains the final task instance data.  If you see a task rejected 5 times, it will be so only one entry of osi.

    Select usr.usr_login, obj.obj_name, mil.mil_name, sch.sch_status

    OSI, mil, CHS, orc, pkg, usr, obj

    where osi.mil_key = mil.mil_key

    and osi.sch_key = sch.sch_key

    and osi.orc_key = orc.orc_key

    and orc.usr_key = usr.usr_key

    and osi.pkg_key = pkg.pkg_key

    and pkg.obj_key = obj.obj_key

    and upper (usr.usr_login) = upper(:usr_login)

    and upper (obj.obj_name) = upper(:obj_name)

    You can provide the user login name and resources, and this will provide you with all their tasks given.

    -Kevin

  • Help - why the songs that are not on my iPhone appearing in my list of app music albums/songs?

    I have over 500 GB of music on my Mac, so I create a playlist for the songs I want to sync my iPhone. Yet when I look at my phone, there are many songs that are not in sync would be playlist. They cannot be read unless the phone is connected to my wifi at home, but I don't want them cluttering up my phone and makes it almost impossible to find the tracks I want to listen to.

    I hate the new music app. For the first time since I converted to Apple 10 years ago, I wonder if I can be forced away because it's so horrible. Why ruin a great product with terrible software? Anyway, if anyone can help me to fix this serious bug, I would be very grateful.

    If you go to the library of the screen and press the red text just below the icons of the album/playlist (where you select whether you want the screen to show the view of the artist/Album/songs downstairs there is a toggle to only show that downloaded music.) If you enable this, then only the songs that are actually ON your iPhone will be in BLACK characters. The rest of your music library to iCloud either won't display at all or be grey. Now - if you have a few streaming, you can see more songs, because the songs that are heard are cached in the memory of the iPhone box and supposedly deleted automatically when it fills up (but not user accessible unless you use some third-party programs).

    What you can do - so they need WiFi or data cell-, it's make a playlist in iTunes that you want on your iPhone. Then (assuming that Apple music and iCloud music library are running on both), you can go to the playlist and press the small cloud/down arrow icon and download these tracks on your iPhone. Then, you can play these songs without access to wifi or cell phone.

  • I need all the updates that are contained in Add/Remove programs

    original title: Add Remove programs?

    Because I watch the programs installed, I see many, many different update Service updates etc. for Windows XP and IE 8.  Do I need these old programs (a 2007 date)?

    most of them refer or deduct to microsoft is required by your computer, even if are old to you but not old for xp.  XP came out in the early 2000s.  so the 2007 updates are not old for xp.

    In addition, remember that microsoft supports more xp.  However, on rare occasions they might 'could' predict a significant update xp now adays.

    so nothing uninstall it from your computer to microsoft because the system may become unstable.  and when windows becomes unstable, there is nothing worse than trying to correct it and think "I should have left well enough alone.

    Incidentally, if you run low disk space then I suggest strongly to buy another blank hard drive in a computer store and install it in your computer.

    all computers can accept and manage two hard drives.  the main hard drive is known as the 'master' disc and the second hard drive would be called the "slave disk".

    After installing a new hard drive, then you can move all of your documents, photos and personal files from your drive currently overcrowded c.

Maybe you are looking for