NULL2

when i attended to my viva in project 2 weeks ago.External examiner asked me about NULL2 and also difference between NULL and NULL2? firstly i want to know whether NULL2 is in sql or not?If yes plz answer to my post
thanking you sir,

I guess you meant NVL and NVL2 check below..
http://www.lmgtfy.com/?q=NVL+vs+NVL2+in+oracle
-Ammad

Similar Messages

  • How to filter a form with pagination?

    Hi all,
    I've converted an app to Apex 3.1 (thanks to helpful folks here), but am stuck on the final form. I'd like to streamline the master-detail form, skipping over the tabular report in the detail. Here's (almost) a shell of what I'm trying to do:
    [http://apex.oracle.com/pls/otn/f?p=57085|http://apex.oracle.com/pls/otn/f?p=57085]
    I'd like the select list in the top region to be able to filter the results in the lower region, showing one row of info at a time in a form. The above example isn't nearly as complex as the real form I'm using, of course, but it should show what I'm trying to do.
    I've set up the computation for P1_EMPNO as:
    select min(empno)
    from "#OWNER#".emp
    where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL...with a conditional that P1_EMPNO is NULL. Likewise, the row fetch contains the same WHERE clause as above.
    I've been running around in circles trying to debug this, prototyping several forms to test combinations of branches, SQL, and such, but no luck.
    Has anyone done this before? I see some semi-close threads here, but they seem to end up as a report.
    TIA!
    Rich
    Edited by: socpres on Dec 1, 2008 1:48 PM -- minor edit: changed SQL to use code tag

    Hi Rich,
    Sorry - just seen this.
    Yes, I have done something similar before (though the filters were handled on a separate page, the principle would be the same).
    The important parts are the selection of the first record, the IDs for the Next and Previous records, the conditional display of the Next/Previous buttons and how to set the current EMPNO id.
    1 - As you have a form on the page already, the first record can be set using a Before Header page computation that is conditional on the PK field being null and using your code as the source:
    select min(empno)
    from "#OWNER#".emp
    where deptno like :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL2 - You should then have hidden NEXT and PREVIOUS items on your page. These should be calculated using Before Header computations on EVERY page load (ie not conditional) and using SQL queries:
    Previous (say Item name of P1_PREVIOUS_EMPNO):
    select NVL(max(empno),0)
    from "#OWNER#".EMP
    WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    AND EMPNO < :P1_EMPNONext (say Item name of P1_NEXT_EMPNO):
    select NVL(min(empno),0)
    from "#OWNER#".EMP
    WHERE DEPTNO LIKE :P1_DEPT_FILTER OR :P1_DEPT_FILTER IS NULL
    AND EMPNO > :P1_EMPNO3 - Your Next button should be conditional on P1_NEXT_EMPNO not being 0 and your Previous button should be conditional on P1_PREVIOUS_EMPNO not being 0
    4 - The Next button should trigger a branch that sets the value of P1_EMPNO to P1_NEXT_EMPNO and your Previous button should set P1_EMPNO to P1_PREVIOUS_EMPNO
    5 - Your branches triggered by the Filter and Reset buttons should reset P1_EMPNO to null (the computation will calculate this again)
    Then, when the page loaded, the first EMPNO that matches the filter is determined and the next/previous EMPNO's are automatically calculated and the buttons shown/hidden as appropriate. Clicking Next or Previous will move through the records and new Next/Previous EMPNO's are calculated each time. When a new filter is applied or the page is reset, the EMPNO is cleared out and recalculated based on the current filter.
    Andy

  • Passing values to OnDemandProcess from Select Statement on Reports Page

    I think I'm just missing some of the proper syntax, Can somebody please help me.
    As I've come to understand this process of passing the values,
    I recognize it as (3) steps.
    1. Referencing the "javascript" in the Select Statement of the Reports Page.
    2. Including the "javascript" in the Page Header region.
    3. Defining the Process as an OnDemand Application Process.
    My problem is:
    a. I can't seem to get the Value passed to the Application Process.
    b. I don't know how to reference the Value passed once I get it passed.
    Here's what I've got done so far:
    1. (The Select Statement)
       onClick="javascript:ORDER_CONNECT_SEQUENCE('||ID||')
    {code}
    2. (The javascript)
    {code}
    function ORDER_CONNECT_SEQUENCE('+ID+')
    var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=ORDER_CONNECT_SEQUENCE',0);
    get.add('+ID+');
    gReturn = get.get('+ID+');
    {code}
    3. (The Application Process)
    {code}
       BEGIN
       Select '+ID+' into THIS_CIRCUIT from dual;
    {code}
    I Know that the Application Process is being referenced and that the OnClick routine is working properly,
    because if I plug a Value into the Application Process, instead of using '+ID+',
    Then I get all of my desired results.
    Any help you can give me here is greatly appreciated.
    Thanks- Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Dimitri, Thanks for your efforts here, but its still not working for me.
    Here's what I understand from your suggestions:
    1. (changes to the javascipt)
       a. replace function ORDER_CONNECT_SEQUENCE('+ID+')
           with
           function ORDER_CONNECT_SEQUENCE(pId)
       b. replace get.add('+ID+')
           with
           get.addParam('x01',pId)
       c. replace getReturn = get.get('+ID+')
          with
          getReturn = get.get()
          get = null2. (chages to the Application Process)
       a. add l_value varchar2(4000) to my list of declarations
       b. add l_value := wwv_flow.g_x01 below the begin statement
       c. I guess then I would reference the l_value like this:
           Select l_value into THIS_CIRCUIT from dual* Also, You didn't mention any changes in my Select statement in the Reports region of the page.
    FYI.
      onClick="javascript:ORDER_CONNECT_SEQUENCE('||ID||')
    {code}
      The 'ID' which I'm referencing here is an ID from the table which I'm querying.
    Am I misunderstanding you somewhere?
    Thanks- gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How access to Smart Card Readers using Labview?

    I´am trying access to Smart Card Readers by Labview, but I have problems.
    I want to read SIM card GSM using Labview.!
    The file winscard.dll has the functions to access, but I dont have skill with "Using External codes in LabView".
    In MSDN library there is the specification about the functions for winscard.dll
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/smart_card_authentication.asp
    When you install a driver for some smart card reader you access to it by winscard.dll.
    Att. Enrique

    Finally I can acces to the smart card readers (PC/SC) with Labview,   this is the first part where I can establish the context and realease it, and  I can get the first  name of my list of PC/SC readers that I have connected to my computer.
    I was wearing the "Call Library Function"  for  winscard.dll
    For  Establish the context you need :
        function name :  SCardEstablishContext
    Calling conventions :  stdcall (WINAPI)
    function prototype :    long SCardEstablishContext(long SCARD_SCOPE_USER, long NULL1, long NULL2, unsigned long *hContextHandle);
    function name : SCardReleaseContext
    Calling conventions :  stdcall (WINAPI)
    function prototype :  void SCardReleaseContext(unsigned long hContextHandle);

  • ( Urgent ) Date Formatting

    I want to know how to get a date value with Milliseconds by using Date Format or any.
    For Eg: I am having a LOG( Transactions) table wherein I have a date_create column of a DATE Datatype.
    I want to get( Display or retrieve) the value in Milliseconds after formatting. Is there anyway out.
    Does ORACLE provide that..
    Thanks in Advance for your Response..
    null

    2 solutions:
    1) write a java stored procedure. java has time functionality
    that is much more granular then the Oracle DATE type. This will
    work in 8.1.5 and up. It can look like this:
    [email protected]> CREATE or replace JAVA SOURCE
    2 NAMED "MyTimestamp"
    3 AS
    4 import java.lang.String;
    5 import java.sql.Timestamp;
    6
    7 public class MyTimestamp
    8 {
    9 public static String getTimestamp()
    10 {
    11 return (new
    12 Timestamp(System.currentTimeMillis())).toString();
    13 }
    14 };
    15 /
    Java created.
    [email protected]> create or replace function my_timestamp
    return varchar2
    2 AS LANGUAGE JAVA
    3 NAME 'MyTimestamp.getTimestamp() return java.lang.String';
    4 /
    Function created.
    [email protected]> l
    1* select my_timestamp, to_char(sysdate,'yyyy-mm-dd
    hh24:mi:ss') from dual
    [email protected]> /
    MY_TIMESTAMP
    TO_CHAR(SYSDATE,'YY
    2000-06-22 13:47:53.376
    2000-06-22 13:47:53
    [email protected]>
    2) use an external procedure written in C. C has api's to the
    system that allow for much more granular time components. This
    will work in 8.0 and up. For example if you run something like:
    [email protected]> create or replace library timelib as
    2 '/export/home/tkyte/src/t/extproc.so'
    3 /
    Library created.
    [email protected]> create or replace
    2 procedure get_extended_time( p_timestring out varchar2 )
    3 is external
    4 name "get_extended_time"
    5 library timelib
    6 language C
    7 with context
    8 parameters ( CONTEXT,
    9 p_timestring STRING,
    10 p_timestring INDICATOR short,
    11 p_timestring MAXLEN int,
    12 p_timestring LENGTH int );
    13
    14 /
    Procedure created.
    [email protected]> declare
    2 l_timestring varchar2(30);
    3 begin
    4 get_extended_time( l_timestring );
    5 dbms_output.put_line(
    to_char( sysdate, 'mm/dd/yy hh24:mi:ss' ) );
    6 dbms_output.put_line( l_timestring );
    7 end;
    8 /
    06/22/00 13:26:28
    06/22/00 13:26:28.103243
    PL/SQL procedure successfully completed.
    In sqlplus after compiling the following C code into a .so or
    .dll or .sl (depending on platform) you can get the
    milliseconds.
    Here is the C code:
    #include <stdio.h>
    #include <stdarg.h>
    #include <time.h>
    #ifndef OCI_ORACLE
    # include <oci.h>
    #endif
    #define raise_application_error return raise_application_error_x
    static long raise_application_error_x( OCIExtProcContext * ctx,
    int errCode,
    char * errMsg, ...)
    char msg[8192];
    va_list ap;
    va_start(ap,errMsg);
    vsprintf( msg, errMsg, ap );
    va_end(ap);
    OCIExtProcRaiseExcpWithMsg(ctx,errCode,msg,strlen(msg));
    return -1;
    long
    get_extended_time( OCIExtProcContext * ctx,
    char * p_data,
    short * p_data_i,
    int * p_data_maxl,
    int * p_data_l )
    struct timeval tp;
    if ( *p_data_maxl < 25 )
    raise_application_error( ctx, 20001,
    "String must be 25 bytes or more" );
    gettimeofday(&tp, NULL);
    cftime( p_data, "%D %T", &tp.tv_sec );
    sprintf( p_data+strlen(p_data), ".%d", tp.tv_usec );
    *p_data_l = strlen(p_data);
    *p_data_i = 0;
    return 0;
    null

  • 4503 VTP Domain Name

    I have a lab that consists of 2 - 4503 with SUPII running cat4000-i9s-mz.122-25.EWA14.bin as the core devices.  I have been practicing for the BCMSN test and was working with the different VTP confiuration options.  Here are the two issues that I am having.  One of which from reading other posts, I may have answered, but want to verify.
    1- 4503 (Core_1) was configured as Server, but no VTP summary advertisements where being propegated to the other clients.  I verified the configuration multiple times to ensure accuracy.  All VTP Domain names where empty (factory default).  Not until I changed the VTP Domain name to Test, did I get propegation of vtp advertisements.  I have in the past been able to set up vtp on 3550, 3560 switches with no VTP Domain name and VTP worked as expected.  From reading, it appears the non propegation of vtp summary advertisements is the norm for 4503.  Can someone verity this.
    2- How do you remove the VTP Domain name from the 4503?  I was able to remove the name from the other devices, 3550, 3560 by doing the following:
         del flash:vlan.dat
          wr er
          reload
         On the 4503 I did the following:
          Switch#del /r /f cat4000_flash:vlan.dat
          reload
         After reload, everything was back.  I also assumed when the 4503 was booting, it may have recieved the VTP information from the other 4503.  So I isolated both by disconnecting the uplinks to all other devices.  Still no go.  I have copied the start-up config to a tftp server, modified the config by removing all vtp information then copied back to running-config and this worked.  But it seems like there should be a better (easier) way of getting the vtp domain name removed on a 4503
         Switch#sh vtp status
    VTP Version                     : 2
    Configuration Revision          : 0
    Maximum VLANs supported locally : 1005
    Number of existing VLANs        : 5
    VTP Operating Mode              : Transparent
    VTP Domain Name                 : null2
    VTP Pruning Mode                : Disabled
    VTP V2 Mode                     : Enabled
    VTP Traps Generation            : Disabled
    MD5 digest                      : 0x10 0x14 0xFD 0x3C 0x2C 0xD2 0xFC 0x4C
    Configuration last modified by 0.0.0.0 at 3-1-93 01:19:35
    Any help would be appreciated
    Thanks in advance.

    I have a lab that consists of 2 - 4503 with SUPII running
    cat4000-i9s-mz.122-25.EWA14.bin as the core devices.  I have been
    practicing for the BCMSN test and was working with the different VTP
    confiuration options.  Here are the two issues that I am having.  One
    of which from reading other posts, I may have answered, but want to
    verify.1- 4503 (Core_1) was configured as Server, but no VTP
    summary advertisements where being propegated to the other clients.  I
    verified the configuration multiple times to ensure accuracy.  All VTP
    Domain names where empty (factory default).  Not until I changed the
    VTP Domain name to Test, did I get propegation of vtp advertisements.
    I have in the past been able to set up vtp on 3550, 3560 switches with
    no VTP Domain name and VTP worked as expected.  From reading, it
    appears the non propegation of vtp summary advertisements is the norm
    for 4503.  Can someone verity this.2-
    How do you remove the VTP Domain name from the 4503?  I was able to
    remove the name from the other devices, 3550, 3560 by doing the
    following:     del flash:vlan.dat      wr er      reload     On the 4503 I did the following:      Switch#del /r /f cat4000_flash:vlan.dat      reload   
    After reload, everything was back.  I also assumed when the 4503 was
    booting, it may have recieved the VTP information from the other 4503.
    So I isolated both by disconnecting the uplinks to all other devices.
    Still no go.  I have copied the start-up config to a tftp server,
    modified the config by removing all vtp information then copied back to
    running-config and this worked.  But it seems like there should be a
    better (easier) way of getting the vtp domain name removed on a 4503     Switch#sh vtp statusVTP Version                     : 2Configuration Revision          : 0Maximum VLANs supported locally : 1005Number of existing VLANs        : 5VTP Operating Mode              : TransparentVTP Domain Name                 : null2
    Hi,
    Deleting the vlan.dat from cisco switches will delete the complete vlan and vtp information from database and if you are not able to delete the domain name in these type of situation try configuring the some bogus name with mode as transperent mode so that other should not get impacted.
    check out the below link for more information
    http://www.ciscosystems.com.ro/en/US/docs/switches/lan/catalyst4500/12.1/12ew/configuration/guide/vtp.html#wp1029449
    http://www.cisco.com/en/US/tech/tk389/tk689/technologies_configuration_example09186a00807d5d42.shtml
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Regarding download customer.fmb and order.fmb

    Hello,
    Can you please let me know from where can i download customer.fmb and order.fmb for oracle forms 6i.
    Please explain that when do we use set_BLOCK_PROPERTY, i have gone through documents there are few examples and explaination of syntax but still i'm unable to understand when it to be use in menu or forms.
    Thanks

    Then we need to know what document you are reading so we know what files it references. If the document is a propietary document, you may have to go to the author of the document to get the files. For example, if you are studying from a copy of an Oracle Training book, you will need to contact Oracle to get copies of the sample forms. i got the pdf from internet the name of document is "*Oracle Forms Developer Build Internet Applications 2-Volume 1 Instructor Guide.PDF 40034GC10 Production 1.0 May 2000 M011398*" and here is no link to attach the file so i'm unable to send you that document.
    In above document, i'm going through " *Practice 1 and 1 Create a new menu module.*"
    some following details are given below:-
    1 Create a new menu module.
    a Using the following screenshot as a guideline, create a new menu
    module called M_SUMMITXX where XX is your student course
    number.
    here is figure regarding with menu editor, we have to followup to that figure
    File Menu and given property of file menu like below but it is in tabular form so i'm unable to copy paste here exactly the same:-
    Label_Menu     Item_Type      Command_Type      Menu_Item_Code      Visible_in_Menu       Visible_in_Horiz._ Menu_Toolbar       icon_Filename
    Save Plain PL/SQL DO_KEY(’COMMIT_FORM’); Yes Yes Save
    Clear Plain PL/SQL DO_KEY(’CLEAR_FORM’); Yes Yes Abort
    Null1 Separator Null Yes Yes
    Exit Plain PL/SQL DO_KEY(’EXIT_FORM’); Yes Yes Exit
    Null2 Separator Null No Yes
    like above the all property is given for all menu items and then after some instruction is given like below:-
    b Save as M_SUMMIT and compile the menu module.
    c Attach the menu module to the ORDERS form.
    d Save and compile the form module as ORDGXX where XX is your
    student course number.
    e Run and test your ORDERS form.
    *2* Add pop-up menus to the CUSTOMERS form.
    a Open the CUSTOMERS form module. Save as CUSTGXX where
    XX is your student course number.
    b Copy the EDIT_MENU menu from your M_SUMMIT menu
    module to your CUSTOMERS form. Attach this pop-up menu to the
    Comments item.
    c Save and compile the form module. Deploy your form to the Web to
    test.
    In this example, the SET_BLOCK_PROPERTY built-in is setting the ORDER_BY property of the S_ORD data block so that records displayed in the block are ordered by the SALES_REP_ID column (block item).
    For more information about the SET_BLOCK_PROPERTY search the Forms Help system; click the Index Tab and then type SET_BLOCK_PROPERTY and open the "SET_BLOCK_PROPERTY built-in" topic. As you review this help article it is helpful to have the property pallet open for a data block. Then you can select a property and press F1 to get detailed information about the property.i want to ask that when do we need to use SET_BLOCK_PROPERTY. in which case, because i also read to forms6i.pdf *"Form Builder Reference, Volume 1 Part No: A73074-01"* but i'm unable to understand that how to use and when to use.
    there is syntax given only but not given the situation.
    NOTE : Please let me know how to attach document then i can send to you, what document currently i'm following or please let me know your mailid so i'll email to you.
    Thanks

Maybe you are looking for

  • CFGrid with Java 7u45 warnings about missing JAR manifest Permissions attribute

    Recent updates to CFGrid are now signed Java applets that no longer expire, however Oracle has updated the security model for Java again.  The recent Java 7 update 45 now displays this warning dialog, indicating that future Java 7 updates (Java 7u51

  • Nokia 5320 and bh-105

    Phone nokia 5320 and nokia bluetooth headset bh-105 not fond evribody. P.S. help my pliz. samsung 3010 fond  nokia bluetooth headset bh-105 all rait/

  • OS X Mavericks: links in Mail do not open Firefox

    With Firefox set as my default web browser, if I click a link in an email, nothing happens. If I change to Safari as the default browser, the links activate fine. Edit: Tho shed more light on the subject, just tried clicking a link in App Store to a

  • Trouble with ipads, dropbox and videos

    Hi, we took video with an ipad (2 I think..maybe 1st gen), downloaded the videos to a mac, uploaded them to dropbox and now I am trying to open them from dropbox on a different device (ipad air, Iphone5 and PC computer) and they will not play/open on

  • Exact date range comparison

    I have payment table like this, Date | Store | payment 01/01/2012 | A | $300  01/01/2012 | B | $400  01/01/2012 | C | $500  01/02/2012 | A | $500 01/22/2015 | C | $300 I want to make a report like this,                               A