same text in all folders

Hello

I want to find the ID at the bottom of the sample containing a single disease like asthma ' "case all the.

This might be a silly question. But I'm not able to find where is the error.

Output must be ID 101 and 103

ID 102 would not come because it contains two terms of asthma and the LBP

with abc as

(

Select 101 as id, 011 as sno, "Asthma" as double disease

Union

Select 101, 012, double ' asthma'

Union

Select 101, 013, 'Asthma' double

Union

Select 101, 014, double ' asthma'

Union

Select 102, 014, double ' asthma'

Union

Select 102, 012, double ' asthma'

Union

Select 102, 013, "LBP" of the double

Union

Select 103, 013, 'Asthma' double

Union

Select 103, 023, double ' asthma'

Union

Select 103, 021, double ' asthma'

)

Select the code of the CBA

where the disease = "asthma."

Group by id

I thank in advance

Like this..

WITH abc AS

(SELECT 101 AS id, 011 AS sno, "Asthma" AS illness FROM dual

UNION

SELECT 101, 012, double ' asthma'

UNION

SELECT 101, 013, 'Asthma' double

UNION

SELECT 101, 014, double ' asthma'

UNION

SELECT 102, 014, double ' asthma'

UNION

SELECT 102, 012, double ' asthma'

UNION

SELECT 102, 013, "LBP" double

UNION

SELECT 103, 013, 'Asthma' double

UNION

SELECT 103, 023, double ' asthma'

UNION

SELECT 103, 021, double ' asthma'

)

SELECT id

ABC

GROUP BY id

HAVING COUNT (*) = COUNT (CASE of the disease ONCE = 'Asthma' THEN 1 END);

OUTPUT:-

========

101

103

Thank you

Ann

Tags: Database

