Display first column and all other with contain first value

Hi,
I have to query table and display resulat in such way:
status_id value1
value2
value3
status_id2 value11
value13
value18
and so on.. Could anyone help me how to do this?

Check
SQL>  select job, ename from (
        select case when row_number() over (partition by job order by job)  =1 then job end job,
                 count(*) over (partition by job) cnt ,
                 dense_rank () over (order by job) dr,
                  ename
          from emp)
      where cnt > 1 order by dr
JOB       ENAME    
ANALYST   SCOTT    
          FORD     
CLERK     MILLER   
          JAMES    
          SMITH    
          ADAMS    
MANAGER   BLAKE    
          CLARK    
          JONES    
SALESMAN  TURNER   
          WARD     
          MARTIN   
          ALLEN    
13 rows selected.Note that the one-row entry for KING (PRESIDENT) is missing.

Similar Messages

  • Opening PDFs in a certain folder with Adobe and all others with Preview

    I know how to right click and use "open with" and how to set the default application under Info.
    What I want to do is set all PDF files in a certain folder to open with Adobe's Reader when I open the file. However, I'd prefer using Preview for the other PDF files not in that certain folder or sub folders.
    Is this possible?
    Message was edited by: RWSmith

    Yes but that is just for a particular file or group of files. I add files to that folder often.
    I need to be able to apply the change to the directory level, not just the file level.
    Thanks much anyway.

  • How can I have only a specific smart folder in Finder displayed in coverflow and all other folders in icon view?

    There are a couple of smart folders actually that i want in coverflow mode only, but the rest i want in icon view. Is there a way to do this? i thought i had it figured out, but then it would revert back to the icon view for everything.

    Open one of the folders that keeps changing. Set it to the view mode you prefer. Press Command-J (Show View Options in View menu).
    At the top of the View Options screen is an item which allows one to set "Always open in xxx view". Chekmark that.
    Repeat for each folder you want.
    This is a per-folder setting. Note that the View Options screen is 'live" - you can leave it open, and as you open successive folders it will display the settings for each in turn.

  • The caller ID on this and all other Verizon phones (Android and other types) occasionally displays a "1" before the phone number.  This causes the tenth digit to not appear in the caller ID.  How can the "1" be prevented from appearing?

    Verizon's caller ID delivery system occasionally inserts a 1 before the phone number of the incoming call.  The caller ID feature appears to be poorly planned and executed by Verizon.  The caller ID feature should display more numerals so the call can be returned.  Can the iPhone 6 and all other phone-types on Verizon be configured to omit the 1?  This looks like it could be issued as firmware update.

    Update - I called the number I was given for "ordering", and got the same phone tree I had the first time I called the number on Verizon's web site. At no point was there an option of "ordering". So I navigated back to FIOS tech support. The guy there said he called "ordering" and confirmed that the right name was in the Verizon directory. I asked him to push the directory entry, and he said he did that. I haven't had a chance to call people and see what shows up on their Caller ID.
    I told the support person about the bill collectors calling for {edited for privacy}. He was full of nonsense. He said maybe {edited for privacy}gave out the wrong number. I pointed out it would be pretty hard for {edited for privacy} to put their name in Verizon's Caller ID directory, and maybe {edited for privacy} had my phone number before me. He looked that up and confirmed that my number previously belonged to {edited for privacy}.
    I asked the support person if they provide their Caller ID directory to bill collectors, and if I was getting these calls because they have been selling a database that says {edited for privacy} still has my number, which has been my number for nearly two years. The customer support representative WOULD NOT ANSWER THIS QUESTION. All he would say was there is no way for Verizon to control who calls my number. That's not what I asked him.
    I am very unhappy with Verizon, and I suspect until I called yesterday, they had my number associated with {edited for privacy} and they have been providing this erroneous information to bill collectors. I understand that each phone provider maintains their own Caller ID database, but I don't think it is credible that some other phone company's caller ID database would be two years out of date without some screw up by Verizon.
    No Kudos. I see Google Voice in my future.

  • I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone an i have internet and all other functions working on my computer

    I have a macbook pro version 10.7.5 and my mailbox will not open at all and comes up with a quit message even though it is not open. how can i get into my account. it works on my iPhone and i have internet and all other functions working on my computer

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents—the text, not a screenshot. I know the report is long. Please post all of it anyway.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • I plugged my ipad 2 into the computer for the first time and all the music from the itunes converted on however now it wont delete it comes up with 'ping' next to the song

    i plugged my ipad 2 into the computer for the first time and all the music from the itunes converted on however now it wont delete it comes up with 'ping' next to the song

    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • Why is my Snow Leopard 10.6.8 suddenly giving me a gray screen and progress bar after I've turned it on? The progress bar takes 4-5 minutes to complete then signing on with my password and all other operations are normal. Solution? Many thanks.

    Why is my Snow Leopard 10.6.8 suddenly giving me a gray screen and progress bar after I've turned it on? The progress bar takes 4-5 minutes to complete then signing on with my password and all other operations are normal. Solution? Many thanks.

    It's starting in safe mode > http://support.apple.com/kb/HT1564
    First of all, do a PRAM reset. If it doesn't help, open Terminal and type:
    sudo nvram boot-args=""

  • Why arent any videos working on my firefox browser? Youtube has an error message, and all other videos and ads come up with a blank white screen

    It's one of those problems where it works like one minute, and then suddenly stops working the next. I know for a fact it has to do with the flash player in some way. I've had this problem before and found the solution, but for some reason i cant find it again, and forgot how i solved it. I've tried to redownload both adobe flash player and firefox but it didnt solve anything, disabling adblock doesnt help, disabling the hardware acceleration a little but useless difference, i have tried to disable the flash player add-ons and enabled them, both dont work, i only have 1 version of flashplayer( the most recent), and I am too frustrated to keep searching for an answer that is correct, when all i can find are the wrong ones over and over again . If anyone knows how to solve the problem where the FIREFOX(only) browser shows youtube as having the error " an error has occurred. Please try again later. " and all other videos and ads have a white blank screen, PLEASE help
    also, everything works on google chrome and IE

    also, the last solution i had didnt require me to install an earlier version of flashplayer or firefox, and it was the same problem

  • My MacBook Pro with Retina display displays power point and not other windows when connected to a projector

    My MacBook Pro with Retina display displays power point and not other windows when connected to a projector. Can anyone help out please?

    You should also ask this in the MacBook Pro forum. This is the forum for the white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • If I deauthorize my desktop and all other computers with my account will I still be able to have all my music if I plug my iPod into my laptop and start using that?

    If I deauthorize my desktop and all other computers with my account will I still be able to have all my music if I plug my iPod into my laptop and start using that?

    Yes... as long as your Laptop is Authorised.
    About authorization and deauthorization

  • I cannot print from web pages with mozilla, can print from internet explorer and all other programs. I have a Cannon Imageclass MF8100.

    I cannot print from any web pages with Mozilla as my browser. The printer gives me a blank page. I can print from internet explorer and all other programs. I have a
    Cannon Imageclass MF8100 printer. I spoke to Cannon as I thought it was a Cannon issue and it is not.

    Try the '''''reset''''' described here: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages#Reset_printer

  • Get Managed Metadata (Taxonomy) ALL Lists with Columns and ALL Choice Lists with Columns VALUES programmatically

    Hi there,
    How to get Managed Metadata Lists  ALL Columns and ALL Choice Lists Columns that are used in the Site Collection programmatically please.
    Regards

    Hi sharepointaju,
    Managed Metadata list is a hidden list, that you can access it through
    http://siteurl/Lists/TaxonomyHiddenList/AllItems.aspx, then it is similar to other lists, you can use server or client code to interate each field in the list, show the the value for each item.
    For all choice list columns, I'm not clear what you mean in this situation, do you mean to get all choice columns in the site collection, if so, iterate site columns, and lists to get list fields, check whether it is a choice type field.
    This may be not your requirement, please provide more information how you want to get which value.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • HT202213 Home sharing problem: I have never set up home sharing but I feel I understand it.  I recently (last 2 months or so) deauthorized, first time ever, all computers with my iTunes account. I am trying to set up home sharing but get  iTunes says "You

    Home sharing problem: I have never set up home sharing but I feel I the concept and how it works.  I recently (last 2 months or so) deauthorized, first time ever, all computers with my iTunes account. I have 3 computers authorized.  I am trying to set up home sharing but get  iTunes says:
    "Home Sharing could not be activated because this computer is not authorized for the Apple Id "#########@###.com". Would you like to authorize now?"  I click "authorize" and get the next error " You cannont authorize more than 5 computers.  You have already authorized 5 computers with this Apple ID.  To authorize this computer you must first deauthorize one of the other computers."
    Can someone help or shed more light on my problem?
    Thanks,
    Richard

    Home Sharing is designed to work on your local network not across the internet/cloud.
    Stuff is accessed under the Computers column where your local iTunes library on a local computer would appear.
    Home Sharing would share your iTunes content (i.e. stuff stored in itunes on the computer, not in the cloud) with AppleTV or an iPad etc on the SAME network.
    AppleTV2 will not be able to see itunes content on the work computer over the internet.  It's not designed to.  if the work computer was on the home network it would.
    iCloud is in it's infancy and is not a mature product - iTunes TV Show purchases appear on AppleTV, but currently music does not unless you are subscribed to iTunes Match. I find this rather odd to be honest, along with the inability to buy music on AppleTV2.  Movies purchased in iTunes are not authorised for iCloud viewing currently either.
    Maybe it has something to do with iTunes Match 'getting in the way' - i think they assume you'll use that whereas you really want to be able to access Purchased music from the cloud without subscribing to itunes Match which is overkill for some.
    AC

  • I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? Help - thank you

    I have a php module which runs fine in Firefox and all other browsers but not Safari. It always run twice - I see a small ? in upper right corner which is causing it to run twice but NO idea why? I read it MAY have something to do with am image it cannot load but I see them all loaded.  Help - thank you

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • I have windows vista home premium and all other versions of iTunes worked on my laptop iTunes 10 won't work, I get a message saying I'm not connected to the Internet when I am. Why isn't iTunes recognizing my browser configuration?

    I have windows vista home premium and all other iTunes worked on my laptop, I downloaded iTunes 10 and now the iTunes will not connect to the Internet. I use Mozilla firefox on my laptop and for some reason it keeps saying the connection timed out and I'm not connected to the Internet when I am. Why isn't iTunes recognizing my web configuration?

    It probably has to do with your security and/or browser configuration.
    When my laptop crashed last year and I had to get a new one, I dealt with the same thing. First, go to your control panel and select the security section. See if your firewalls are up or not. If they are, turn them off. If you have any software to speed up your browser, that can affect the connection as well. Go into that software and disble/turn it off. If this doesn't work, contact customer support. They have a few other tricks they had me try that worked, but I can't remember them now.

Maybe you are looking for