Simple OR condition..but getting prob

Hi all,
Please help me
I am trying to use simple OR condition in a where clause
here is my script
Select * from table 1
where is_numeric(acct_no) = 0 --- is_numeric is function which returns 0 for non digit acc no
or
count_no in ( select count_no from table 1
minus
select count_no from table2)
i dont knw why query is taking a long long time to run w/o out put itired to put braket also but didnt worked.
i knw we can use union too but i dont want to use that.
please help me ....
Thanks
Edited by: user10647455 on Dec 3, 2008 8:04 AM

Hi,
Like Jortri, I would use EXISTS.
I suspect this way is faster:
Select  *
from    table1
where   is_numeric (acct_no) = 0 --- is_numeric is function which returns 0 for non digit acc no
or      NOT EXISTS
        (   select  NULL
            from    table2
            where   count_no = t1.count_no
        );There's no need to reference table1 in the sub-query. You already know count_no exists in table1: that's where you got it.
Calling the PL/SQL function is taking considerable time. If you're only checking for simple types of numbers (such as unsigned integers) you can do that a lot quicker using SQL, especially regular expressions, as Blushadow and Michaels showed you in [your previous thread|http://forums.oracle.com/forums/message.jspa?messageID=3155232#3155232]. If you need to check for any possible number (such as '+1.4E-5') then you probably do need a function. The function may be faster if it is declared as DETEMINISTIC.
Edited by: Frank Kulash on Dec 4, 2008 1:03 PM

