Simple question about NVL

Hello

It's simple question on NVL, here are the details:

create table tb_test (number (3) id, varchar2 (12)) nm;

insert into tb_test values (111, 'AAA');

Select NVL (nm, n / 'a') in tb_test where id = 222;

I don't have "N/a", which is what I expected. Any comment?  Thank you!

Hello

If you want a row of output, even if the query produces no line; right?

This looks like a job for outer join:

SELECT NVL (t, nm, n / 'a') OUTPUT

OF the double

LEFT OUTER JOIN tb_test t ON t.id = 222

;

LEFT OUTER JOIN ensures that each row in the table to the left (i.e. immediately before "LEFT OUTER JOIN") will join, even if the condtion join fails.  It is 1 row duplicate, therefore, if there is no line in tb_test that fills the 'id = 222' condition, that the double row will be in the game anyway.  If there is tb_test lines that meet the condition, they all appear in the result set.

Tags: Database

Similar Questions

  • [Beginner] Simple question about fontStyle

    Hello world!

    A simple question about fontStyle (ParagraphSyle or paragraph)

    I have seen that fontStyle is for bold, italic and underlined.

    Is it possible to have some bold AND italic or italic AND underlined paragraph? If it is possible how can I do this (for example in javascript)?

    I have found that this type of examples:

    myParagraphStyle.appliedFont = "Arial";
    myParagraphStyle.fontStyle = "Bold";
    myParagraphStyle.pointSize = 24;
    myParagraphStyle.spaceAfter = 24;
    myParagraphStyle.spaceBefore = 24;
    myParagraphStyle.fillColor = myDocument.colors.item ("Red");

    Someone has an idea?

    Afternoon of Goor

    Is it possible to have some bold AND italic or italic AND underlined paragraph? If it is possible how can I do this (for example in javascript)?

    I have found that this type of examples:

    myParagraphStyle.appliedFont = "Arial";
    myParagraphStyle.fontStyle = "Bold";
    myParagraphStyle.pointSize = 24;
    myParagraphStyle.spaceAfter = 24;
    myParagraphStyle.spaceBefore = 24;
    myParagraphStyle.fillColor = myDocument.colors.item ("Red");

    Someone has an idea?

    Each font has its own list of styles - so some fonts will work with "Bold Italic" - some don't.

    Myriad PRO were "Bold Condensed Italic" and "Bold Italic". Some fonts use "Slanted" as "italic".

    Robin

    www.adobescripts.co.UK

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Simple question about the signing of the app

    Hello.

    I develop libraries to be used in other apps.

    It will be a cod file, its name will be added to the jad as a dependency.

    My library has access to the secure API (call of the browser), so I have a simple question:

    can I register only my cod library or application that uses my library is expected to be signed in too?

    THX.

    You should be ok just signature cod of the library, if your application uses any API secure. However, I just make a habit to sign everything just in case.

  • Simple question about Append hint

    ORACLE-BASE - title

    The link above, I have just a basic question about add suspicion...

    How the APPEND Hint affects the performance

    The APPEND tip tells the optimizer to perform an access direct-path insert, which improves the performance of INSERT .. SELECT operations for several reasons:

    • Data are added at the end of the table, instead try to use the free space in the table.
    • Data is written directly to the data files, passing the buffer cache.
    • Referential integrity constraints are ignored.

    I wanted to just understand to what extent is the third correct point

    -----------------

    CREATE TABLE emp
    (
    emp_id a PRIMARY KEY/NUMBER
    emp_name VARCHAR2 (100),
    dept_id NUMBER
    );

    CREATE TABLE dept
    (
    dept_id NUMBER PRIMARY KEY,
    dept_name VARCHAR2 (100)
    );

    ALTER TABLE ADD FOREIGN KEY (Dept_id) emp made REFERENCE to Department (Dept_id);


    INSERT / * + append * /.
    IN emp
    Select 1, 'King', 100 from dual;

    COMMIT;

    The insert will definitely give an error

    ORA-02291: integrity constraint (SCOTT. SYS_C0013725324) violated - parent not found key

    Am I missing something here?

    See you soon,.

    Manik.

    sqlldr can and does ignore referential integrity / triggers and same uniqueness in a load path direct, insert / * + append * / doesn't - you do not direct path when they (constraints) exist.


    parallel is always a direct route, if you go in parallel, you add.

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:1211797200346279484

  • Very simple questions about DPS

    I have a few questions about the tools and DPS.


    1. What is the difference between Folio and DPS Article?

    I think that the two format have a fixed layout. I don't understand difference and the merit of the Article of DPS.

    I want to know why the Folio was disappear and replace by Article of DPS.


    2. I want to know that all publish root of DPS. (ex.) App Store for iOS, Google android game and..)

    I know that I can make the app, iOS, Android, and windows for each stores with DPS.

    If I want to publish to the Kindle store, iBooks store, store kiosk to newspapers or on the Web site, I don't need using DPS?

    3 if I want to book recomposable (like reactive Web site), I shouldn't use InDesign?

    Is there a process for making recomposable document with InDesign?

    can I use text editor, DW or muse? (such as the manufacture of the normal site)

    I want to know the standard method book recomposable.


    Sorry for my bad English.

    1. I know you probably talk format but essentially, a DPS classic folio is now a collection, the items in the collections are always content

    2 - iOS, Android and Windows platforms that you can publish on are

    -We do not support the Kindle store

    -For book content type, you want to use the ePub format, please see the following links:

    http://wwwimages.Adobe.com/content/dam/Adobe/en/DevNet/digitalpublishingsuite/PDFs/DPS_and _ePub_FAQ.pdf

    https://helpx.Adobe.com/InDesign/how-to/eBook-fixed-layout.html

    3 - InDesign has the ability to create recomposable ePub

    See this tutorial: https://helpx.adobe.com/indesign/how-to/ebook-fixed-layout.html (with exercise files)

    Hope that helps!

  • Simple question about making elliptical mask

    I learn AE CS4 and I have a question about doing the elliptical mask:

    When I click and drag, I get an ellipse with control points, but the real mask is always a rectangle (i.e. areas of X and Y of the ellipse). In fact, this happens with all forms.

    Thank you

    You have rendered for previews on OpenGL? If so, turn it off.

  • Simple question about calling script

    Hi people,

    I am new to flash and actionscript, so only to learn one simple question. (I have not found an answer while the former posts surf/reading again)

    If I wrote a script at the top of my project:

    btnTest1._visible = false;

    btnTest2._visible = false;

    btnTest3._visible = false;

    etc.

    I can create something to call this script in without having to re write the original code if I need to use it again, for example:

    btnTest4.onrelease = function() {}

    btnTest1._visible = false;

    btnTest2._visible = false;

    btnTest3._visible = false;

    }

    I'm looking for a way to store need to unnecessarily repeat the script

    See you soon

    Yes, you can create features and reuse them as long as they remain accessible.  Just be aware that you are showing code Actionscript 2, Actionscript 3.  Below it is rewritten in AS3...

    function hideEverything (): void {}

    btnTest1.visible = false;

    btnTest2.visible = false;

    btnTest3.visible = false;

    }

    And that the function could be further simplified because of the way you named elements (more sense if there is more than a mere 3)...

    function hideEverything (): void {}

    for (var i: uint = 1; i<4;>

    This ["btnTest" + String (i)] .visible = false;

    }

    }

    Place the strings in parentheses causes their names of proceedings for assessment.

  • Simple question about tree

    It is a simple question but I don't seem to be able to solve it, the thing is I have a component of the tree and I don't want any image for icons (by default, they are included), I want to just plain text, so I need to remove the sheet, disclosure and the folder icon that appear in the tree component.

    Any ideas on how to do this?

    Thank you

    The attached code allows, but does not solve the arrow without removing the possibility to expand the tree.

    Delete the following command to see the arrows (maybe that's what you want):
    disclosureClosedIcon: ClassReference ("classes. EmptyIcon");
    disclosureOpenIcon: ClassReference ("classes. EmptyIcon");

  • Simple questions about interactive Apex reports

    I have not yet made many experiments with interactive reports, and a few weeks ago, I heard a colleague that I should not create them. He told an interactive report in our environment of production - according to him, if a user changes the interactive report (for example, adding or dropping a column), other (s) see the same changes that have been made by the first user, so this interactive report cannot have its columns or content is personalized for each user because each user will need to see its own version of the interactive report.

    Because it is expected that each user can see their own version of interactive reports, it discouraged me to go forward. I need to understand this situation because I'm about to release another interactive report in a new page of the Apex - and overcome this if possible.

    Another question: is it possible to replace Oracle reports with export to PDF - Apex and this would include customized logo, header, trailer, and other features of Oracle reports? Certainly not at 100%, but some of these features, such as reports of matrix - they do? Right now, I put reports in packs of function that returns custom types and activities of logic inside the function that returns a type Apex them simply returns by selecting its data, but this question has crossed my mind because I would like to release the Apex of other software development environment.

    I use version 4.2 of the Apex.

    Hello

    There is an attribute on interactive reports where you can define whether the user can save it s own versions of the report, removing columns or adding filters, but the main report is always the same for all users, just as it has been defined by the developer of.

    On PDF printing, I use Jaspersoft Studio to do. It s free and very useful.  There is a package called jrxml2pdf developed by Andreas Weiden, that allows you to print reports of APEX jaspersoft.

    It may be useful

    Best regards.

  • simple question about access to information of predicate and filter

    Hello Experts

    I know that maybe this is a very simple and fundamental question. I read a lot of articles on explains the plan and trying to understand what are 'access' and 'filter' which means?
    Please correct me if I'm wrong, I guess when the index of explain plan can use predicate choose access if the explain command plan go with complete table filter scan (witout index) is chosen.

    My last question is, can you recommend me an article or document will contact plan to explain it in clear language and base level?

    Thanks in advance.

    Hello

    as the name suggests, access predicate is when data access based on a certain condition. Filter predicate is when the data is filtered by this condition after reading.

    For example, if you have a select * FROM T1 WHERE X =: x AND Y =: y, where X column is indexed, but column Y is not, you can get a map with an INDEX RANGE SCAN with access predicate = X: x (because you can use this condition to when selecting the data to be read and read only sheets of index blocks that meet this condition) and ACCESS BY ROWID from TABLE with the filter predicate Y =: y (because you cannot check this condition until after reading the table block).

    I'm not aware of any good articles on the subject, and unlike others I can't find Oracle enough detailed documentation. I suggest you read a book, for example Christian Antognini, "Troubleshooting Oracle performance problems."

    Best regards

    Nikolai

  • Simple questions about drag liberation movements.

    Hello

    I looked for some time, but I wasn't able to understand everything that I need.

    In short, I want to have a simple Drag and Drop.
    I don't want to move the data, I just want to have a node (source) to interact with another node (target). Each funky stuff like change the color or change mouse cursors when I go on potential targets are not important for now.
    I want just a beginning 'drag', a 'drop' and a 'dragdone '.
    Rendering, it is the start of the trail and the part of the drop.

    I used the setOnDragDetected function, which works very well and decided to startFullDrag() from the API seems to me, that is the right way.
    this.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent p_Event)
                {
                    System.out.println("DragDetect");
                    startFullDrag(); 
                    p_Event.consume();
    As it seems to activate or maybe switch the DragEvents to MouseDragEvents - I used setOnMouseDragReleased to activate a reaction on a 'drop' (or a 'drag version') with success.
    this.setOnMouseDragReleased(new EventHandler<MouseDragEvent>()
            {
                @Override
                public void handle(MouseDragEvent p_MDEvent)
                {
                    System.out.println("DragRelease");
                    p_MDEvent.consume();
                    
                }
            });
    But I want to change something about the source, although I have the drag (grayish color, perhaps) and he had to find, when the brake is completed.
    For the DataDrags, it is possible with "OnDragDone" which seems to be enabled for the source. Exactly what I want, as it seems.
    It does not somehow for my knots.

    They Interact with nodes form the same base class, so that each would catch any event, which would be activated, but no node has given me an exit. I tried each recipient event that seemed remotely appropriate.
    I don't want some Drag Queens 'half-alive' or anything like that. I'd really like to be able to react at the end of a drag.

    I would be really grateful if you can help me with this problem.

    TL; Dr:
    Drag-and - release from one node to another works, but I can't get an event that informs the node that the drag is finished. So I may not remove changes to the interface, I did to make the clear source as the "source".

    Published by: Anro on 12.11.2012 04:43

    This tutorial covers what you need: http://docs.oracle.com/javafx/2/drag_drop/jfxpub-drag_drop.htm

    For your "done drag" was not based on the source, I think that you must invoke
    setDropCompleted (true)
    on the event drag to make this happen.

    If you want something like

    target.setOnDragDropped(new EventHandler() {
      public void handle(DragEvent event) {
        // process end of drag on target
        ...
        // Now inform the drag event that everything's complete:
        event.setDropCompleted(true);
      }
    };
    
    source.setOnDragDone(...);
    
  • simple question about removing a hole in a wall

    having a single blow of a person in a room.  the wall behind him, has a small hole about the size of a quarter.  How do I "clone stamp" out in sequels?  his simple plaster painted a gray Brown, btw.

    If the shot is locked off (no movement of the camera) and nothing happening in front of the hole, and there is a visible own section to match the wall down, then it is really as easy as using the Clone Stamp tool.  You could also duplicate your layer, hide a section of the solid wall and place it back on the hole in the first layer.

    If the camera moves, you may need to use Motion Tracking or stabilization of the Motion.

    If the object passes in front of the hole at any time, you may need to use your replacement upper layer masks.

  • simple questions about upgrade to LR3 LR1

    I use LR1 and think to upgrade to LR3.

    Some basic questions: 1. is to import the simple LR1 catalog?  Are there pitfalls/snags to be aware of?  2. the LR1 and LR3 coexist on the same computer?

    I use Windows Vista.

    Thank you.

    1. it should be simple.  If you have any questions, make a copy of the .lrcat file before upgrade you, just in case.

    2. Yes.

  • Simple Question about Photoshop

    Hi, I am looking for this mac here:
    Refurbished iMac 21.5-inch 2.8 GHz Quad - core Intel Core i5
    16 GB memory
    1 TB drive merger
    Intel Pro Iris 6200 graphics card

    I use photoshop heavily, for most, drawing, painting art. It's my profession, so I need something that will work and work quickly with no hiccups.

    I found many sons, saying that people have a lot of trouble getting a PS working on their Mac with these similar configs, but they are all old posts, before 2014. That said it is difficult to find to recent agreements with these questions and maybe because there simply isn't anything, but if someone could weigh for me here, I would be very grateful.

    The main problem that people have with Photoshop is that they're trying to run an old, incompatible version to a new version of Mac OS x. It is not the material that is the problem. They do not want to pay to upgrade Photoshop. There are: many good alternative graphics of course that are much less expensive programs.

Maybe you are looking for