I think just a matter

Is there a way to create a sql statement that would be the following.

TABLE TEST
columns: name, Id

example of data

ID name
John 1
John 2
John 4
mat 2
Stephen 4
Tom 1

What I'm trying to do is create a query to select all of those wearing the id 1 or 2, and if none is found send me anyone who has only an identifier 4.

If id = 1 id = 2
then
Send results
otherwise if id = 4
Send results

I was wondering if this can be done with a decode statement or not. It sounds simple enough, but I have yet to find the request for her. Any help would be appreciated. Also, I tried something like this on the web, but does not and it seems to be a matter of noobie as well.

Hello

The following query Let's manipulate you data as tables without create tables and insert data.

Kind regards

Tags: Database

Similar Questions

  • Configure an Outlook account recently. I have a challenge finding my e-mail/conclusion where I create mail to send. I know it's just a matter of hitting the right key, but which?

    I recently got the Windows program as well as an Outlook account.  I try to know how to get to my mail and send a mail.  I don't know that it's just something that escapes me.  Thank you

    Hello


    Do you mean view outlook hotmail or Microsoft Outlook?

    If you encounter a problem with the outlook hotmail (Outlook.com) view, I suggest you to post the same question on Windows Live mail help forum.

    If you are facing the issue only with Microsoft Outlook so I suggest you to post the same question in forums Office for assistance.
  • Hopefully just a matter on gotoAndPlay

    try to learn as3. I have 3 video clips (red, green, blue). I want to mouseover them and let them grow up a little. I've done the interpolation and it seems fine. but the animation has started right away (even with this code) and kept repeating over and over again. I opened my movie clips and stop(); added to the first frame. and I did the gotoAndPlay leave the Framework 2. I did this right? It traces the 'green', 'blue' and 'red '. but when I mouseover the movieclips, nothing happens.


    green.addEventListener (MouseEvent.MOUSE_OVER, over_green)
    function over_green(event:Event):void
    {
    trace ("Green");
    gotoAndPlay (2);
    }


    blue.addEventListener (MouseEvent.MOUSE_OVER, over_blue)
    function over_blue(event:Event):void
    {
    trace ("Blue");
    gotoAndPlay (2);
    }


    red.addEventListener (MouseEvent.MOUSE_OVER, over_red)
    function over_red(event:Event):void
    {
    trace ("Red");
    gotoAndPlay (2);
    }

    Thanks for bearing with me. I am trying to learn.

    If the independent animation has stopped since the addition of the stop(); so probably what you need to do next is to target objects (if these are what you want to animate)... as in...

    green.addEventListener (MouseEvent.MOUSE_OVER, over_green)
    function over_green(event:Event):void
    {
    trace ("Green");
    green.gotoAndPlay (2);
    }

    If it is not the intention, then explain what you want to animate.

  • just a matter

    Hi all

    could someone at - he answered my question, please?

    the question is:

    can I make the forum for flex 3.0?

    because if the answer is Yes, I'm going to learn every thing about flex and if it's not, I won't learn flexible


    Thank you

    Good bye

    Well, jspa's Action of JSP, so you're right, but then again if I am since the submission of the customer is HTML.

    Whatever it is, this forum is not a Flex application.

  • When you are prompted to update 8.0.1 - and I have install hit - window just thinking about it and never installs updates?

    Try to update 8.0.1 - when the Update window opens up to the installation that I hit 'install' I like of course update. However, once I hit the install button it can be all day and this threshold does not install the update, he thinks just about... Make sense? What can I do to get this updated and fact? Shouldn't be that hard right?

    Hi ammikolasy.
    I'm sorry that you had bad to upgrade. There may be a number of different reasons why that happened. I found an article that explains how to fix the problem:

    How to solve the failure of the update of Firefox update error message

    Hope that helps!

  • Profile of Pro - 1 for "Photo paper Premium Matte"

    Just got a Pro-1 and a few packets of Canon "Photo Paper Pro Premium, Matt" were included in the agreement. Installed everything, say the instructions with the paper "select"Photo Paper Pro Premium"" Matt for the media Type setting, but I don't have this profile. Here are the profiles I see installed in CC of Photoshop, Photoshop CS 4 and 5 of Lightroom:

    Canon PRO - 1 v1-1 new 2/3 Fine Art Paper Photo Rag
    Canon PRO - 1 v1-1 new 2/3 Fine Art Museum Etching
    Canon PRO - 1 v1-1 new 2 other Fine Art paper 1
    Canon PRO - 1 v1-1 new 2 other Fine Art Paper 2
    Canon PRO - 1 v1-1 new 1/2 other glossy paper
    Canon PRO-1 v1-1 new 1/2/3 Photo Paper Plus Glossy & gold
    Canon PRO - 1 v1-1 new 4 Photo Paper Plus Glossy & Gold
    Canon PRO-1 v1-1 new 1/2/3 Photo Paper Plus Glossy II N
    Canon PRO - 1 v1-1 new 4 Photo Paper Plus Glossy II N
    Canon PRO - 1 v1-1 new luster paper Photo 1/2/3
    Luster paper Photo Canon PRO-1 v1-1 new 4
    Canon PRO - 1 v1-1 new 2/3 paper Photo Mat
    Canon PRO - 1 v1-1 new 1/2/3 Photo Paper Pro Platinum
    Canon PRO - 1 v1-1 new 1/2/3 Photo Paper Plus Glossy
    Canon PRO-1 v1-1 new 4 Photo Paper Plus semi-Gloss

    I don't think that generic matte photo paper is the right profile.

    I thought that maybe I needed to plug Print Studio Pro installed, but that was of no help. And trying to use Print Studio Pro has been no help, he opened but just sitting and cycled in CS4 and Lightroom, never reached a point where I could do something with it. It is never installed in Photoshop CC.

    The Canon site search not found me an for this article standalone ICC profile. What Miss me? Thank you.

    Hi Evildad,

    Photo paper Premium matte paper can be selected in the printer driver.  To do this, please follow these steps:

    1. click on start and then Control Panel.

    2. click on printers.

    3 right-click the PIXMA Pro-1 and click Printing Preferences.

    4. click on the main tab.

    5. next to media Type, please click on the dropdown menu, point to fine arts papers and click on Photo Paper Premium Matte Pro.

    6. click on apply and then OK.

    If you continue to have difficulties, please contact our support group by using the following link:

    http://www.USA.Canon.com/Cusa/consumer/standard_display/contact_us_consumer

  • No need to Support Dell or just poor quality products?

    I don't know where should I write to be heard, so goes to write it here!

    I bought a new Allienware 17 at the end of November in Russia to work on my new assignment in another country (South Korea). What happened, my brand new laptop everything just stopped working after 2 weeks. No damage, no suspicious programms, steam, could Adobe Creative and BitDefender was installed.  The turned just black screen.

    I contacted Dell Korean support hoping to get that it help. I got fired. Then, I called American support and was expelled for 4 hours by phone. Finally, I got the answer that I need to change the property tag. I did it took me extra 2 more weeks for my request to be processed.

    Fortunately, I called Dell support Korean again (which is shamely doesn't speak English!) and they said: oh, you have to pay an unknown amount of money to buy a new Dell warranty for our country!

    On my question how much money: I have replied: don't know. "It is not my authority to know." Interesting question then who knows?

    It has been 2 months that my new machine almost $3000 does not work and none of any service Dell can help me with it. I bought this computer because he thought it is the most precious, and I have heard many good things about the Services the customer of Dell. And it turns out that the laptop itself is a piece of junk and no one can help me with fixing it.

    Such a shame for a huge company like dell to behave like that! If you have a Ministry in different countries that you assume to have the same regulations as in a central administration office. Or otherwise, you must send the assignment to your customers prior to purchase of products: "If you travel with our products all over the world, we will not give a * on you, I thank you for your stay with us.

    So the question is: what should I do with the new brand alienware metal? I want my money or someone from dell which can help me to fix the product they sold me. I think that my rights of customers have been offended.

    If you need I can specifically describe the error with the laptop.

    Kind regards

    Unhappy owner of Alienware

    After 2 months of dance with a tambourine and a new warranty while my current purchase used only 2 months Dell Korea sent an engineer to check the problem.

    So what do I: after 2 weeks of use my Alienware 17 has stopped working: LCD, LCD screen cable and the graphics card.

    Laptop has been used super slightly, no. harm any damage and cloud only adobe has been installed as extra.

    I'm super shocked. How is it possible at all? 3 defective products at the same time! I am super angry.

    Happy but it could be fixed at least. I think that the matter is closed. But what made me change my opinion on Dell and Alienware.

  • I don't see the Audio waveform in the timeline panel. No triangle click button. Just changed pcf. Help!

    I don't see the Audio waveform in the timeline panel. No triangle click button. Just changed pcf. Help!

    I solved the problem.  It was just a matter of push lines down and creating a larger space of work for each row of the audio.  Never had this problem at the time of AVID or FCP.  I appreciate your help!

  • Can I just drag - drop all of a sudden?

    Hello

    I placed like the obects below (bcz I want to achieve throughput / flowed subforms), am a beginner, so I screwed up like below in the hierarchy, now bcz of reason (if I use as it is lower in 2nd page, the alignment is spoil), I want to spend all the nodes / 2nd page objects on the 1st page, therefore, to make quick & easy, think just drag - drop page 2nd red top-level node to the decline at the bottom of first page with the technique to hold cusrsor , pls let me know is safe / any precaustions (there are very very litttel JS)?

    My_First_Page1

    Subform

    Subform

    text field

    Subform

    text field

    just text

    Subform

    Subform

    text field

    Subform

    Subform

    Subform

    text field

    just text

    Subform

    Subform

    text field

    Subform

    Subform

    Subform

    text field

    just text

    My_2nd_Page2

    Subform = > can I drag / drop this top-level node to the bottom of page 1 St?

    Subform

    text field

    Subform

    text field

    just text

    Subform

    Subform

    text field

    Subform

    Subform

    Subform

    text field

    just text

    Subform

    Subform

    text field

    Subform

    Subform

    Subform

    text field

    just text

    Thank you

    In the hierarchy on the left tab, simply mouse click and hold, then drag it to anywhere in your page 1.

    If all your objust respect this subform, they will also. If any other subforms are on the same 'level' you would have to select them separately or pressed cntl and click to select multiple

  • Just installed - not recording

    I just installed AA to Windows 7 (64-bit) and I'm not save. I'm in multitrack mode, chose my card in the hardware section, having the army track, pushed the Red record button but no result. What I am doing wrong? I'm not a beginner to AA, but have not registered for 7 or 8 months and I'm lost. I'm trying to record a simple loop for another program, in the hope that I could get in and out of the AA in a hurry so I hope that you can get up and running. Thank you very much.

    Have you selected an appropriate entry in the track that you trying to save? It is not just a matter of setting up the card in the selection of HW - you must select an entry in the device in the track itself before recording is possible.

  • Hi all just ordered a new Alienware 14

    Hi all just ordered a new Alienware 14 based 16 GB Dual Channel DDR3L at 1600 MHz (2x8GB) NVIDIA GeForce GTX 765 M with 2 GB GDDR5 WLAN Killer 1202 pilot 256Go mSATA SSD Boot + 1 TB 5400 RPM / MIN SATA 6 Gbps 8.1 Windows Pro 64 - bit English optical drive: Blu - ray Slot-Loading double layer (BD - ROM, DVD/RW, CD - RW) drive Killer NIC 1202 802.11n WiFi and Bluetooth 4.0 4th generation Intel Core i7-4910MQ processor (Quad Core , 8 MB Cache, up to at 3.9 GHz 14.0 inches (355,6 mm) just a matter of anti-Glare IPS FHD (1920 x 1080) WLED display, I want to change the 1 TB 5400 RPM with a ssd 512 MB or larger. I have to leave the 256mSATA as boot drive? or he clone for the ssd and use it as a boot drive and mSATA as storage and someone has this configuration, I assumed that all pilots will be resided on the mstat what comes on the hard drive of 5400rmp do I need to transfer stuff into the ssd

    Hi sideshot,.

    sideshot

    I want to change the 1 TB 5400 RPM with a ssd 512 MB or larger. I have to leave the 256mSATA as boot drive? or he clone for the ssd and use it as a boot drive and mSATA as storage and someone has this configuration, I assumed that all pilots will be resided on the mstat what comes on the hard drive of 5400rmp do I need to transfer stuff into the ssd

    As Tesla has pointed out, the best way to do is to replace the 1 TB with the largest SSD HARD drive, and then let the mSATA SSD as boot drive. All the drivers and the operating system will remain unmodified on the SSD and you would just transfer your data from the HARD disk of 1 TB for the new SSD.

    The application purple397 talks about is AlienRespawn. It is factory preinstalled software that allows you to create backups to protect your data. With the premium version, you can create a backup or image on a disc of local storage. For more information, see the link above.

  • iTunes crashes if its wifi network does not have access to the internet

    Hi all.

    I'm running a 13 "mac book pro with OS X El Capitan.

    I have a very specific problem of iTunes which is really bugging me.  I'm a pro saxophone player and part of my job is performed as a soloist with playbacks on my mac.  To avoid having to walk to the mac to start the track to accompany each song, I use a tablet on a stand that I can place anywhere in the room.  I've set up a router next to the mac that the mac and the tablet of connect to, and I run "retune" on the Tablet (I think it's that his name) which is a wifi iTunes remotely.  Installation is really smart cos he allows me to choose new avenues of selection from anywhere in the room instead of walking back and forwards to the mac every time.

    The problem I have is that sometimes maybe (1 to 5 times), I have a real problem from iTunes when the mac is connected to a wifi network that has no real internet connection.  I'm sure that iTunes detects wifi connection and then tries to access the internet to connect with the store.  When he is not in the store it just crashes and I get the spinning wheel of death.  Most of the time, I can simply restart the program several times and finally he decided to play ball, but it's a real pain.  And I did a concert yesterday where he would not have enough, no matter what I did.  If I had no choice but to turn off the router and keep walking to the mac for each song.

    I can't find a setting anywhere on iTunes that can disable the connection to the store and I really am stuck.

    I also tried alternative programs (I used Clementine briefly but I just found it too flakey to be invoked) and so I am open to others suggests.  But I need a player who has a remote app that I can use on my tablet.

    Thanks in advance for the help.

    I use an older version of iTunes and in the preferences a lot, I can disable Store, Radio, sharing services, probably genius if I got it. Check all your preferences settings including those you think don't matter such as parental preferences (this is where the store is hidden on mine).  Realize also that iTunes has turned into a simple multimedia player to a 75% of sales and marketing as well as the do-it-all tool (aka bloatware) try too many at once and developers can't even imagine someone (i.e. the daily target user) use it without Internet.  Add on that you try to use an application to control iTunes and something like that is likely to misbehave, willy nilly whenever Apple launches an update.

    Don't forget with wi - fi you are subject to interfering signals other wi - fi services in the region or the stage equipment.

  • Current iphone replacement with a new one. Backup / restore of the Questions etc.

    Hello

    Im sure that these questions have been answered before, but I would be very grateful for any quick answer please.

    Then someone gave me a new iPhone from my provider to replace my current one and I think that I will most likely accept the offer. In this respect do I just need to backup my iphone on iTunes and then when I boot the new iphone for the first time select the option "restore iphone" in order to ensure the same things that I have on my current iphone will appear on my new? Assuming this is correct is iTunes also backup apps?

    In regards to my sim card, I guess it's just my phone contacts (names and numbers, etc.) which are stored on where are these details stored on my phone, in which case this detail would be on the sim card? Once again it is just a matter of swapping the sim card from one phone to another?

    Finally if I want then to trade, sell or pass on my current iphone how to do that safely? A factory Reset deletes all current data completely from him and if so how should I actually go do a factory reset?

    Thank you very much for reading this and for any answers provided!

    The following contains information for the migration to a new iPhone: transfer content from your old iOS device to your new iPhone, iPad, or iPod touch - Apple Support

    Contacts or other user data are stored on a SIM card from iPhone. It is only used to support information.

    The following contains information about what you should do before getting rid of the old iPhone: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • 6 iPhone no longer lights

    Bought this Iphone 6 16 GB around February 2015. Worked perfectly all year with no problems at all. Has taken great care of it and is always perfectly as if I had just bought it. Just today, when I woke up from my sleep, the phone was working fine and was about 64% battery. However, all of a sudden it just completely shut off not the case. I tried everything I could to start up with the hard reset and plug it into the charger to charge, but the Apple sign will not come back on and the phone will charge even more. Certainly through technical problems with the software or the hardware. I have currently guaranteed more since it's been past a year as I got it and was scheduled for an appointment at the Genius bar, which I'm sure a lot of people had to go through this as well. I had already paid for this phone and don't think I should pay another fee just because something happens with Apple manufacturing issue. It's horrible, I used iphones and ipods from the first generation and the first time my phone turns off completely on me. As this is fairly new and should prove more effective than in the past.

    It could be just a matter of an installation of a new battery...

    You can make an appointment at an Apple Genius Bar.

    Or send the iPhone to service > iPhone response Service

  • Safari and Chrome

    I have the retina iMac 5K, 27 inches, end of 2015.  I have run all the updates of El Capitan and am always current.  I was using Safari years without major problems or concerns.  Recently, I had a "glitch" with two experience various websites who advised me that if I would use a Chrome browser, the problems would be clear.  One of these sites is important to me and I use it every day.  The problem I have is annoying but not a deal breaker.  The other site is insignificant, but when I came across this question, it motivated me to post these questions that have been simmering for some time.

    I have two questions.  First of all, can I install Chrome and then open and use Safari and Chrome without the risk of conflict or other technical problems?  (I am NOT a knowledgeable technician).

    Second, there are significant benefits to Chrome on Safari? I use Google as my search engine.  I heard from several people that once they switched to Chrome, they stopped using Safari.

    Hello

    Yes, you can use Chrome and Safari at the same time without any problems or risks. Be aware that you can choose a browser by default at the same time, but you can always change

    I use Chrome for several years and there are no significant benefits. I think it's just a matter of taste.

    Greetings!

Maybe you are looking for