USING NULL AND SELECT ALL IN DECODE

COL1 has the following values:
COL1
====
A
B
C
A
B
C
A
D
D
SELECT COL1 FROM TABLE1 WHERE COL1 =
DECODE(:VAL1, 'A', 'AA', 'B', 'BB', 'C', 'CC', 'D', 'DD')
1. what about the null values ? how can I add to the above statements when I enter null for the parameter :VAL1
2. what about all the values in COL1, what shall I enter for :VAL1 ?
THANKS.

SELECT COL1 FROM TABLE1
WHERE nvl(COL1,0) = DECODE(:VAL1, 'A', 'AA', 'B', 'BB', 'C', 'CC', 'D', 'DD',null,0)
Can we use in this way?
Shishu Paul
Chandigarh-India

Similar Messages

  • I created folders in iphoto on my imac, synch using itunes and selected all photos from iphoto but those albums don't show up...most my albums do but a few don't!??

    I have a new iMac and I'm a new mac user....I have an iphone5..and ipad2.
    I have created folders on the imac in iphoto.
    I am synching the ipad and iphone with mac using itunes...selecting all photos, 3,500+ and although all the pictures may be sharing on all devices, the folders aren't.
    I have created several folders and copied pictures into those folders and they look fine while in iphoto....but I can't get the to synch into ipad and iphone using itunes.

    Folders in iPhoto do not contain photos. Albums and Events do. Folders can contain albums, but not photos on their own.
    So, do you mean Albums?

  • Have a question I do not use mail in my computer I use yahoo and I have all these emails and selected all and then delete then delete trash and they always come back how do I stop these old email in apple mail? I never send anything from there but I have

    have a question I do not use mail in my computer I use yahoo and I have all these emails and selected all and then delete then delete trash and they always come back how do I stop these old email in apple mail? I never send anything from there but I have the same email in yahoo but delete them and they still show up in apple mail from day one how do I get rid of these once and for all.Please help
    <Edited by Host>

    I am soooooooooooo confused now.  Ok, if you are having problems with Yahoo Mail and Gmail but you do not use Apple's Mail you need to do the following:
    1 - Post in Yahoo's Mail forums and/or contact their tech support.
    2 - Post in Gmails forums and/or contact their tech support.
    Neither of the above are Apple's products.

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • In history displays. put checkmarks and select all.

    In history displays. put checkmarks and select all.

    Can you clarify what you mean?
    Do you have a problem with the history?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • Program using BAPI and selection screens

    program to compare two infoobjects using BAPI and selection screen in ABAP

    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm

  • Query: how to use structure and selection and what's the difference between

    Query: how to use structure and selection and what's the difference between these two?
    Would be appreciated if some experts here give examples to demenstrate on how to use structure and selection in query and what's the difference between these two?
    Thanks in advance!

    Hi Kevin,
    1. Well by default all the KF that you include in your query go into a Key Figure Structure. You can additionally have another structure for defining how your chars are laid out. A common example is a Calmonth structure where you have selections for 12 months, quarers and YTD values. This would be a char structure with different selections (for each month, qtr etc)
    2. Yes, a selection with a KF is the same as restricting a KF. You can use am RKF is you have one on the left hand side, or if you need to do this locally in the query, right click the structure and choose New Selection, then proceed to choose your KF and reqd char values.
    Hope this helps...

  • How to block user create personal view and select ALL VIEW?

    How to block user create personal view and select ALL VIEW?

    Hello,
    >create personal view
    To restrict creating personal view, you need to modify your existing permission level or create new one. Login with admin account to your site and open role.aspx page (http://siteurl/_layouts/role.aspx). Then click on existing permission or add new permission
    level-->and move to "Personal Permissions" section-->uncheck "Manage Personal Views - Create, change, and delete personal views of lists" option. Later you can assign this permission to all users, whom you don't want
    to allow to create.
    >and select ALL VIEW
    Since SP does not supports view level permission directly so you have to use custom solution or use below designer solution to restrict user to open any view.
    http://www.codeproject.com/Articles/433486/How-to-set-view-level-permissions-out-of-the-box-i
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • HT4864 I am using Entourage and followed all the instructions above and still getting IMAP Server error.  Error msg:Security failure.  Data decryption error.

    I am using Entourage and followed all the instructions above and still getting IMAP Server error.  Error msg:Security failure.  Data decryption error.

  • When i scyn photo from pc to iphone, by using cable and selecting iphone on ituens,the photo which stored in my ipone, i am unable to delete some photoand even can not arrange them according to my wish

    when I scyn photo from pc to iphone , by using cable and selecting iphone on itunes, the photo which stored in my iphone , i am unable to delete some photo from them and even can not arrange them accoring to my wish, please let me know what to do ?

    you can only delete the photos you take on the phone itself as in from camera roll
    sync mean syncronize as in make the 2 side the same if you could delete the photos syncronized to your iphone then the nature of what syncronize mean result in the logic step being deleting the photo on your computer too
    you get rid of the photo by sync with another dir/ sourse or by moving the photo out of the dir of the computer and then resync

  • HT4686 How can I publish my website developed using iWeb and have all functions of the blog page work as it did with MobileMe?

    I have developed a website using iWeb and it includes a blog page selected from stock pages in iWeb.  I'm publishing it with GoDaddy and when I do that the interactive functions of the blog page don't work. (Adding comments and photos as well as searching).  Is there any simple way to host this site somewhere so that those functions work?

    No, because all those functions were MobileMe only and now that MobileMe has gone, they won't function any longer.
    To enable these to function, you either need to add them yourself or change your blogging platform to something else such as WordPress etc., and create a link from iWeb to your WordPress blog or embed the blog page using iframe into your iWeb site.
    Commenting systems such as Disqus or http://www.intensedebate.com work quite well.

  • How do I set focus to the Browser so I can CmdKey-A and select all?

    I've searched the shortcut list for about 10 minutes and cannot find a shortcut to shift focus to the browser (by default the right-side) preferably the lower film-strip/list pane where pressing Cmd-A selects all the photos.
    Note, that if you select an album and hit Cmd-A it doesn't select all the photos in the album - if that worked I wouldn't need to set focus to the film-strip/list pane.
    There's only 1 keyboard shortcut in the "Aperture 3 Keyboard Shortcuts" guide with the word "Focus", and it's not the one I need.

    Put it this way.
    1. Select an Album
    2. Now, you want to select all photos in that album, hit Cmd-A
    You can't do (2) until I manually click in the film-strip pane.
    I want to hit 1 key, to put me in a position to select all photos immediately.
    This would also allow me to navigate using the arrow keys.
    I'm not sure I really understand how anyone would not need this.
    You click an album, you want to navigate through them (without using the mouse) ... doesn't everyone need to do this somehow?
    ** I just realized while experimenting that hitting the arrow-key actually gives focus to the film-strip in a way that allows me to hit Cmd-A.
    So it looks like the answer is to
    1. Select the Album
    2. Hit any arrow key (sometimes it already has focus, depending on what you were doing in this album last time, by the look of it)
    3. Cmd-A now works.

  • Where did edit and select all go?

    Where in the new Itunes format can I click on edit then click select all cause I need to add more then one song to my playlist at a time if not it gonna take forever.

    Are you referring to iPhoto or iMovie?  If it's iPhoto then what version of iPhoto are you running?  Have you updated to iPhoto 9.5? If so what version did you have previously?
    As a first attempt try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #4, Rebuild Database, followed by Option #1 if needed.
    Can't help you with iMovie.
    OT

  • Some photos not showing in my Camera Roll album, can only find them if I use 'Places' and select where I took the photo

    Basically as the title says, I've noticed when trying to  find some photo's I've taken in the past few months in my Camera Roll album (in the Photo's app), I can't find them anymore.
    But, if I choose 'Places' (instead of Albums at the bottom of the Photo's app) and select the place/location I took the photos, I can easily see them.
    I have an iPhone 4S on iOS 5.1. Based on the photo's missing, it appears it's happened to photos between 11th January to around 10th March. But I was definately able to seem them in the camera roll during that time (as I specifically remember a set of photo's I took I constantly referred back to around February. I can now only find them if I choose the location where I took them).
    I've reset the unit and performed a sync, but still can't see them in the Camera Roll.
    Any ideas?

    If you deleted them from photo stream, the only way to get them back in photo stream on your device is to add them to the camera roll as new photos.  If you don't need high resolution versions in photo stream, this can be done by simply opening each photo and taking a screenshot.  If you do want higher resolution versions in photo stream your options are either to email them to yourself, then save them to your camera roll, or add them to a shared photo stream album.

  • When using Mail and selecting the recipient, Address Book no longer shows Groups. I am forced to select from my entire alphabetized contact list. What's going on?

    Has the Address Book software changed? Or has Mail changed? For purposes of email, Address Book no longer allows me to find an addressee or several addressees who are members of one of my Groups (or Smart Groups). What happens is this: I open Mail, initiate a new email, put the cursor in the To: box and click the 'Show addresses' icon in the New Message box. The Addresses list shows up in a separate window with an alphabetized listing of all my contacts. It used to allow me to select a Group, but Groups are no longer listed. I have no choice but to select an address (or addresses) from the entire list. Needless to say, this is intolerable.
    Ultimately, I have two questions:
    What has changed and can I fix it so it works as it used to?
    If I can't fix it, what other email/address book software combination works simply and cleanly so I don't have to live with this frustration.

    This add-on may help:
    https://nic-nac-project.org/~kaosmos/morecols-en.html
    I've had this add-on for so long that I can't remember what it does and does not provide.
    If you select a List in your Address Book, so that its contents display at the right, does "Export" not write just the Lists's member Contacts out to the csv file?
    It does here, but this may be thanks to the above-mentioned add-on.

Maybe you are looking for

  • Problems with mapping after bundling messages into one XML-file

    Hi all, Case 1: one DebMas IDoc ==> XI ==> one XML-file : no problems with mapping. Case 2: several DebMas IDoc's ==> XI ==> one XML-file : problems with mapping. Explanation: Incoming DebMas IDoc's: Businesspartner 1 : no Customer Master Partner Fun

  • Looking for a Gift

    Hello, all. I'm new to this group, and as a PC technician I hate knowing that what I'm about to post has, I'm sure, been asked a thousand times before, but time is of the essence here:  Anyway, as I said, I'm a PC tech. NOT a photographer! My girlfri

  • Stop/Play takes me to a point 4/5 into the disc

    I've got a DVD with many menus, stories & tracks. From any menu, and from a couple of tracks, when I hit "Stop" then "Play" the DVD starts playing one specific track that's near the end of the disc. I can't find anything in DVD Studio Pro that's prog

  • BAPI or FM for KNVV table updation

    Hi, I  want to know a function module or BAPI which updates the Customer Sales data in the KNVV table. If any one has worked on the same, please let me know. Thanks in advance. Regards, Sajith.

  • Middle Ware Comp

    Hello friends... What does a middle ware component... how does it helpful in bw... can anybody tell me about Ilink, and MQ series... thanking you... nith