ELSE if / HOW (any help appreciated)

I'm trying to match table 1 to table 2 by ID.
Table 1 a more ID then table 2.
I wish that all T1 IDs to match with table 2.
IF 'YEARS' (in table 2) 9 RESULT YES no ELSE (table 3)
(I want to get table 3)



TABLE 1

ID CITY
1A
1 B
2A
D 2
2A
3 D
4 D
5 H
5 B
6 B
6 B
6A
8: 00
8 P
8 Q
9 Q
001



TABLE 2

ID YEARS     
1 9
1 9
2 1
4 9
5 0
3 ½

TABLE 3
I would like:

ID of RESULT
1 YES
2 NO.
3 NO.
4 YES
5 NO.
6 NO.
7 YES
8 NO.
9 NO.
10 NO.

Thanks for any help.
with distinct_table_ones as
(
   select
      distinct id
   from table1
),
   distinct_table_twos as
(
   select
      distinct id
   from table2
   where ans = 9
)
select
   d1.id,
   nvl2(d2.id, 'YES', 'NO')
from distinct_table_ones d1, distinct_table_twos d2
where d1.id = d2.id (+)

Would be one of the many ways a lot...

Tags: Database

Similar Questions

  • CD/dvd drive read only disks not vain iv tried everthing I can think of an infusion iv, any help appreciated, thanks lee.

    CD/dvd drive read only disks not vain iv tried everthing I can think of an infusion iv, any help appreciated, thanks lee.

    Hi leejarvis,.

    ·         What version of the operating system is installed on the computer?

    ·         What is the brand and model of the computer?

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         Have what troubleshooting measures you tried?

    Follow the steps in the article.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs

  • My time machine is just stuck on the preparation of backup but does not - any help appreciated.

    Hi, my Apple Time Machine is just sitting on "Preparing Backup"... .initially it says cannot backup disks so I hard re - adjust time machine and now he is right on "Preparing backup" for hours and hours, any help would be appreciated.

    'Préparation' is going to take ages if you did a Hard Reset on the Time Capsule.

    Make sure that you are not trying to save more wireless, which will take 3 - 5 times longer, on average, that direct Ethernet connection between your Mac and the time Capsule.

    Even with a direct Ethernet connection, you might see "Préparation" for a few hours before the real return to start.

  • Upgrade to a XPS cards graphics - 630i any help appreciated!

    Hello world

    Time reader and first time poster long!

    I the 9800gt SLI 2 who are ready for an upgrade with 2 years of Dragons and Deus Ex on the horizon.

    I have not updated any part of the machine since it buy 2 years ago so I still have the q6600 and the memory of stock.

    The question I have is - what graphics card should I go for DX11 - I have some money to spend £200-£250.

    The main problem with not jumping in full and get one myself is that I'm terrified to get one that will not - match not only length wise but some of the photos that I have seen that the width of a small number could give serious inside the case questions.

    I think I should be ok with my diet because it is strong enough.

    Thanks for any help!

    Well good £250 is about $400 if you have little space to play with.

    You can purchase both s AMD Radeon 6950 to around $250 (£155) each. Thay can get you on your budget a bit but should not go all-out on a Crossfire or SLI immediately, you can set up and obtain of a second later.
    For an option of nVidia, you can go with a GT560ti - cost the same.
    A single nVidia GTX570 is $ 360 (£224).

    I don't know if retailers online UK for these parts. Newegg.com and tigerdirect.com are popular here, but they have not approved UK I can say.

    I can tell you that Crysis 2 has a lot of ads shared with nVidia, so, just like the first game, it seems that Crytek will probably optimize their graphics engine NVIDIA GPU. I can't speak to Deus Ex because I've personally never been big inside.

    When it comes to size it seems that it is almost the same as s 9800GTs or Radeon HD 4870. About 10 inches (25.4 cm) long, slightly less than 4.5 inches (11.4 cm) deep 1.5 inches (3.8 cm) wide. According to the seller that you will with it can differ a little, sometimes they stick on their own cooling solutions that may be more or less important. On the side of nVidia, I love EVGA and ASUS and AMD I like XFX & ASUS (I have two XFX cards in my gaming system).

    Here are the newest & some of the best DX11 cards of.

  • sfc/scannow cannot fix corrupted files windows 8. DISM / /restorehealth//cleanup-online image does not work! Any help appreciated.

    Hello

    I can't try to repair the corrupted files on my Sony VAIO laptop to Windows 8. I hope someone can help me solve my problems. I would really like to know how to fix these problems I'm having. It really gets me.  If ever I have similar problems in the future.
    All my drivers are up to date. I'm pretty confident that's not a malware issue. I take care of my line on activities that could infect my computer. Although I'm not 100% that excludes. I use Mcafee security Suite (fully updated and free with my broadband package). No other scanners time real AV are running. I However sometimes use a registry cleaner, after installation and installation of various programs. but I only use the default methods, never the registry COMPLETE cleaning cleaning method. In my view, these could create problems if used files. I also defragment my HARD drive of 1 TB at least once a week.
    DISM / / cleanup-image online /restorehealth/ also is not working error message and log files can be found below!
    I ran sfc/scannow and several times,
    whenever I get the error message stating:
    Windows resource protection found corrupt files but was unsable to correct some
    of them. Details are provided in the cbs.log windir\logs\cbs\cbs.log newspaper.
    For example C:\windows\logs\cbs\cbs.log. Note that iis logging currently not
    supported in offline maintenance scenarios.
    When I reboot win 8 after running sfc/scannow. Windows 8 shows that it is far from my system of up to 100%
    It charges fine. I have run the sfc/scannow, and then he did exactly the same thing. I reboot and it updates my system. but does not not my files corrupted!
    CHKDSK /F also freezes 27%. But when I starts in the my Sony VAIO #1 recovery disk and run diagnostics hardware HARD drive repair tool to try to fix the sectors defective etc on my HARD drive
    which works 100% and says there is NO problem!
    Here are the files of newspapers that I can access. I have to admit, now, that I do not understand them.
    even after much reading online:
    20/07/2013
    sfc/scannow eror message =
    Windows resource protection found corrupt files
    but has been unable to find some
    of them. Details are provided in the CBS.log newspaper
    windir\Logs\CBS\CBS.log for example C:/windows\Logs\CBS\CBS.log.
    Note that logging is not currently supported in offline scenarios.
    (ACCESS DENIED) when I try to open the C:/windows\Logs\CBS\CBS.log log file.
    DISM / online/cleanup-image /restorehealth/
    21/07/2013 of the log files and error messages
    0x800f081f
    the source file is not found
    Use the source option to specify the location
    the files that are needed to restore the function. To learn more
    information on the specification of a location of the source,
    See http://go.microsoft/fwlink/?linkid=243077
    The DISM log file can be found at C:\windows\Logs\DISM\dism.log
    I hope that I can help to solve the problems of thses
    concerning
    How to run the command "SFC/scannow" at startup or in Windows 8
    Information
    This will show you how the sfc/scannow command to start or in Windows 8 in an attempt to trouble altered or modified system files.

    Tip
    If you get the error that Windows resource protection could not start the Repair Service when you try to run the SFC, then make sure that the Windows Modules Installer service is active and set to Manual.

    Services - Start, Stop and disable in Windows 8

    If SFC is unable to repair the system files corrupted because the Bank (source) is damaged, then you could run the Dism/online/Cleanup-Image /RestoreHealth command to set the Windows component store corruption and then then try to re-run the SFC scan.

    OPTION ONE

    To run the SFC/SCANNOW command. at startup


    1. open a prompt at startup.

    2 in the command prompt, type diskpart and press ENTER, and then type the size of the list and press ENTER. (see screenshot below)



    3 make Act your boot drive drive letters (ex: 350 MB "System Reserved" partition) and the drive of Windows 8, type Exit , and then press ENTER. (see screenshot above)
    NOTE: If you do not a "system Reserved" partition and are not multi-boot with other operating system, then the boot drive and the drive of Windows 8 may be the same drive letter.

    4 in the command prompt, type the following command and press enter. (see screenshot below)
    NOTE: , You will see a blinking cursor at the prompt to the end. It will take a while to finish running though.

    sfc/scannow damaged = C: \ /offwindir = D:\windows

    Note
    You need to replace the the drive letter of the partition or volume where your Startup system files are stored in the offbootdir = C: part of the order above instead.

    You need to replace the letter of your partition or volume Windows 8 in the offwindir = D: is part of the above command instead.



    5 when the analysis is finished, I hope you will see an everything is ok message as below.


    6 close the command prompt and restart the computer to start Windows 8.

    Note
    If SFC could not fix something, then run the new command to see if it can be able to next time. Sometimes, it can take by running the sfc/scannow command 3 times restart the PC after each time completely fix everything what he is capable of.

    If this isn't the case, then run Dism/online/Cleanup-Image /RestoreHealth to repair any corruption component store, restart the PC later and try the sfc/scannow command.

    If still no, then you could do a Refresh of Windows 8, or run a System Restore using a restore point dated before the wrong file system occurred to fix. You may need to repeat doing a restore of the system until you find a restore point that is older that may work.

    If not yet, then you can use the steps in the TIP box in the THREE OPTION section below to manually replace the files SFC could not fix.

    SECOND OPTION

    To run the SFC/scannow command in Windows 8


    1. open an elevated command prompt in Windows 8.

    2 in the elevated command prompt, type sfc/scannow , and then press enter. (see screenshot below)
    NOTE: It may take some time to complete the race.



    3 when the analysis is finished, I hope you will see that all is ok message as the screenshot below.
    NOTE: Fortunately CFS was able to repair my files automatically damaged system.

    Note
    If SFC could not fix something, then run the new command to see if it can be able to next time. Sometimes, it can take by running the sfc/scannow command 3 times restart the PC after each time completely fix everything what he is capable of.

    If this isn't the case, then run Dism/online/Cleanup-Image /RestoreHealth to repair any corruption component store, restart the PC later and try the sfc/scannow command.

    If still no, then you could do a Refresh of Windows 8, or run a System Restore using a restore point dated before the wrong file occurred to fix. You may need to repeat doing a restore of the system until you find a restore point that is older that may work.

    If not yet, then you can use the steps in the TIP box in the THREE OPTION section below to manually replace the files SFC could not fix.

    OPTION THREE

    How to see and read that only "CFS" Scan results from CBS. JOURNAL

    NOTE: SFC when is running, it records its actions in the C:\Windows\Logs\CBS\CBS.log. The steps of this option will show you how to view only specific SFC entries with the [SR] tags in the CBS.log newspaper. This can be useful to show you what files SFC couldn't fix automatically if you want to try and manually change them.

    1. open an elevated command prompt in Windows 8.

    2 in the elevated command prompt, copy and paste the following command and press enter.
    NOTE: This will place a file sfcdetails.txt on your desktop with only the SFC scan details of the results of the CBS. Log in this.

    Code:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >%userprofile%\Desktop\sfcdetails.txt
    
    3 close the elevated command prompt.

    4. open the file on your desktop to see the SFC sfcdetails.txt analysis details in convertible bonds. NEWSPAPER.

    5 when you are finished, you can safely remove the sfcdetails.txt file later if you wish.

    Tip
    If you need to replace a corrupted system file that SFC cannot fix, this will show you how to:

    If you have many files are corrupted, then run Dism/online/Cleanup-Image /RestoreHealth to repair any component store corruption, restart the PC after and try the sfc/scannow command.

    If you have only a little, then you could manually extract a new copy directly from your installation of Windows 8 DVD or USB thumb drive, or ISO if file in a virtual machine.

    Check out the Windows 7 Installation DVD files

  • Since switching to windows 7, my finger pad no longer works. Any help appreciated

    My finger pad no longer works since moving to Windows 7. I looked good and tried as far as I know how, now I'm lost... Please help!

    You may download your touchpad software which feeds it.  You can do it from the website of your computer manufacturer.  Just look at their section downloads/software/drivers.  You will take just the model number of your computer and they will present you all the drivers they have.  Just take one for the touchpad and install it.

  • Expression of need! Any help appreciated. Use audio converted to keyframes

    Hi all

    I hope that this isn't really a complicated problem. I regularly use after effects, but the substance of the expression he has baffled me. I can convert audio to keyframes with a number. What I want to achieve is - I have a talking head with the mouth bottom part cut on a sperate layer. I would like to that layer of mouth up and down driven by the audio. I can take the whip for the audio without problem but then I have to make sure it only one of the position values and also to "refine" the effects how the audio effects this value.

    Help, please!

    Thank you!!

    I'm not sure of what you are doing with the slider, but I think that's all you need for the mouth:

    AUD = thisComp.layer("Audio_Amplitude").effect ("the two Channels")("Slider);

    y = linear(aud,0,36,1492,1547);

    [1001.5, y]

    If you have already placed at [1001.5,1492] mouth, you can simply do:

    AUD = thisComp.layer("Audio_Amplitude").effect ("the two Channels")("Slider);

    y = linear(aud,0,36,0,55);

    value + [y 0,]

    Dan

  • ePrint Centre - general question about Apps... any help appreciated

    Hi, I bought the below a few days ago to printer to print from an IPad.  It seems to print from an iPad thin air.  The sign part of the ePrint centre put in place asked me to add an e-mail address for my printer so I can print from an application.  When I click on the application tab, however, it says that my printer does not support the apps?  Any ideas?  Thank you.  Stuart.

    My printer is a budget HP Deskjet 3054 A all-in-One Printer - J611a

    Hello Stuart.

    The HP Deskjet 3054 A (part of the series 3050 a) provide functions AirPrint and ePrint, however, does not support the function Print Apps.

    You can find the differences and the features offered by your product below:

    http://support.HP.com/us-en/document/c02814760

    Kind regards

    Shlomi

  • Missing PS CC 2015 replacement brush color. Check all the pitchers and not found - any help appreciated. Thank you

    Screenshot 2016-03-15 17.18.52.png

    Hi colem.

    It might be possible that the color replacement tool has moved under the edition toolbar option.

    Go to the Edit menu > Toolbar > restore default > check again under flyout brush and it should be there now.

    Kind regards

    Claes

  • Having difficulty using the quick selection tools to remove the images of background form. Any help appreciated

    Hi all

    I try to remove the background from images using 3 different selection tools.  I'm going fine, but eventually the images together ceases to be caught than ever the tool I use.  It is easier if you use a pro version of photoshop and not all versions of elements?  I have 11 items.

    Thank you

    -Deby

    You are welcome. If this does not work for you, consider using a mask. The goal is to preserve the foreground and hide/remove the background...

  • How to choose a program to open my photos when inserting my SD card? as it doesn't give me options of this program to use differently than before, why, I don't know, so any help would be appreciated.

    How to choose a program to open my photos when inserting my SD card because it does not give me options of this program to use differently than before, why, I don't know, so any help would be appreciated.

    I know what it is, and I'm trying to answer it... will keep you posted
    your original question in a forum of Vista.

    OK... you are running XP and your computer has a media player you
    Insert the card in?

    If you go to... Start / my computer... There should be one or more readers
    listed as... Removable Disk... These are the slots of the media player.

    If you right click on the removable disk representative the memory card
    and in the menu... Choose... Properties / Autoplay tab and open the fall
    window and select pictures. And... ICT... "ask me each time to choose
    an action "." Maybe this will restore the AutoPlay window when you insert
    the map.

    You could also try... on the left by clicking on the button "Restore default settings" / apply / OK.

    And it may be worth trying to run the AutoPlay Repair Wizard.

    Download the Microsoft Autoplay Repair Wizard:
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=2648

  • How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

    How to access my settings of the webcam for an hp pavilion windows vista any help would be appreciated

    See if a program was installed for him. Or use something like Skype / instant messaging program

  • I bought photoshop in 2012 and installed on the mac, I had then. I lost the disc and need this computer. How do I install it on my new computer. Any help would be greatly appreciated. Thank you. Josh.

    I bought photoshop in 2012 and installed on the mac, I had then.  I lost the disc and need this computer. How do I install it on my new computer. Any help would be greatly appreciated. Thank you. Josh

    I hope you find the serial number... but if not, it may be worth mentioning that you can use Photoshop and Lightroom for $9.99 / month. It's a big dea; : Lightroom and Photoshop | Plan of creative photography of cloud to Adobe .

  • Hi, how can I activate the tool on the android app?  I use a Samsung galaxy S tab. Any help would be greatly appreciated. Thanks, Johnny

    How to activate the tool on the android app?  I use a Samsung galaxy S tab. Any help would be greatly appreciated. Thanks, Johnny

    It is not a. You can suggest adding a feature here: Adobe Acrobat for Android - feature request/Bug Report Form

    Ben

  • Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the value of "Off" to all of the other boxes as well. Any help is greatly appreciated.

    Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the 'Off' the value assigned to all the other boxes as well. Any help is greatly appreciated.

    'Off' is the default value of any box when it is not checked. It can not

    be changed.

Maybe you are looking for

  • Problems of WiFi IPad Pro 12.9

    When I bought my Ipad pro 23/07/2016 I put in place through the icloud account where I have my Mini 3, the 6s Iphone ipad and macbook air 13 ". the issue is at work were I use my iphone and now Ipad Pro the wifi on my iphone wil lwork but does not co

  • Satellite C660-15 cannot install the update of wireless lan

    I receive a notice indicating that my wireless lan driver should be updated. I followed the instructions and know which unit my laptop (Realtek: RTL8188CE) and download the appropriate driver software. It appears as a zip file in my downloads folder.

  • My visualization software - pavilion 23xi display

    Hi people, I use a hp pavilion desktop computer, h8-1170 uk, windows 7, beautiful machine, 18 months oldI just bought a Pavilion 23xi screen and loaded the driver and the software 'my view' of the Conference on disarmament what came with the display.

  • How can I install my laptop to connect to a WiFi network instead of my default dial-up line?

    Hello... I have for the implementation of many laptops for a Webinar tomorrow morning; but at least one of these computers keep trying to connect to its range of dial-up default instead of local WiFi Hotspot. How can I get this laptop to connect to t

  • Is PersistwndName.exe a Windows component?

    is PersistwndName.exe a conponant of windows and it is safe to remove it from my system?