How to check a record for varchar and negative

Hi I have a code

IF (l_modification_type = "CASEPACK")

THEN

IF (ltbl_item_mod (indx) .primary_case_size IS NULL

OR ltbl_item_mod (indx) .primary_case_size = 0-> need to add a condition more 1 to check if the casepack is of type varchar or not?

)

THEN

INSERT INTO nmc_item_mod_errors

VALUES (l_seq_id, l_item,

' Case_Pack cannot be zero or negative. It must be a numeric value");

UPDATE STAGE_ITEM_MOD_SYN set identfr_id = 'E' where seq_id = l_seq_id;

Here, I need to add a validation that the case_pack column must be numeric only not varchar. The data type for the column is NUMBER.

How to add?

Hello

the fact that "primary_case_size" is a NUMBER (and not a 'varchar') is OK as wrtitten already, but I want to add a note: your code issues a warning "Case_Pack cannot be zero or negative. It must be a numeric value"so I'm afraid the test you perform is perhaps not the right one."

It seems that, instead of check

IF (ltbl_item_mod (indx) .primary_case_size IS NULL

OR ltbl_item_mod (indx) .primary_case_size = 0

)

You may need to check

IF (ltbl_item_mod (indx) .primary_case_size IS NULL

OR ltbl_item_mod (indx) .primary_case_size<=>

)

Best regards

Bruno Vroman.

Tags: Database

Similar Questions

  • How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    How to check the details of connection and disconnection of the team? I want to see the rate of use of the software.

    Hello

    I'm sorry but there is no option for monitoring the connection and disconnection of a user.

    You can see their activation of license through your admin console.

    Kind regards

    Sheena

  • Now, I have no sound on my lapt top having a media player to "check the drive for errors" and laptop have no dound I did a windows update, but no sound came through, please help me

    Now, I have no sound on my lapt top having a media player to "check the drive for errors" and laptop have no d

    the sounds I made a windows update, but no sound came through it please please help with a link to something. Re, I did check the drive for errors and still after it again all the sounds left my laptop which is a vaio song

    Thanks for any help

    Hi, Pantha9,

    What version of Windows are you using?

    Start > right click on computer and select Manage

    Select Device Manager

    Click on the + next to sound, video and game controllers

    Right-click on the driver and select uninstall

    Restart the computer and Windows will reload the driver

    New attempt of his

    Access the site of the factory and search for driver updates

  • How to check the file for the virtual machine size Esxi shell

    Anyone who can tell me how to check the file for the virtual machine size Esxi Shell. I tried this command-h ls but does not work.

    Have you checked "ls-lh', it will provide information as the attached screenshot." "

  • How to check what host is primary and which is secondary in HA?

    How to check which host is primary and which is secondary in HA in esx 4.0 or 4.1?

    Hello.

    See the section Types of nodes to http://www.yellow-bricks.com/vmware-high-availability-deepdiv/

    Good luck!

  • How to check my form for changes not

    How can I check my form for changes to stop? My form can have one or more blocks of data and I want to detect if the changes are waiting when they try to close the form. They can exit by pressing a button on my form, or X'ing out all together. I need to know if the changes are underway so that I can handle this myself.

    Thanks in advance for the help.

    Hello

    If :SYSTEM.FORM_STATUS = 'CHANGED' Then
      -- something to commit
    End if ;
    

    François

  • How to check the version of windows and the number of bits?

    Dear Sir

    As I could not download and watch a video show, I was told to check the version of windows and the number of bits. I remembered the upgrade to version 10 of Windows when you are prompted before. However, when I clicked on 'This PC' to check the C:\ drive, it shows Windows8_OS (C :).  It is quite misleading.  Can I know how to check & confirm the correct version of Windows and where to find the number of bits as well?

    Thank you.

    Looks like you're on windows 10, but after the upgrade is not changed the label of the hard drive.

    Type winver in the run box-press windows key + R box simultaneously.

    If the Windows 10 Build 10XXX State, you're on windows 10.

    Simply right click C: / and select Rename and rename the drive in Windows10OS or what you want.

    As far as the pieces is concerned, the PC this right click > properties and see the following line:

  • How to insert new records into master and detail forms.

    Hello

    I cannot have values are inserted in the main view and details at the same time. Scenarios is I a Dept Table (view object-VO1) and employee Table (View Object-VO2) both related to a foreign key, according to HR in Oracle DB XE default schema.

    Now, I want to insert the new record into a table Dept (VO1) and the EMP (VO2) by a new say on page (page 2). There is a button on page 1 with button INSERT. I can only drag "CreateInsert" operation on this button for VO1 and VO2. So only text box for records Dept are allow to insert data, but not the Emp records. Is there a way I can insert data into the tables at the sametime?

    Thank you
    MB

    Hi MuradRabbani,

    You can call programmatically two createInsert operations,

    Add to your pageDef two CreateInsert operations.
    Create a button tha will be master (VO1) insert method call and then call insert for details (VO2) method

    Here is an example of code to call the operations:

    DCBindingContainer dcb = ADFUtils.getDCBindingContainer (); you need the ADFUtils.java and JSFUtils.java classes. You can find them in the sample applications in your JDeveloper.

    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO1");

    Oper.Execute ();

    -NOTE: at this point, you must set the values that compine the ViewLink on the master in the order detail will know where to link the new record there are many ways to do it.
    As solution try to overrdi the method to create on the in the your master vo (VO1) ViewRowImpl
    for example
    @Override
    protected void create (AttributeList attributeList) {}
    front
    attributeList.setAttribute ("NameOfAttribute", valueHere);
    Super.Create (AttributeList);
    }

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

    After that, you must call the operation for your VO2 detail

    for example

    DCBindingContainer dcb = ADFUtils.getDCBindingContainer ();

    OperationBinding oper = dcb.getOperationBinding("CreateInsertVO2");

    Oper.Execute ();

    The detail record will now automatically have the values of your master.

    Kind regards
    Dimitris.

  • How can I check my PC for malware and spyware?

    I tried to pay for my subscription to Rolling Stone mag online and when I accessed their website I was attacked at least six viruses and every time I tried to hit the isolate or remove the button the screen change then he said my PC has been fixing crash and I think I hit the button to solve this cos evething disappeared and I closed the compupter and booted back up.  It was a little slow.  But not a lot.  Now, when I click on an icon on the desktop as the icon of IE it flashes on this page for a blink of an eye, then returns to the office page then goes back to the IE page and everything seems normal.  How can I check to see if I have a problem of spyware or malware?  I ran my Avira Personal and it was clean but Avira Personal is not a firewall that I'm not sure he checks that attacked my PC.  I have a Windows Firewall that intercepts the malware etc.  Is there a program in Windows or Microsoft who can check on my PC without having to download something like Microsoft Essentials?

    Hello JanetMillen,

    And those proposed by Thomas, you can also try Mcafee Stinger http://www.mcafee.com/us/downloads/free-tools/stinger.aspx

    Also, if you can get to a practice desktop download, install and run Malwarebytes Antimaleware http://www.malwarebytes.org

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • How to count the records for each region day and conditional

    Hello

    I need to create a report where I list activities for a month and the number of specific Type for each days activities. something like below

    Number of days in the month where Type = 'A' Count where Type = B
    January 1, 2009 2 3
    January 2, 2009 7 6
    January 3, 2009 8 7
    ----

    -----
    January 31, 2009 4 6

    I tried with the creation of conditional region for each row of table for every day, but it does not work. I use below for conditional region-

    <? xdofx:If substr (to_date ('20': substr (Planned, 9, 2) |)) » -'|| substr (Planned, 1, 2). » -'|| (substr (Planned, 4, 2), 'MM-DD-YYYY'), 4, 2) = 01? > <? Planned? > <? end if? >
    But it is not functional and do not know how to count records in the table for each date as well.

    Can anyone help in it as soon as possible. I'm quite new to BI.

    Thnks

    You can mark it as resolved... :D

    Kind regards
    Colectionaru

  • I checked my plugins for firefox and recommend it, I have download shockwav version 14.0.0.149 which includes macafee security that I don't want, how to avoid this?

    I checked my plug ins to find this flash version shockwave 14.0.0.145 should be updated to version 14.0.0.149. This download comes with a few download macafee (antiviral I think). I had trouble with macafee in the past and do no0t like it. Is there a way to bypass this Hitchhiker? Thanks in advance to all who take the time to read this and especially to those who have little help.

    You can also find the latest versions of Flash player for Firefox on this page:

  • How to check the proxy for android settings

    Hello... When I try to go on youtube in mozilla android, it will not at all and it gives me a message to check my proxy settings... I tried as I can... could not find or know what proxy change... see no network as my "Windows computers" option... I put for 'no proxy'... too bad... I added a lot of features to firefox and cannot go on youtube and a few other too.*john sites

    Hey John,
    I'm sorry to hear that on mobile Firefox for Android requires to verify the proxy server. This happens on several networks?

    If there is a proxy must be included in all: networking. That plug your url and see if there is a proxy listed.

    There is also a nice add on Mobile Proxy that might be able to list them.

  • How to create Master records for my laptop Equium A200-15i

    I recently bought a laptop Equium A200-15i. How can I create a CD/DVD Master can I use to restore my computer in the event of a major failure. I know all about the restoration of the machine of the hidden partition, but I want to get my hands on the DVD to use in case of a major failure of the system.

    I took my computer to the local computer store to highlight the fact that ther were no Master DVD as part of the packing list and they seem not very useful. I bought a lot of computers before and normally those two things are provided to the user, or there is a facility for the user to create a. Thanks for your help.

    null

    Hello

    Sorry to hear that, but I hope you can get the original DVD for your laptop. If the PC store will not help you please contact authorized partner in your country and explain the situation.

    They can order one for you.

  • How to solve 'Access denied' for Win32_OperatingSystem and Win32_Processor in WMI using Vista Home Premium SP2 control?

    OS: Vista Edition Home Premium SP2
    Unable to use WMI (Windows Management Instrumentation) control backup/restore because of 'Access_denied' Win32_OperatingSystem and Win32_Processor.  Is there a reference that offers the recommended default value for the security permissions for each Namespace?

    I stumbled upon the answer to

    http://social.msdn.Microsoft.com/forums/en-us/SQLExpress/thread/b924e835-b835-4883-8323-8b3600dfb0c1/

    of greggnlisa.

    -Goto the start menu and LOCATE your command prompt (need to be
    Accessories).
    -Right-click on it and select "Run as Administrator".
    -At the command prompt, type the following: net localgroup "Directors" "NT Authority\Service" / Add

    -Then press ENTER.

    -Reboot and you're done.

    I do not understand how it worked, but it took me several weeks to locate.

  • How to check the event for any activity view?

    My PC wakes up in the middle of the night recently, and I would like to know what to check the event viewer and see what type of program wakes up my PC for the Hibernate.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    I would look at the branches and Application System.

Maybe you are looking for