How to get the value of the variable in plsql

Hi all
I have a scenario to find the value of the variable:

A varchar2 (10): = 'Y ';
B varchar2 (10): = 'n';
C varchar2 (10): = 'AB ';
D VARCHAR2 (10);


now my question is that how can I reach a value of A and B to D of C.

The value of D must be equal to YN.


Thanks in advance...

Published by: user00001 on April 26, 2010 03:42
d := CASE c
       WHEN 'A' THEN a;
       WHEN 'B' THEN b;
       WHEN 'AB' THEN a || b;
       ELSE NULL;
     END;

Tags: Database

Similar Questions

  • How to get the variable 'dn' in a script

    Hello

    I have a problem, get the variable "dn" of the script is not a "public" variable, but I'm able to see in the log file. I bet it's in an object java somewhere - I don't know how to access it. No one knows how to get it. I have attached some of the newspaper:)

    CN = 8485 [5-6] XX, dn = 8485601 = 9812 cgn, ani = null, dnis = null, clid = null, atype = FORWARD_ALL lrd = 9817, ocn = 9817,

    I have a similar problem but I did not find the repo. package... Where?

    Thank you

  • How to get the variable substitution essbase in ODI

    Hi all
    I have a problem that I need to get the variable substitution of Essbase /EAS to work on a SQL in ODI.
    How can I do in ODI?
    Thank you all for...

    Thomas

    Hello

    If you read my blog:-http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post, there is a section on the recovery of the essbase substitution variables and their use in ODI.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • PowerCLI Invoke-VMScript re - ip guest - how to get the variable hostname comments

    I run the following script as a task Post-Power-we a re - ip our VMs after that MRS. them rocking.  I was able to run this script successfully without the variable hostname of comments (in the test, he runs a script by test VM with the hostname assigned...), but I'm stumped on how to get comments variablized according to the machine's host name works on, it will take the host name and use it in the GuestUser variable and the command - VM.  I tried the bold part, but it does not work.

    $srv = Connect-VIServer 10.0.0.10 - administrator of the username-password password

    $Hostname = (get-wmiobject win32_computersystem). Name

    $script = "%windir%\system32\cmd.exe/c c:\dr\drIPsettings.bat".

    $HostUser = "root".

    $HostPassword = "password"

    $GuestUser = ' $Hostname\Administrator '.

    $GuestPassword = "password"

    $ScriptType = "bat".

    SE connect-VIServer 10.0.0.10 - Session $srv. SessionID

    Invoke-VMScript - ScriptText $script - VM $Hostname - HostUser $HostUser - HostPassword $HostPassword - GuestUser $GuestUser - GuestPassword $GuestPassword - ScriptType $ScriptType

    Thank you!

    How you code the - VM on the Invoke-VMScript cmdlet parameter, it seems that Displayname of the guest is the same as the host name.

    Can't you just use a loop on guests and then use the displayname property

    $script = "%windir%\system32\cmd.exe /c c:\dr\drIPsettings.bat"
    $HostUser = "root"
    $HostPassword = "password"
    $GuestPassword = "password"
    $ScriptType = "bat"
    
    Get-VM | %{
       $GuestUser = $_.Name + "\Administrator"
       Invoke-VMScript -ScriptText $script -VM $_ -HostUser $HostUser -HostPassword $HostPassword -GuestUser $GuestUser -GuestPassword $GuestPassword -ScriptType $ScriptType
    }
    

    You can encode the Get - VM with more specific selection criteria or use a Where-Object after the Get - VM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to get the secondary variable

    Hello

    Can I know how to get the variable of the Secondary VI?

    Please see my VI, when I run the test in high school, I can't any variable in the indicator "get all the control values.

    Is there a wrong?

    Thank you.

    Try this:

  • How to get the value of a variable to bind a client method of the AM?

    Hello

    I have a VO based on a variable binding. This binding variable is associated with an element on the page. When the user fills the element that the binding variable is written, the query is executed. This method works.
    What I want now is the following. With a second button, the user runs an exported AOS action method. In this method, I want to get the value of the binding variable that has been put forward.
    How would I do that?

    You can get the variables bind currently set on the object view as follows:
    catServiceDurationsVO has the reference to the VO
    VariableValueManager vm = null;
    VM = catServiceDurationsVO.ensureVariableManager ();
    System.out.println (VM.getVariableValue ("BindVariable"));

    Thank you
    Nini

  • using PostDelayedCall how to get the value passed through void * callbackData?

    Can someone tell me how to get the data passed through void * callbackData?

    The following code, panel_ptr has the right address but still contains zero.

    void CVICALLBACK value_changed (void * callbackData)
    {
    int * panel_ptr;
     
    panel_ptr = callbackData;
    calculate_new_value (* panel_ptr);
    }

    int sign;

    Panel = 2;

    PostDelayedCall (value_changed & Panel, 0.2);

    The problem is using the callbackData parameter if it is a pointer, it must be a pointer to something which is still topical at the moment that the callback executes. That is to say, you cannot pass the pointer to a local variable in callbackData as when the callback executes the pointer is no longer valid. You can switch from its value, instead, in this way:

    ... SomeFunction)

    {

    int sign;

    ...

    Panel = 2;

    PostDelayedCall (value_changed, (void *) Panel, 0.2);

    ...

    }

    void CVICALLBACK value_changed (void * callbackData)
    {
    int panel_ptr;
     
    panel_ptr = (int) callbackData;

    calculate_new_value (panel_ptr);

    return;
    }

    There are many discussions on the forums on callbackData parameter that you might want to read.

  • How to get the fnd_profile.value in the host program

    Hi all

    How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.

    I loved not below, but it failed.

    v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END

    set pagesize 0

    trigger the echo

    fnd_profile. Value ('ORG_ID');

    EXIT;

    END '

    echo $v_return

    but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »

    Kind regards

    UVA

    > but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »

    .. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »

    Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • How to get the value of a * Global * Application point of JS

    If we declare an element of the request, which is NOT a level of the page in question, how we get the value of this element in an Action dynamic JavaScript on a page?

    For example, we declare a "global" variable as an Application named DEFAULT_AJAX_SEPERATOR and set its value with a calculation of the claim "on the new Instance" a moment later, on a page of the application, we would like to get the value of DEFAULT_AJAX_SEPERATOR via JavaScript.

    Page* level syntax element...
    $v( 'DEFAULT_AJAX_SEPERATOR' );
    .. How does not work. I don't understand why it's like $v can only access the elements on the page. However, the APEX is clearly able to get these global values since, for example, they are available in PL/SQL blocks. Also, I know that it is on the session object, because I can see it when viewing the session.

    So... What is sauce secret for obtaining this value?

    Thank you

    -Joe

    Hello
    Use something like this in your javascript code.

    var appItemVal = "& DEFAULT_AJAX_SEPERATOR.";

    Thank you
    Naidu789.

    If you think, I responded to your question, please mark as answer.

  • How to get the peak value

    Can I know how to get the 2 peak values v1 and v2 and 2 duration times t1 t2.

    Since there is a small amplitude noise, difficult to use the Max simplely.

    May need to use a filter such as wavelets or TREE to Denoise it first. Can I know how to use, any Toolbox in labview. How do the curve smooth first.

    Thank you.

    I can't watch your vi now (I'm at work), but if your signals are long enough, you might consider a median filter.  You can set the number of points before and after use.  I found that it is useful for some smoothing problems (not all).

  • How to get the value of a variant as a string

    I have an existing codebase, which transmits the values of the user interface to business logic as variants. I was prompted to connect all values passed in this way in a text file. I'm trying to figure out how to get the data as a string to a Variant value without having to deal on the type for the data descriptor. The flag variant the fact, so I think I can, too.

    Anyone know how?

    Thank you, all! I decided to use the XML approach:

  • How to get the parameter values of a step type custom when I create file and adding a type of step seq

    I use lv 8.5 and teststand 4.0.

    I did a step type custom and recorded at the MyTypes.ini in pallets of type.

    I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.

    T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.

    But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.

    Using joint file, how to get the setting custom step type values I put in *.ini?

    Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.

    Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?

    I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.

    Everyone knows Q2?

    Thank you.

  • How to get the value of an editField on onUnfocus()

    I want to check the value of an editfield on focusout/focusouthandler(), how to get the value in the onUnfocus() method?

    getText

  • How to get the value of the TextField on Buton FieldChangeListener

    friends I am new on the development of blackberry applications could you please help me how to get the value of text I typed in the textField when I click the button?

    constructor

    public Dialogs()
    {
      
    using design in the same screen
      
    Display display = new MainScreen();
      
    ButtonField btnPress = new ButtonField();
    btnPress.setLabel ("press me");
    btnPress.setChangeListener (ButtonPressListener);
      
    TxtValue TextField = new TextField();
    txtvalue.setLabel ("enter something :");
      
    HFM VerticalFieldManager = new VerticalFieldManager (VerticalFieldManager.FIELD_VCENTER);
    HFM. Add (txtValue);
    HFM. Add (btnPress);
      
    mainScreen.add (hfm);
    pushScreen (mainScreen);
      
      
    }

    FieldChangeListener ButtonPressListener = new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
        
           
    Dialog.Alert (t.GetText ());
         
         
         
    }
    };

    any help would be appreciated.

    You must ensure that your FieldChangeListener has access to the object of txtvalue, while it can make a

    String inputString = txtvalue.getText ();

  • How to get the decimal value of a string of international currency

    Hi all

    How to get the decimal values to a string of international currency.

    Finally, we get to the real problem.

    You can use location functions or write your own using string functions already mentioned...

    http://developer.BlackBerry.com/native/documentation/Cascades/device_platform/internationalization/

