Retrieve the desired folder

Hi currently I have this statement:
SELECT DISTINCT status,customer_id FROM contract;
{code}It will retrieve the follows:

[code]
_Status_                     _Customerid_
d                                      111
a                                      222
d                                      222
a                                      333
[/code]

How do I amend my SQL statement in such a way it will only customer_id where status is d only?

_Results should look like this:_

[code]
_Status_                     _Customerid_
     d                                 111
[/code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

And a group of

with contract as(
select 'd' status, 111 customer_id from dual
union all
select 'a', 222 from dual
union all
select 'd', 222 from dual
union all
select 'a', 333 from dual
)
select 'd' status, customer_id
from   contract
group by customer_id having(count(case when status != 'd' then 1 end) = 0);

Tags: Database

Similar Questions

  • Help! You need to retrieve the Junk folder is empty.

    I checked e-mail boxes in the junk as "not junk" folder and they went successfully to the Inbox, gates must have clicked 'empty' in the spam box. These emails I wanted to read in my Inbox disappeared and never have the Inbox. How can I get back them? I'm desperate!

    Thank you

    Sorry, I have no idea why someone refers you to the Firefox support for a problem with Hotmail / support Outlook.com . Firefox does is display the data that is stored in Hotmail, through Outlook.com interface; Firefox does not record anything - no emails, no record or anything. The only thing that Firefox stores is a cache of what has been seen to Outlook.com. You can try to clear the "hide" & cookies to see if that helps you.

    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Click the menu button

      Click on the history button, and then click clear recent history...

    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    Also see these.
    http://Windows.Microsoft.com/en-us/Hotmail/Hotmail-help
    "All Hotmail customers have been upgraded to Outlook.com."
    http://Windows.Microsoft.com/en-us/Windows/Outlook-help
    http://email.about.com/od/Outlook.com-tips/Qt/how-to-contact-Outlook-COM-support.htm

  • After retrieving the system for a month, the tabs are recovered for a month there are too

    Furthermore, I guess, all my settings are retrieved from a month there, but I noticed that the tabs. I guess, the recovery of the system retrieves the AppData folder, there are a Firefox settings. It's okey if I have no problems with my system, but I have... many of them. In the opera, the system recovery does not crash my tabs, Favorites, or something else, even if its settings are in the AppData.
    What should I do to avoid this behaivour reset settings? Is - this deficit SQLLite?

    The extension of the Session Manager has options (1) create a backup when you exit Firefox and (2) locate in a different folder. I have not tested, but could be useful for you.

  • Photos imported, but do not arise in the new folder.  Cannot re-import, as LR said that they have already been imported.

    LR6, Win10.  The photos that have been imported do not show upward in the destination folder.  Folder had been created within LR.  Deleted the folder in LR and re-created. Tried to import again, but can not, as LR said that they have already been imported.  Now the pictures do not exist on my PC, by searching via the Win10 File Explorer.  How to re-import these photos?  I still have them on the external hard drive, I tried to import original.

    Most likely, you accidentally imported the photo to a different folder than the one you wanted.

    Because you see the photo in "Previous import", I think you'd have to reconnect the external hard drive, then move (drag / move, entirely in Lightroom) or photos to the desired folder.

  • Fewer steps to move has already imported pictures to the desktop folder in the LR catalog.

    I'm sure this has been asked and I just use a terminology inappropriate then forgive me.  I'm trying to get a group of imported pictures that currently link to a folder on the desktop in my LR catalog instead.

    I use a Mac.

    Thank you for your help.

    Dan

    Sure.  Yes, I imported the photos in lightroom, but they were not copied to the LR making catalog. I can not use the term 'catalogue' correctly. I am referring to the designated folder system where LR stores all of my original images.  I have used inadvertently the function 'Add' during their import?

    Photos imported into Lightroom are indeed in the Lightroom Catalog. There's no other way.

    If you used the option Add instead of the COPY option, you would have to do one of the following values (only one, not both of them or all three):

    1. Move photos to the desired inside Lightroom (select all the pictures, then drag them to the desired folder, everything is done entirely in Lightroom). OR
    2. Move the pictures in your operating system to the folder desired; Then, you will find that each photo in Lightroom has an exclamation point icon; Click on the exclamation point icon, and then select the new folder (see these instructions: How to find missing pictures in Photoshop Lightroom ). OR
    3. remove photos from Lightroom (this will remove also publishes, metadata, collections, etc.) and then import them using COPY

    I prefer option 2, but option 3 is actually easiest if you have not yet completed all the work on photos.

  • VMDK virtual disk to the other folder

    Hello

    Before I started my new job we have run into some problems with our file server, Server22, with the CPU usage. IT consulting company that has implemented suggested it was something with the installation of windows, so they created a new virtual machine named Server22 which was just the C drive and tied the former Server22 data to the new drive. By making our virtual disk data still resides in the file of old Server22. I want to move, but want to find the right procedure to do. Is as simple as right clicking and pressing on "move to" browser data store? I've attached a screenshot of what I'm trying to do. I would like to move Server22.vmdk in the Server22_1 folder to the NewServer22 folder.

    Thank you

    Hi, you cannot move the vmdk while the virtual machine is running.  Here's a high-level steps:

    1. stop the virtual machine
    2. detach the vmdk in question.
    3. move the vmdk into the desired folder.
    4. Fix again the vmdk.
    5. Turn on the virtual machine.

    Once you have completed the move and happy with the results, you can rename the c# VM and perform storage vmotion and everything should correspond correctly with the name.

  • How to get the right folder name/location during import?

    I can't get LR 3.x to import into the desired folder structure, as I used to do with

    LR 1.x and 2.x.  I am trying a structure that looks like this:

    http://content.screencast.com/users/jfriend/folders/Jing/media/2e238e71-feda-4a1d-adb1-65124c611838/2011-02-26_2200.png

    I want LR to automatically create a folder with the timestamp in it and find the right year and then let me in the last part of the name of the folder that identifies the object, prior to importation.  So far, all I can get is the name of the file generated automatically by date with no ability to edit or a folder name completely custom where I locate correctly and typing the entire name, including the date.  In LR 1.x and 2.x, it was really easy.  LR suggest the name of the folder (or multiple folder names if the images extend over several dates) with the date in it, and I could double-click it to add the additional designation prior to importation.  Could not find any way to do in LR 3.x.  Does that mean, that I have to do the import, wait it ends and then go back and manually rename each file that it created.  It's especially a pain when there are several folders (through multiple dates) or when my backup program has already hit and made a backup of the date generated automatically until I come and rename it manually.

    So my question is, how do I get LR for the right folder name based on the date in the folder location good auto suggestion and I would like to add something on the end of it before importing?  It was very easy in the import of LR1.x and 2.x.

    jfriend0 wrote:

    Isn't "this a common way to organize images?  He was born in LR1.x and 2.x.  I guess I'm surprised they would take something like this in LR3.x.

    He slipped under the radar when again the new window import. If all goes well, we will get it back in the next major update. In the meantime. You can add the importation of additional text in right click on the folder name and then selecting rename in the context menu.

  • I am trying to enter in the appdata folder to retrieve a trial that I lost and someone suggested looking here

    Original title: appdata folder

    I am trying to enter in the appdata folder to retrieve a trial that I lost and someone suggested looking here. How to do this.

    One way:

    Start-> Run-> Explorer %APPDATA%\protector.exe

    Where you type '%AppData% explorer' in the box before hitting 'OK '.  (Omit the quotes)

    HTH,
    JW

  • Windows 7 "the network connections folder could not retrieve the list of the network adapters on your Machine. Please make sure that the network connections service is enabled and running. »

    Get the message "the network connections folder could not retrieve the list of the network adapters on your Machine. Please make sure that the network connections service is enabled and running. "I am NOT able to connect to the internet please help. I use Windows 7 OS

    Hi Odile,

    Thanks for posting your question in the Microsoft Community forum.

    It seems that you have a problem with the connection to the Internet and receive the error message "the network connections folder could not retrieve the list of the network adapters on your Machine. Please make sure that the network connections service is active and running".


    I imagine the inconvenience that you are experiencing. We are here to help and guide you in the right direction.
    I may need a few more details to better understand the issue.
    1. did you of recent changes on the computer before this problem?
    2 do you have wireless or wired Internet connection?
    Method 1:
    We'll first run check network troubleshooting if this can help.
    Method 2:
    If the problem persists, I suggest you try the procedure described in the article and see if it helps.
    Method 3:
    If the problem persists, I suggest you try the procedure described in the article and see if it helps.
    For more information, please see the link.
    Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.
  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • Service to retrieve the path of folder by folder GUID

    Hello

    We use the framework of issues and we would like to display the path of the folder for each result on the default search results page. However the standard search service returns the guid of the folder for the documents in the search results. That's why I need to translate the guid for the actual path. I could create my own personalized service for this but I may already exist and if so it will probably works very well at the time.

    so my question is: is there an ootb in WCC service that I can use to retrieve the path of folder by folder guid

    Kind regards

    Maarten

    I haven't installed the component in my system, but could you please check the FLD_INFO service?

    http://docs.Oracle.com/CD/E23943_01/doc.1111/e11011/c08_frameworkfolders.htm#CHDCFGEB

  • How can I retrieve the same page of a file folder?

    Acrobat X Pro, I have a folder of PDF of 100 + and I want to extract the page 6 of each of these files in order to collect all the pages that are extracted into a new document.  Currently, all I can get it to do is extract the pages and open this page extracted into a temporary file which I then individually save and close individually.

    It is currently what I have and that's obviously not what I need...

    var oNewDoc = this.extractPages (5)

    var cFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"

    var cPath = "" / C/xxx/xxx/Temp / "+ cFlName"

    • oNewDoc.saveAs (cPath)
    • oNewDoc.closeDoc (true)

    Any help would be certainly appreciated!

    Thank you

    To clarify...

    / * extract pages * /.

    var oNewDoc = this.extractPages (5)

    var oFlName = this.documentFileName.split ("."). Shift () + "_summary.pdf"

    oPath var = "" / C/xxx/xxx/xxx/xxx / "+ oFlName"

    oNewDoc.saveAs (oPath)

    oNewDoc.closeDoc (true)

    placed in an action will do what I originally wanted.  It retrieves the requested page in each of the files in a selected folder.  Then renames the files as indicated in the language, saves them to the specified and closes.

  • [redacted] Pavilion v208tx: we could not retrieve the list of drivers for your product. Please select the desired operatin

    I can't find drivers... tried to reload the page for a bunch of times... quiting browser and re open... I pressed the bunch of times update I tried different OS and it still saying "we couldn't retrieve the list of drivers for your product.  Please select the operating system"oh and he

    Hello

    Thanks for posting in the HP Support forum.

    It seems it was some website temporary glitch - it works for me now.  Could you try again?

  • I need to find the SPAM folder. How can I do?

    In order to retrieve information on some sites, I need my password. They send my password, but they tell me to check the spam folder. Where can I find the spam folder? Designated as spam messages do not appear in my Inbox to the ordinary letters.

    Thunderbird does not create a Spam folder. Your email provider may have a. Sign in to your account to your web e-mail providers site and see what you find there.

    Thunderbird junk term instead of Spam used to separate things. By default, Thunderbird places an unwanted icon next to what anyone, he considers undesirable and place in your Inbox unless you go into unnecessary controls and change this operation. Looks like you have not done this.

  • can I convert the option to choose in applescript in Automatic Configuration of the action folder

    Hello

    H I have an applescript script that is a sort of an image file and fix it to the sage according to uniqueness of the folder names.

    In this script I choose the folder option, but I want to convert the option into action automatically as a file configuration. as

    on the addition of items in folder to this_folder after receiving of these_items

    Here's my script

    d choose the game folder

    _main ({d})

    on _main (argv)

    o script

    property ff: {} - list of aliases

    property gg: {} - list aliases to be moved by prefix

    nn property: {} - list of file names

    mm property: {} - list of prefixes

    property mm1: {} - separate prefix list

    Repeat the operation with d in the argv - by source directory table

    d to g-d content of the kit

    -retrieve the list of aliases and names for document files

    Tell application "Finder".

    say g-d document files to set point {ff, nn} to {it as list of alias, the name}

    tell the end

    Try

    value {astid0, delimiters of point for the AppleScript text} {of AppleScript point text delimiters {'_'}}

    Repeat with i from 1 to count my nn

    the value {n, m} {my point nn i, ' "}

    If (count of n textual elements) > 1 then set m ' "& n text items 1 thru-2

    put end my mm m

    If m ≠ "" and m is not my mm1 then put end my mm1 m

    end repeat

    the text value of the point astid0 delimiters AppleScript

    errors errs errn number

    the text value of the point astid0 delimiters AppleScript

    error number errn errs

    try to end

    Repeat with m in my mm1 - with separate prefix

    m to m content of the kit

    -prepare the destination for this prefix

    Try

    Set dst as string d & e & ': ' as an alias

    There is no error number-43 - dst

    Tell application "Finder" to set the dst (make new folder d with properties {name: m}) as alias

    try to end

    Repeat with i from 1 to count my mm

    If my mm point i = m and establish the end of my gg to my ff I

    end repeat

    If gg ≠ {} then tell application "Finder" to move the gg in dst with the replacement

    Gg to {} set

    end repeat

    end repeat

    end of script

    say o to run

    end _main

    so if support convert this script for folder action script please help to do.

    Thank you

    Rakesh

    You just need to provide multiple ways to call your manager, for example:

    on run -- application double-clicked or run from the Script Editor
      set d to choose folder
      _main({d})
    end run
    
    on open droppedItems -- items dropped onto droplet
      _main(droppedItems)
    end open
    
    on adding folder items to this_folder after receiving these_items -- folder action
      _main(these_items)
    end adding folder items to
    
    on _main(argv) -- main routine
      -- whatever
    end _main
    

Maybe you are looking for

  • Update BIOS question on Satellite A200-25 b

    * Hello! * I have a dual boot with windows xp/ubuntu. I want my my BIOS for more functions but can I replace the v1.7 for the v5.6? I read: «Ce Bios is only compatible for laptop computers equipped with Windows XP» --> 5.6 BIOS and my computer I don'

  • P70 - a system based on space issues nearly 11 GB

    Just bought P70 - A last week and just realized that the system space storage has taken over 11 GB. This is the default system using too much storage space up to give me only 4, 4 GB of storage on the left? I already try to reset to factory default s

  • Video RAM on IdeaCentre B540

    Hello guys,. Recently I bought Battlefield 4 for my desktop IdeaCentre B540. However, I don't know how to increase the video RAM, and its actually really old Battlefield 4 game with low resolution at ~ 15 fps. Is it possible that I could increase the

  • Video Z370 Service course

    Hello Can someone please share with me a video showing how to take apart a lenovo z370 correctly or at least show how I can properly take out and replace and clean my fan? I would appreciate your help. Thanks in advance.

  • HP Pavilion sleekbook 14

    Hi ppl... .newby here! I hope someone can help. My son is 14 Sleekbook running Winows 8 who has developed a flaw (could not enter the entire system) and was returned to HP. It came back fixed, worked for a few days now does not work once again, looks