Similar Messages

  • I just bought an IBook G4.. perfect condition, but I can not get it to connect to my wireless.

    I just bought an IBook G4 in perfect condition, but I cannot get it to connect to my wireless. The IBook came with all the original cables, CDs, Books and packaging.., Like I said perfect condition. It was sold as having Airport Extreme, but I don't know how to make sure it is Airport Extreme.
    I know the password is correct and the wireless system works on my other computers (PCs) . It picks up my wireless network, but I get a prompt that tellls me the password is not correct.  I have set it to WAP... I tried WEP but was told it should be WAP... I even took it to my son's home this weekend and got the same results from his wireless connection.
    Any suggestions would be appreciated

    Sam,
    Your iBook is younger than mine. I have an iBook G4. 800MHzPower PC G4 processor.256K level 2 cache. 256MB of DDR SDRAM; supports up to 640MB.
    This unit did NOT have an AE card preinstalled. I purchased that at an Apple Store and they did the install for me. The iBook ran OS 10.3.3 out of the box. I know it was on the Internet via ABES g standard on a dial up AOL connection thanks to Tesserax on the Airport forum.
    My iBook is now running 10.3.9. It was on the Internet with 10.3.4 mayb even 10.3.3. Can't remember. The only reason I went to 10.3.9 was for a printer istall.
    We purchased an iBook G4 exactly like yours for a friend. There was a noticible speed bump on that one. I set it up for our friend and there was no difficulty getting on the Internet with it here at my home or his.
    Have you been able to connect to the Internet at a hotspot?  Just trying to cover all the bases.

  • Pages for ipad2 - how do you get text to wrap around the contours of a picture? Not the simple square wrap, but I saw text following the contours of a bike wheel at the Apple store demo

    Pages for ipad2 - how do you get text to wrap around the contours of a picture?  Not the simple square wrap, but I saw text following the contours of a picture of a bike wheel at the Apple store demo

    Sjazbec,
    Thanks for the reply.
    I did read the help and went through the tutorial - the butterfly text wrap (and the wrap around the curved contour of the bicycle wheel at the Apple store) is the reason I am asking this question.  I don't know how to use one of my own pictures and tell Pages what contour to wrap around.  Is there some additional image editing software that I need to "creatively crop" one of my own pictures, so that Pages will be able to wrap around that contour?
    Thanks / Danke!!

  • Trying to install Lightroom 5 with CC but getting error code 5 on initial startup of Lightroom.

    Trying to install Lightroom 5 with CC but getting error code 5 on initial startup of Lightroom. Have uninstalled all adobe products including Creative Cloud CC.
    Followed the instructions on the forum by using the CC Cleaner App for OSX. Have restarted a number of times and even tried using disk utility to fix any permission probs. Still no luck.
    The problem started happening from upgrading the previous version of Lightroom to the most up to date version. Im hoping someone can help me with any ideas. Thanks heaps.

    Ended up fixing the problem after finding no answers. Deleted the following file
    com.adobe.acc.AdobeCreativeCloud.plist

  • To see pay method I tap on View Apple ID but get a blank screen. Why? iOS 8 iPad

    I Tap on Settings, iTunes and Apps store, tap on my Apple ID to show View my Apple ID. I tap on View my Apple ID to bring up payment method but get a blank screen.  How can I correct problem? I have turned iPad off and on With no improvement.

    Not sure what would cause that.  You could try a simple reset to see if that would help (hold the power and home buttons at the same time until you see the Apple logo, then release).  If that doesn't work, you can always review and update your payment information from your other device.  If your computer is signed into your account you can also do it from there (see iCloud: View or change your iCloud payment information).

  • I trying to upload the new license file in BE 3000 but getting error

    I trying to upload the new license file in BE 3000 but getting error . Can anyone share how to delete old license file from
    BE 3000

    A simple license does not include upgrade to newer versions. If you want to keep up to date at all times, look into a  SSP subscription. It has many other benefits.
    LabVIEW Champion . Do more with less code and in less time .

  • Simple compare condition fails [Solved: Bug 4619731]

    Edit: I have found the root of the problem, and Simple compare condition fails [Solved: Bug 4619731]. I have opened a Service Request 7045745.993 on the problem.
    Original text:
    I have encountered the most bizarre bug today. An associate is trying to debug a 1900 line package that was NOT terminating a loop properly.
    The package has the code:
        Exit when x <> y;where x and y are VARCHAR2(8) variables.
    The problem is that even though the values were UNequal, the loop never ended. We added dbms_output debugging code to display x and y, and we could easily see that their values were NOT equal.
    For instance, one was 19824E1A and the other was 19824E2A. Or one was 19824E1A while the other was 99999999.
    I even added a block of code re-testing the condition like this:
      If x <> y then
        dbms_output.put_line(x||'<>'||y);
      Else
        dbms_output.put_line(x||'='||y);
      End if;But no matter what the values of x and y, it always reported them equal.
    I found two workarounds:
    1. concatenate a character (I used a period) to the end of each variable in the condition.
        Exit when x||'.' <> y||'.'2. Or, add an anonymous block before or after the Exit when..., such as:
    Declare
      v varchar2(2);
    Begin
      v := 'AB';
    End;Curiously, when I replaced the v := 'AB'; with NULL;, the bug came back.
    This bug occurs on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    I am not sure where to start to try to solve or report this problem. It pretty much destabilizes the entire PL/SQL programming foundation for all our packages. It leaves me wondering where else the code may be failing.
    Has anyone seen something like this reported before?
    Edited by: Steve Cosner on Aug 27, 2008 10:05 PM

    No offense taken, SY. I was just trying to express how aware I am of the issue of comparing null values in condition statements.
    All I can do here is underscore that it is not an issue with null values. The problem is with the statement in the first line. To prove that it was not null values, I coded the second line following the first:
        exit when x <> y;
        dbms_output.put_line('x='||x ||' and y='||y);The output from the run showed in the first pass through the loop, x and y were equal and were not null. So the process ran correctly that time. But in subsequent passes through the loop, they were NOT equal and were not null, but the debugging code was executed.
    There is no way the values were null.
    I certainly wondered about the null issue when I concatenated a character to the variables in the conditional test. But my debugging lines first confirmed that they were not null. I suspect more that the bug has something to do with the size of the package and the variables being exactly eight characters, which is 64 bits, which has special significance in many computer languages.
    Regarding your concern of the variable names and scope issues, the actual variable names in the actual code can be seen below (I just used x and y for simplicity within this thread):
        LOOP
          EXIT WHEN V_LAST_PERIOD <>
              SIPK0003.COURSE_ADJUST_REC.ACAD_REC_PERIODwhile the silly anonymous block that caused the process to work, using the variable named v, was the actual code. There is no way we use simple one-character variable names in a 1900 line package. There is no way the scope of variable V extended outside the embedded anonymous block. My point was that somehow, changing the size of the compiled package object, or at least the size of the code generated for the loop process caused the package to run correctly. In fact, thinking about the
    Declare V... Begin Null; End; sequence, I'll bet the PL/SQL compiler is sharp enough to notice that it was a do-nothing block, so never included it in the compiled object. As soon as I assigned V a value, the code WAS included, so the size of the generated code for the loop changed, and somehow, that caused it to run correctly.
    Regarding the use of the package.record.column value above, we even copied the value to a local variable, and then used the local variable in the Exit When statement. Doing that made no difference.

  • I try to play rented movies, but get an error message 42110

    I try to play rented movies, but get an error message 42110. What do i do ?

    iTunes: Advanced iTunes Store troubleshooting - http://support.apple.com/kb/TS3297 > Specific Conditions and Alert Messages: (Mac OS X / Windows) - includes list of iTunes error codes

  • Meaning of: feature was simple feature call but got receiver instead of null

    I implemented my own XbaseInterpreter. I forked the context in my subclass and added some new values. Lets say one of the values has type X.
    When I call the evaluate method with my XBlockExpression and the forked context I get the exception
    "feature was simple feature call but got receiver instead of null. Receiver: <here the instance of X>
    What am I doing wrong?
    What does the exception message mean?

    Hi Sebastian,
    I understand the first part of your answer. In my case the Xbase interpreter tries to assign an object to a variable where the interpreter thinks the left side of the equation is void which leads to the given message "feature was simple feature..."
    But I do not understand how this can happen in my case.
    I have an XBlockExpression with this content:
    val x = 1
    return x == 1
    The error occurs for the variable declaration when the interpreter tries to assign the integer to the left side.
    What am I missing?
    Do I have to initialize the evaluation context?
    The strange thing is that if I start the interpreter by initializing it with the standalone setup within Eclipse (which is not recommended) I do not get the above mention exception at all ( I do get class cast exceptions because of including the standalone setup but the expression is interpreted correctly).
    What is the difference between the standalone setup and the "normal" Eclipse runimte for interpreting expressions?
    With regards,
    Udo

  • Simple struts example but it doesn't work

    Hello everybody,
    I'm new in struts technology and I wanted try a simple struts example, but it didn't work. Here are listings of code:
    *** struts-config .xml (is located in WEB-INF/) :
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="registerForm" type="app.RegisterForm"/>
    </form-beans>
    <action-mappings>
    <action path="/register"
    type="app.RegisterAction"
    name="registerForm">
    <forward name="success" path="/success.html"/>
    <forward name="failure" path="/failure.html"/>
    </action>
    </action-mappings>
    </struts-config>
    *** RegisterAction.java (located in WEB-INF/classes/app):
    package app;
    import org.apache.struts.action.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class RegisterAction extends Action {
         public ActionForward perform(ActionMapping mapping, ActionForm form,
                   HttpServletRequest req, HttpServletResponse res) {
              // b Cast the form to the RegisterForm
              RegisterForm rf = (RegisterForm) form;
              String username = rf.getUsername();
              String password1 = rf.getPassword1();
              String password2 = rf.getPassword2();
              // c Apply business logic
              if (password1.equals(password2)) {
                   return mapping.findForward("success");
              // E Return ActionForward for failure
              return mapping.findForward("failure");
    *** RegisterForm.java (located in WEB-INF/classes/app):
    package app;
    import org.apache.struts.action.*;
    public class RegisterForm extends ActionForm {
    protected String username;
    protected String password1;
    protected String password2;
    public String getUsername() {return this.username;};
    public String getPassword1() {return this.password1;};
    public String getPassword2() {return this.password2;};
    public void setUsername(String username) {this.username = username;};
    public void setPassword1(String password) {this.password1 = password;};
    public void setPassword2(String password) {this.password2 = password;};
    *** faulire.html ( located webapps/NAME_APPLICATION/ )
    <HTML>
    <HEAD>
    <TITLE>FAILURE</TITLE>
    </HEAD>
    <BODY>
    Registration failed!
    <P>try again?</P>
    </BODY>
    </HTML>
    *** success.html ( located webapps/NAME_APPLICATION/ )
    <HTML>
    <HEAD>
    <TITLE>SUCCESS</TITLE>
    </HEAD>
    <BODY>
    Registration succeeded!
    <P>try another?</P>
    </BODY>
    </HTML>
    *** register.jsp ( located webapps/NAME_APPLICATION/ )
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:form action="register.do">
    UserName:<html:text property="username"/><br>
    enter password:<html:password property="password1"/><br>
    re-enter password:<html:password property="password2"/><br>
    <html:submit value="Register"/>
    </html:form>
    *** web.xml (located in WEB-INF/)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>
         org.apache.struts.action.ActionServlet
         </servlet-class>
    <init-param>
    <param-name>application</param-name>
    <param-value>ApplicationResources</param-value>
    </init-param>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- Struts Tag Library Descriptors -->
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    </web-app>
    After start of NAME_APPLICATION it show register form (register.jsp) but when I fill out all information and submit those information it show empty window in internet browser and in url box is something like this:
    http://localhost:8084/StrutsTest/register.do;jsessionid=2304C0A9820E7FCC23106C16564D51A8
    where is a problem? Thank you

    Employing a descendent of the Action class that does not implement the perform() method while using the Struts 1.0 libraries. Struts 1.1 Action child classes started using execute() rather than perform(), but is backwards compatible and supports the perform() method. However, if you write an Action-descended class for Struts 1.1 with an execute() method and try to run it in Struts 1.0, you will get this "Document contained no data" error message in Netscape or a completely empty (no HTML whatsoever) page rendered in Microsoft Internet Explorer.
    Also check this URL http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html

  • My time machine 3 TB HD was encryption enabled and it took forever.  I tried reformattiing, it is online, but, get this Partition map repair failed while adjusting structures to fit current whole disk size.  Any comments appreciated.

    My time machine 3 TB HD was encryption enabled and it took forever.  I tried reformattiing, it is online, but, get this Partition map repair failed while adjusting structures to fit current whole disk size.  Any comments appreciated.

    This issue has been in discussion (actively) since last August here:
    https://discussions.apple.com/thread/4218970?start=0&tstart=0
    After months and months of new reports, it's pretty clear that this is an Apple Mountain Lion problem and one that Apple needs to address.  As one frsutrated user noted :
    >>There is no consistent solution for a user.  Apple has to supply it.  All you can do is submit a bug report to
    >> http://www.apple.com/feedback    
    Please, if you are encountering this problem you will save yourself a lot of wasted time and energey simple by joining me and others in asking Apple to fix this problem: Make a bug report.
    Thanks!

  • HTTP GET Probe Monitoring

    I am trying to monitor our web servers from our load balancer with an HTT probe  This probe keeps failing.  Its monitoring a Windows sharepoint server, and I can get to the test page with my credentials, but the Probe seemingly cant pull it.  Is there something in here I am doing wrong?  I have attached a screen shot of the probe for reference. I keep getting probe failed.  Ive tried a lot of different permutations of this probe config with no success.   Any help with anyone who has done this before would be awesome

    ACE-4710-DR/Admin# sh probe HTTP-GET  detail
     probe       : HTTP-GET
     type        : HTTP
     state       : ACTIVE
     description : Test for I-am-alive.html
       port      : 80      address     : 0.0.0.0         addr type  : -
       interval  : 15      pass intvl  : 60              pass count : 3
       fail count: 3       recv timeout: 10
       http method      : GET
       http url         : http://aspenintranet/PSC/Pages/I-am-alive.html
       conn termination : GRACEFUL
       expect offset    : 0         , open timeout     : 1
       regex cache-len  : 0
       expect regex     : -
       send data        : -
                    ------------------ probe results ------------------
       associations ip-address      port  porttype probes   failed   passed   health
       ------------ ---------------+-----+--------+--------+--------+--------+------
       rserver     : 10.22.5.100
                    10.22.5.100     80    --       2970     2970     0        FAILED
       Socket state        : CLOSED
       No. Passed states   : 0         No. Failed states : 1
       No. Probes skipped  : 0         Last status code  : 401
       No. Out of Sockets  : 0         No. Internal error: 0
       Last disconnect err : Received invalid status code
       Last probe time     : Fri May 23 11:33:29 2014
       Last fail time      : Wed May 21 10:04:45 2014
       Last active time    : Never

  • I do not use wireless, but get wireless errors, why?

    I do not use wireless, but get wireless errors, why?

    Hi Clarence,
    I'm using an i Mac O sx 10.6.8  Even though I'm using wired ethernet access, I can turn airport on and let it run while using the wired connection.  I suppose that condition may cause the errors you're getting.  Is it at all possible that you have your Airport wireless in your Mac Pro turned ON?

  • When plugged my samsung in USB as memory device no new device icon appears at desktop like it used to do in snow leopard. But USB prober recognizes the phone... Why and How?

    When plugged my samsung in USB as memory device no new device icon appears at desktop like it used to do in snow leopard. But USB prober recognizes the phone... Why and How?

    OK, I think you are trying to connect the printer wirelessly to your wireless router, right?
    I think that is the way to go, so let's do that:
    1. Restart the router by pulling its power cord momentarily.  Let it restart.
    2. On the front of the printer go to Setup > Wireless (or Netowrk, not sure) > Wireless Setup Wizard.  Run the Wizard to connect your printer to your router.
    3. After that, go to Control Panel > Devices & Printers and delete all instances of the printer.
    4. Finally re-add the printer with these instructions:
    1. Make sure the printer is turned on and connected to your network. Verify that you can access the printer's internal web page by browsing to its IP address before continuing. Get its IP from a Network Test printed from the front panel of the printer.
    2. Click >> Start >> Control panel >> Devices & Printers.
    3. Click the Add a printer
    4. Select Local printer
    5. Select Create a new port and select Standard TCP/IP Port and click Next button.
    6. Under Device type, select TCP/IP Device. Under Hostname or IP address, enter the printer's IP address. Click Next.
    7. Select Hewlett-Packard from the list of manufacturers and select and select your printer model. Click Next.
    If your printer model was not listed, then select Have Disk, browse the HP CD that came with your printer and select the first file that starts with hp and ends with inf. Click Open then OK. Select your printer model. Click Next.
    8. If you are asked, use the currently installed driver.
    9. It will ask for the Printer name -- enter a new name or use the existing one. This will be the name of the printer that you select from other applications.
    10. You may be asked to share the printer. Choose NO.
    11. The Print Test Page box appears. Go ahead and print it.
    12. Click Finish.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

Maybe you are looking for

  • DSO to Cube Delta Failure

    Hi All We appear to have a major problem. Yesterday the invoice delta from DSO to Cube failed. My colleage traced the problem to invalid characters in the PSA. However it had loaded successfully into the DSO (I dont know why cos it usually fails into

  • Multiple customers for same message type "invoic" and idoc type "invoic02"

    Dear Experts, I have SAP ALE process configured for single customer u2018Au2019 where I send invoic02 idoc (message type invoic) to the customer via PI server. Now I need to add one more customer u2018Bu2019 which require recepient determination. I a

  • How do I remove "ERROR: GETPLUS0.inf " when booting up?

    I have looked at a number of solutions for trying to get rid of this thing and none of them have worked so far. The concensus is that Adobe has used GETPLUS to package the latest Adobe Reader (8.1.something). GETPLUS continues to make changes to the

  • PS Elements 13 won't start whatsoever - Windows 7

    Hi! Just bought, downloaded & installed Photoshop Elements 13 64 bit to my Windows 7 64 bit machine. Install was reported to've been completed successfully. Serial Nr. entered etc. Restared computer after  install. Now, when clicking on the program i

  • [solved] and yet this question..why my rc.local doesn't work

    Hi, I would like to add some commands to the rc.local but I can't figure out why rc.multi is reading it but it doesn't have any effect. rc.local #!/bin/bash echo "LOCAL" /usr/bin/xset dpms 180 360 720 &> /dev/null /usr/bin/cpufreq-set -c 1 -f ondeman