Maybe you are looking for

  • Plugged in not charge T500

    Hi friends, I use laptop Lenovo T500 for 2 years. yesterday all of a sudden its judgment of the batteries and a battery red light start flashing constantly. I have read a lot of forum for the solution of charging and found a solution, I press the but

  • Pavilion 550-306no - for the 2nd HARD drive expansion slot?

    While thinking about replacing my old HP tractor, I browsed around the shop online for a possible new unit; Seems there is a box called Pavilion 550-306no, sold here in Sweden, which could meet my needs.  However, does anyone know if there is room (o

  • How to draw the graph of towing simultaneously in a single window

    Hello I have 2 (or more) table which of them is known and the other is calculated during mode running continuously (no batch processing). the last of them is not the same size that the famous painting tile view deleted the end. I use a block titled b

  • Tengo license original pero not conservo las claves activacion solo tengo los los the etiqueta sub codes

    por cambio pc gear I do disco base no disponemos activacion pero codes if disponemos of los the etiqueta sub codes 80045 145-222-453 i 00045-490-680-429 that podemos hacer Gracias girvisa (francesc solana)

  • HP All in one 4630e: 4630e

    Do I need to set up the 2nd phone line to fax on 4630e? I wan tot have the fax at any time.  Thank you for any assistance you can give. I use window 8 but don't know how to bite.