Similar Questions

  • Is there a way to customize all folders at once with the same details?

    I have several folders with several subfolders.  The default details that show for items in the files must be changed, but to make each file individually is taxation.

    Is there a way to customize all folders at the same time with the same details?  Thank you.

    Original title: "customize the details of the record.

    H,

    Thanks for the sharing of information, happy in the knowledge that you have addressed the issue. Your efforts to solve this problem is appreciated. Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

  • BlackBerry smartphones same text message sent all the time

    Hi all

    just got a bold 9700 yesterday and decided to send a text message to my daughter, who told her to stop the same text all when I sent only once. I am on t mobile, had no problem before with my old phone. Any ideas would be recognized with gratitude. Thank you, Andy

    Yes, I had similar happen once before. It's a problem of carrier network and nothig you can do. Just a glitch in the network.

  • How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    How to apply/generalize the same text of failure in all Failure_Caption in the project in order to avoid manually change in each legend of failure?

    For example the 'wrong' text in all the legend of failure

    You can set the default text that appears in all the legends of failure for the quiz via the parameters for the Quiz questions.  However, after you have made changes here that will affect quiz slides that you add AFTER that, change.  There is no way to change the text in all the legends of defect EXISTING at the same time.  You will have to select each one and replace the current text manually.  If you firmly believe that you will need to do this more than once, you might consider using a user Variable that displays as the value in the legends of the failure.  Then you can edit them while changing just the value of the user variable.

  • After upgrade today all the body of the email are empty in all folders

    I've just updated Thunderbird today and as a result of the upgrade, I can't read all the emails. All messages from all folders have a body of the email blank.

    I can see the text in the messages as they arrive in the popup of the taskbar and also if I send a message.

    Can anyone help?

    Mark

    Said Smokva

    Well, my experience is that Outlook comes with its share of quirks, but I get completely where you come from and why you would want to.

    I'm glad you do. I'm sick of hearing people who give nothing, which suggests that they will do better when they give Microsoft $150 for Outlook. They get all the quirks of perspective and a Bill.

    I personally think is it's the people who think that they will get the best service if they threaten to go to the competitor who really said that. Just as we regularly get people fighting all the way to the support Forum to ask for a phone number where they can talk to a real person of their personal question. I don't know where they think the money to pay the salary of this fictitious person comes. Everything I am is from his pocket and abused.
    Perhaps they do not realize that in a commercial sense competitive Thunderbird is simply not there at all.

    For the original, poster of this picture, it seems that you are using the add-on for Thunderbird Conversations. Maybe if you have disabled it Thunderbird would work properly like this add-on has a problem with the current version. You can find all you need to do is to restart Thunderbird for the update can fill.

    Looking at the site of the add-on I see this

        • Version compatibility *.

    Thunderbird 38: Please make sure that you are running the most recent version (2.9.1) of the addon and restart Thunderbird - Thunderbird will allow you to spend 38 without updating the Conversations, giving you a broken configuration
    31 of Thunderbird: go to 'Versions' down to install 2.8.X

  • Folder XP 'customize' properties tab with "applies to subfolders" checked applied property passes to all folders and all subfolders on the computer.

    While creating a new music folder in XP and using the tab of "Customizing" folder properties, properties that had to be "applied to all subfolders" apply properties to all folders and subfolders on the computer and attached externally. How can I retrieve short to restore the entire disk (my drive is saved with the Windows backup feature)?

    You can finely tune and crafts which properties are applied to files by using the option you mentioned, as well as "templates folder" as well.  But using both in tandem is not very intuitive.

    Although it was created using Windows 8 for example, the video below also works for Windows 2000, XP, Vista and 7.  This should help you to set up your personalized finely folder and spread it to all folders of the same type.

    Apply Styles folder to all subfolders [Video]

    cmdrkeene.com/Apply-Folder-styles-to-all-subfolders
  • OE6 do appears not all folders

    OE6 shows not all folders that I created. I had to force a reboot when the PC hung during the compaction of OE. The "Inbox" folder has been restored, but some files are missing. I removed the "Folders.dbx" file to force the creation of a new "Folder.dbx" file, but only files beginning with the letters 'A' through 'P' are found/generated. How can I get the remaining to be recognized and listed in OE6 files?

    Two reasons the most common for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More about that below.
     
    Why OE insists on compacting folders when I close it? :
    http://www.insideoe.com/FAQs/why.htm#compact
     
    Why mail disappears:
    http://www.insideoe.com/problems/bugs.htm#mailgone
     
    Recovery methods:
     
    If you use XP/SP2 or SP3, and are fully patched, then you should have a backup of your dbx files in the Recycle Bin (or possibly the message store), copied as bak files.
     
    To restore a folder bak on the message store folder, first find the location of the message store.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, the .dbx files are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.
     
    Close OE and in Windows Explorer, click on the dbx to the file missing or empty file, then drag it to the desktop. It can be deleted later once you have successfully restored the bak file. Minimize the message store.
     
    Open OE and, if the folder is missing, create a folder with the * exact * same name as the bak file you want to restore but without the .bak. For example: If the file is Saved.bak, the new folder should be named saved. Open the new folder, and then close OE. If the folder is there, but just empty, continue to the next step.
     
    First of all, check if there is a bak file already in the message. If there is, and you have removed the dbx file, go ahead and rename it in dbx.
     
    If it is not already in the message, open the trash and do a right-click on the file bak for the folder in question and click on restore. Open the message store up and replace the .bak by .dbx file extension. Close the message store and open OE. Messages must be in the folder.
     
    If messages are restored successfully, you can go ahead and delete the old dbx file that you moved to the desktop.
     
    If you have not then bak copies of your dbx files in the Recycle Bin:
     
    DBXpress run in extract disc Mode is the best chance to recover messages:
    http://www.oehelp.com/DBXpress/default.aspx
     
    And see:

    http://www.oehelp.com/OETips.aspx#4
     
    A general warning to help avoid this in the future:
     
    Do not archive mail in default OE folders. They finally are damaged. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.
     
    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
    And backup often.
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx  
  • Set a style different cases for the same placeholder (data fusion) used two times in the same text

    Hello.

    I have a document with some parties updated with the fusion of data (via placeholders). Is it possible to set a style of different cases for the same placeholder in the same text. See the example:

    Mike runs its < < vehicule_placeholder > > in the city. But its < < VEHICULE_PLACEHOLDER > > is meant to be shared.

    If the value of this placeholder in the file merger is 'bike', the sentence should be:

    Mike runs his bike in the city. But his BIKE is meant to be shared.

    Is this possible? How?

    Thank you.

    You can do it. A character style for this configuration placeholder text, set in all caps.

  • Cannot add text to all the

    Hello... I use Photoshop Elements 8 and use items from version 2. For about the last 6 months, I couldn't type any text at all. When I try to type any text, images, newly created, scanned in or otherwise - no text appears. When I click on the image to start typing, I get the little box that always pointed, but no text appears when I type. I am quite familiar with the elements and have no idea of what brought this. I don't remember all the settings changes and I checked all the settings I can think. All other functions seem to work.

    No matter what the police, or the font size is selected, the color of the text changes make no difference, I checked the horizontal, vertical and hide the text settings, opacity has been verified... I'm fresh out of ideas. I even uninstalled and reinstalled the software - nothing - no text at all.

    I use Windows 7. I would like suggestions.

    Kevin

    Try to reset the text tool by clicking on the small facing down

    arrow and selection tool reset (in bold below).

    If it does not try to reset preferences pse8 taking into

    on the Shift + Ctrl + Alt keys pressed at the same time, you start the pse8

    Editor and choose Yes in the dialog box that follows.

    Preferences are not reset during a uninstall/reinstall.

    There is also a forum for photoshop elements:

    http://forums.Adobe.com/community/photoshop_elements

    MTSTUNER

  • LR synchronize the same images in different folders

    I need to keep multiple copies of the same images in different folders (to follow the presentations to different agencies), but LR seems very erratic in the synchronization of the images that he considers already exist in the catalog - some duplicates appear, others do not, but it seems impossible to get all records to synchronize correctly. Is there a way to get around this?

    Yes, I remember, David. Happy, is always working.

    Assuming that the current workflow, I think that the answer will lie to determine which files are omitted. If file names don't match all files already in the catalog, I expect to arrive safely. But if the name a jpg corresponds to an existing file (ignoring the extensions) then there might be a conflict. A field's Edit > Preferences > Import where you can try JPEG process next to delayed raw files as separate files. But see if you can establish the model of which is imported and what is not.

    A pure solution of Lightroom would be not not to keep all these files. If you would have the main image (a gross or a tif worked) and then create virtual copies for each of the uses that you want to track - right - click on a thumbnail and create a virtual copy. Each CV has a copy name, which I would say setting (metadata Panel) use, Getty, Alamy etc. When you need to send it to the Agency, get the VC and export to the size and the required format, send the exported file, but do not keep a copy of the actual file - the VC could suffice. I put is more for you think more.

    John

  • Stuck in a subfolder and can not return to view all folders

    Used TB since many years and this is a first. This morning stuck to the sent folder. Can use to go for other folders, but it's a pain! Must show all folders and presentations to the left side but is not. I tried ESC, close and reopen it, rebooted computer and nothing works. Try to right click on the tab close none of these buttons doesn't work. Am sure that there is a simple solution but can't seem to find it. So appreciate the help!

    Fact reviews | Page layout | The folders pane list accounts and restore files?

    Have you tried of looking for and grasping a vertical separator, in case you have narrowed the width of the pane folder to zero?

  • TB 31.7 W7, how can I change the police in the "all folders" list on the left?

    TB 31.7 on W7
    How can I change the police in the "all folders" list on the left?

    I was also unable to change the position of the icons on the e-mail toolbar in a message window. When I try to drag a box icon from the tool bar customize I get a symbol of the circle with a line through it, rather than the vertical bar I expect.

    Something like that?

    http://forums.mozillazine.org/viewtopic.php?f=30 & t = 2834207

    Note that the name of the folder and the name are case-sensitive. It must be userChrome.css and it must be placed in a folder named chrome.

    Finittary poster regularly wrote something about this recently. It may be possible to find this thread on this forum.

    The inability to drag or move a button usually means that you have opened the pane customization evil.

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • right side of the document will print all the text. All the margins are set to zero

    Right side of the document (last 1/2 ") does not print the text. All margins are set to 0.

    Please help my overwhelmed brain. Thank you

    Your printer can also be limited you.

    You could reduce your page and see if it picks up all this.

    See also, perhaps questions

    Cannot change margins in page 5.2

    Why can't I change the right margin in the Pages?

  • How do you assign at the same speed for all the notes?

    Hi all!  Can any one help with how to assign the same speed to all the notes?  I know that press "Command + A" to select all, but stay to discover how to get more than one note to change both?  Thank you!

    in piano roll, select velocity tool, cmd to select all notes, hold SHIFT-Option and drag upwards or downwards.

Maybe you are looking for