Really Really Weird Problem

Hi All,
I have the following query:
SELECT *
FROM
fin_payment,
s1_name_and_address s1_name_and_address_b,
s1_currency
WHERE (fin_payment.internal_flag = 'N' or fin_payment.internal_flag is null )
AND fin_payment.bank_id = s1_name_and_address_b.name_and_address_id
AND fin_payment.currency_code = s1_currency.currency_code
AND (('P' = 'C' and fin_payment.check_reference is not null )
OR
('P' = 'P' and fin_payment.advice_nbr is not null )
AND fin_payment.financial_source = 'A/P'
AND fin_payment.payment_type = 'L'
AND ('P' is null or 'P' = 'A' );
It shouldn't return any rows because of that condition which is bold: ('P' is null or 'P' = 'A' ), because it's always false. The problem is if I remove that condition and paste it in the middle of where cluse like this:
SELECT
NULL,
NULL,
fin_payment.bank_id,
s1_name_and_address_b.full_name,
fin_payment.check_reference,
fin_payment.payment_date,
fin_payment.bank_amount,
fin_payment.currency_code,
s1_currency.description,
fin_payment.payment_nbr,
fin_payment.payment_type,
fin_payment.invoice_nbr,
fin_payment.ap_check_reference_nbr ,
fin_payment.reconciliation_status ,
fin_payment.replacement_payment_nbr ,
fin_payment.advice_nbr
FROM
fin_payment,
s1_name_and_address s1_name_and_address_b,
s1_currency
WHERE (fin_payment.internal_flag = 'N' or fin_payment.internal_flag is null )
AND fin_payment.bank_id = s1_name_and_address_b.name_and_address_id
AND fin_payment.currency_code = s1_currency.currency_code
AND (('P' = 'C' and fin_payment.check_reference is not null )
OR
('P' = 'P' and fin_payment.advice_nbr is not null )
AND ('P' is null or 'P' = 'A' )
AND fin_payment.financial_source = 'A/P'
AND fin_payment.payment_type = 'L'
it will return some rows which is wrong. I don't know how it generate those rows. Because if you remove that condition, I mean ('P' is null or 'P' = 'A' ), it doesn't retrieve any rows.
And another thing is, it just happen in Oracle 9.0.1 not in other versions like 8.0.5, 8.1.5,8.1.6...
any help is greatly appreciated,
Arash

No Justin. For making the query easier I wrote that condition (P is null or ....) like that. and s1_name_and_address is an alias.
I thought the data or tabel is corrupted, so I created a new table as
"create table test select * from fin_payment"
no for the same query, I get two diference result on table Test & fin_payment !?
I really don't have any idea !

Similar Messages

  • Really weird problem -- won't download mail from one sender

    I'm having a really weird problem. Apple Mail won't retrieve mail from my Gmail account via POP3 from one sender only. All other mail is downloaded normally, except from a particular sender. What could be causing this? Thanks.

    I am trying to remember and research something about the Junk filter and Gmail accounts. Have you checked in your Junk mailbox, if Junk in enabled and there is a separate Junk mailbox?
    If you click on my name to the left, and look in the bio line of the resulting Profile, you will find an email address you can reach me with. If you email me at that address, I will send you a Gmail address that your sender can test sending a message to me at my Gmail account.
    Ernie

  • MacBook Pro - Weird problem. Really weird!

    My MacBook Pro, a 15-inch, Early 2011, has been driving me crazy the past few months. Here is the problem and as crazy and weird as it may seem, believe me, it's 100% REAL! Most of the time it boots just fine and my wireless card is working fine. If I'm working on a desk and the laptop is not going to be moved at all, everything goes well for as long as I want. If I try to pick up the **** thing or move it, even for an inch, **** brakes up! No wireless. Trying to deactivate it and then activate it again only makes things worse. Then the wireless sign becomes gray with a big X in the middle which means no wireless card is installed . I thought it was the card itself, so I bought a brand new one. No luck, still the same issue. I'm pretty sure it's a hardware issue but I can't figure out what. I've checked the antenna cables coming from the card all the way to the screen but nothing seemed out of order.
    It's really annoying. I have a laptop and I have to treat it as a desktop. Any help would be really, really appreciated.

    Hi,
    Try a startup in Safe Mode. If that does not fix it, perhaps you should take it in to the Apple store, as it is still under warranty. Here is the link for the Genius Bar.

  • 3 Weird Problems! (really slow syncing, explorer crashing & skipping songs)

    Ok guys, i have 3 weird problems with my iTunes 7.6. also had these problems with older versions too. I'm using iPod Touch 16GB edition. I'm using windows vista and have 2GB RAM and Core 2 Duo 2.2GHZ CPU.
    1: First problem is that every 9 out of 10 times that i open iTunes, my windows explorer crashes and restarts, but iTunes doesn't open. after the windows explorer has successfully restarted, then i try to open iTunes again & it works fine.
    2: I have USB 2.0 connections on my laptop. iTunes used to copy music to my iPod fine before, but recently it has been copying really slow. It's not just the music, but also the videos. Before it would take only about 3 - 5 seconds to transfer one song, now it may take as long as 20 - 30 secs. And yes all the songs are MP3 formats at 128 - 256kbps and 4mb - 5mb in size. For example i'm copying 2 videos right now to iTouch (682MB & 672MB) for the last one & a half hour and it's only copied about 75% now. Videos were already converted to MP4 format before being imported to iTunes.
    3: I have lots of MP3 discourses which have very low bitrate (16kbps mono, 10MB - 12MB), and my iTouch skips them completely after about 10 secs and starts playing next file, but if i quickly forward to half of the file, they seem to run fine from there, but may skip near the end or after another 5 minutes of playback. it's all random. but they run fine on my pc. this problem is only with low bitrate files. Is there any fix for it without converting the file to higher bitrate? because these discourses are hours long and it will take a lot of space.
    thanks guys, any help would be appreciated.

    Hi Definitely is not the amount of data you hold ( i have 1TB of movies and video songs). My advice do a full restore to the ATV and start fresh with the computer. It is only what I will do.

  • Really weird problem with Usage Tracking!

    Hi guys
    We are running OBIEE 11.1.1.6.5 on Exalytics and allmost all is fine and dandy. We have though one weird problem. When we first enabled usage tracking, we sudddenly got some errors on some of our dashboards, saying that we didn't have the privilegies to create temporary tables. Allright we got our user (which is a shared user) the privilegies to create temporary tables, and the reports with the problems started working again! Awesome! But low and behold - then Usage Tracking stopped working, not a single mentioning in the logfiles about it. Maybe an error or, the acknowledgement that Usage Tracking has started, which is the normal.
    So basically we are running without Usage Tracking because the reports that gives us the problems are deemed more important... which they might be, but thats different story...
    Any ideas to what is going on here? We have collected Usage Tracking data, while the reports were broke, so im quite confident that the setup is correct. But why would it stop, when giving "create table" privilege to our shared user?
    Best regards, Jacob

    What is the setting for UsageTrackingDirectInsert?
    Have you tried chaging the output to file instead of database?
    Please see:
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/usage_track.htm#i1017237
    Section 9.3, "Setting Up a Log File to Collect Information for Usage Tracking"
    Michael
    PS:
    Hi Christian! :)

  • Satellite 5100 - Question about dead pixels. Is it really dead pixel problem?

    Hi,
    I've got Satellite 5100-603. There have been some dead pixels on display. I don't know is it really dead pixel problem or not because the black area seems to be behind the screen. When i move left and right sides, the black area moves left and right sides too (as if the black area is behind the screen pixels)! And i can tell that all pixels are working OK when i look from the right and left sides of the display (because the pixels that seems to be dead, changes at different looking angles).
    Are there really dead pixels or is it some other problem?
    Is there anything that i can do about it?
    For info, i am using my laptop for 2,5 years and there is no warranty of course...
    Thanks for any help..

    Hi
    to answer your question I will try to make a simple description the layout of the TFT display.
    I'll go from the front to the back.
    In the front is a tough plexi-glass like layer to protect the screen from harm and the user from glass in case the TFT should break. It is also prepared in a way that will soften the reflections from behind (that does not go for the newer SuperBright screens).
    Behind that is the 2 layers (at least 1 of glass, probably both) that hold the actual matrix of the pixels.
    Behind theese 2 are a very complex set of layers that take care of the backlight. It consists of various numbers of films that should spread the light from the singel FL-tube evenly across the complete screen. Not a easy task if you ask me!
    Sometimes, physical stress or dirt can make 'blotches' appear on the screen and they are in fact either dirt on the backmost layer or marks on the same. If there is dirt or marks on it, that will 'shadow' the light that comes out from it and show dark spots on the screen. They are quite different from defective pixels.
    The defective pixels do not change with the angle of view for example.
    I think you cannot do anything about this except changing screen. The construction is very complex and sensetive.
    BR Tom

  • Heey guys whats up listen i have a problem i lost my iphone and it has all my pic's and some information that i really really need it what should i do .... is there any way that i can get back the i phone ??? please help me

    heey guys whats up listen i have a problem i lost my iphone and it has all my pic's and some information that i really really need it what should i do .... is there any way that i can get back the i phone ??? please help me

    You can look for it.
    If you find it, you will have it back.
    If you had find my iphone activated on the iphone BEFORE it was lost, then you may be able to track it.

  • Really really annoying problem with slooooow Adress Book

    I have a really, really annoying problem with Address Book.
    Ever since I connected it with the MobileMe service it has this problem, and I just cant get rid of it. I have tried logging out and back into the MobileMe service, resetting the sync history etc., but to no avail.
    Each time I open the application it freezes for about 5 to 10 seconts, then that blooming annoying, Windows reminiscent, rotating rainbow circle appears for about a minute at a time. Then it goes away and the application works..........that is until try something demanding like adding a new group or changing a group name, then it starts over. It is making the Address Book almost unusable and very un-Mac-like.
    Can someone please help???

    Try deleting this plist:
    (yourUserName)/Library/Preferences/com.apple.AddressBook.plist
    As well, the general approach at this time is to ask if you've checked for any problematic fonts (all languages) with Apple's Font Book (look in the Applications folder). Find and remove all duplicates also.
    Start there to be sure all fonts that are in play come out with a clean bill of health.
    Also, don't hesisate to perform wholesale deletion of old and/or little used fonts - be skeptical of anything that has come from Office 2008, including those related to an Equation Editor installation.
    By all means be sure your 3rd party apps are Snow Leopard compatibl

  • I have a really really big problem to my iphone icloud please help me i could send you my birth certificate for confirmation that im the real user please help me

         i have a really really big problem to my iphone icloud please help me i could send you my birth certificate for confirmation that im the real user please help me apple.corp and please tell me if this is not possible to be done it almost a month that i cant use my iphone.
         thank you for those who read this
    <Email Edited by Host>

    Remove your email address.  This is a public website, and you are addressing thousands of strangers.
    After doing that, tell us what your issue actually is.  This is a user-to-user technical forum.  You are not addressing Apple here.

  • *fixed* Really tiny fonts problem

    Hi there, i've been a happy archlinux user for quite some time but recently I have developed a problem that I can't find a solution to.
    A few weeks ago I got myself a samsung HDTV to use as a monitor and now the fonts in my system behave really strangely. In gnome everything is fine, but GDM, FVWM-Crystal and XFCE4 have really, really tiny fonts. The fonts are so small that I can't even read them.
    Can anyone suggest a fix? I tried "startx --dpi 100" but nothing changed.....
    Thanks in advance!
    Last edited by scissors (2007-08-04 18:43:34)

    I am not a fonts guru but would this help http://wiki.archlinux.org/index.php/Xor … Size.2FDPI

  • Apple Banned me, because of a very weird problem with my "Factory Unlocked"

    Hi Everybody! Im having a very weird problem with my unlocked iphone 4.
    First of all, i would like to apologize because of my english, is not very good. My native language is Spanish.
    Well.. Im from Mexico, and here we can buy the iphone Unlocked on the Apple Online Store.
    Here's my problem. Apple has exchanged my iphone 3 times.
    I returned the iphone the first time because the screen was totally yellowish, other than that everything was working great!, that was by the end of September.
    On October 20th, i recieved my second iphone, and then a bigger problem started .
    Before i continue, let me give you this information: here in Mexico we have basically 3 cell phone companies
    1.- Telcel
    2.- Movistar
    3.- Unefon
    OK, now on october 20th, i recieved my second iphone, and then procced to activate via itunes using my UNEFON sim card (microsim).
    And every time i tried to activate it, only got this message onscreen:
    http://i148.photobucket.com/albums/s2/jorgelomeli/Screenshot2010-10-29at24915PM. png
    I though something was wrong with my brand new factory unlocked iphone 4.
    I have 4 more simcards from my brothers (they all had iphone 4 too)
    I tried telcel sim card, and i could activate my iphone. Then i insterted the Movistar microsim, and it worked too!! But then when i put the Unefon sim, the itunes logo inmediatly appears on the screen asking to activate on itunes, and when i tried that, the only response i got was the image above saying " The Simcard inserted on this iphone does not appear to be supported"
    Weird thing here is, that, when i put my Unefon sim card on my brothers iphone 4, it worked great! on all of them, internet 3g, phone, wireless , evrything!
    I called apple support, and they exchange the iphone for another one.
    I recieved the third iphone on October 29. Last friday. and guess what? SAME PROBLEM! different serial number, same week production (week 42) but exactly the same message on itunes.
    Very, very frustrated, i called apple again, and after 1 hour with thechnical support, they told me " We are sorry, but we can only offer you, your money back, NO MORE EXCHANGES FOR YOU"
    I said why?... i dont want my money back! i want an UNLOCKED iphone!, but they refuse to give me another iphone.
    When i asked techincal support, why my unefon sim card worked great on all three of my brothers iphone but not on mine, he just told me, "I really dont know, i guess they just got lucky" ****, this answer put all my trust i had on apple products for years, right on the garbage.
    Since they refused to give me another iphone, i accepted my money back, and inmediatly after i finished the call, i asked my brother to buy me one more time an iphone 4 using his name, and his credit card. Now i have to wait until November 8-12 to recieve my new iphone, hoping this time i get a REAL UNLOCKED iphone, and not a partially unlocked iphone.
    btw. i even went to Unefon costumer service and bought a new prepiad line, with a new microsim, just to be 100% sure that this problem is not because of the sim. And again didnt worked on my iphone, but it worked on any of my brothers iphone4.
    Serial numbers of the 3 iphones:
    79039C0U* (this one worked great with Unefon, only problem was yellow screen)
    85042GR4*
    81042FJB*
    What do you suggest me? any info would be really aprecciated
    FYI i also restore 4 times the last iphone and nothing seemed to work, i use 3 different computers, Macbook Pro, iMac, and an Hp with Windows 7, and the same message on all three computers.
    Wierd thing also, one of my brothers bougth an iphone 4 this last week too, but he bought the 16Gb not the 32Gb. His iphone production week is 42 also! and when i put my Unefon sim in his iphone works great!
    I dont know what else i can do, I just need to have faith that my new iphone coming this november will be real unlocked, but what if i'll recieve an iphone and then the same problem?? time for android? just kidding really guys, what can i do? anyone with similar problem like me? i dont wanna use Telcel or Movistar, i wanna use Unefon, and thats why i bought an Unlocked iphone
    btw: jailbreak is not a solution for me, because i always like to use legal software on all my apple products, and because of the warranty.

    According to http://support.apple.com/kb/HT1937, there are two official carriers in Mexico (Movistar and Telcel) and neither carrier offers an unlocked phone.

  • Weird problems with CSS being applied to JSF pages

    I have this really weird problem with my CSS rules being applied to my JSF pages. My CSS rules don't get applied unless one of the following two things happen:
    - A page is reloaded (by redirecting to itself, or if there were validation errors)
    - The previous page in the history had the same relative reference to the same CSS file.
    If a page is newly loaded, and the previous page did not have that same CSS reference, the CSS styles will not show up. Also, if the above is true, and the page is reloaded by JSF, the CSS styles show up.
    Now, my problem could be solved if I put all JSP files in the same level, but the display of the first page would still be without the CSS style applied.
    Is this known behaviour? And if it is, does it have anything to do do with the way JSF handles URLs (always one level back)? Help and input is kindly appreciated!

    Dude,
    I tried the same
    <link rel="stylesheet" href="<h:outputText value="#{facesContext.externalContext.requestContextPath}"/pages/css/default.css" />
    and I got the following Jasper exception.... pointers plz ??
    =============================================================
    2005-08-24 14:18:55,937 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[mydemo].[FacesServlet] - Servlet.service() for servlet FacesServlet threw exception
    org.apache.jasper.JasperException: /myproj/eventCrit.jsp(8,78) Unterminated <h:outputText tag
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:130)
         at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1049)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1793)
         at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
         at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1564)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    =========================================================

  • Weird problems with 2007 15" MBP after installing new HD, any solution?

    Folks-
    For a couple of months my machine has been really weird.
    (1) Safari will not work. Firefox does, other internet apps do, but no Safari.
    (2) everything is ever slower. Spinning beachballs constantly.
    (3) won't remember home wifi network. It remembers the pw, but must select the network
    (4) won't sleep when scheduled, only when closed or immediately commanded to sleep.
    I would say that these weird problems surfaced after I installed a new optical drive, after I upgraded to 10.7, etc, except that the main problems are absent when I start up from the old HD externally mounted (the refusal to sleep when scheduled is also present statring from the old HD).
    This could indicate some wierd driver thing with the new drive, or a system software event I didn't notice or one of these "malware" things, right? Maybe?
    Any ideas for how to troubleshoot this would just rock.
    Thanks!

    Since you have your old hard drive here's a suggestion:
    Step One: Boot from the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive then click on the downward pointing arrow button.
    Step Two: New Hard Drive Preparation
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your new internal hard drive (entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID  then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Step Three: Clone the old drive to the new drive
    1. Open Disk Utility from the Utilities folder.
    2. Select the destination volume from the left side list.
    3. Click on the Restore tab in the DU main window.
    4. Check the box labeled Erase destination.
    5. Select the destination volume from the left side list and drag it to the Destination entry field.
    6. Select the source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Four: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • Weird problem: apple-F doesn't work in Finder anymore!

    I've just noticed 2 really weird problems. When in Finder, hitting apple-F (to "Find") doesn't work - I see the File menu blink for a second but the window to search for files never comes up. Also (and perhaps related?), since the latest set of Apple upgrades, when I run iTunes, it doesn't see my library. The newest version runs, but never brings up its main window. The older version does bring out its window but my music doesn't appear there. What the heck is going on?!? Anyone have any suggestions? Thanks,
    Mike

    Well, first, the likely fix for your Command-F problem (and other problems you've probably been lucky enough not to stumble upon just yet) is to fix permissions. But you'll probably find you can't do that in the first place until you do the main fix discussed in that large thread.
    Join the crew.
    owen

  • Optical out weird problem

    Hi, i've a really weird problem on my mbp audio out. Apparently the optical out seems to go in "sleep" mode in less than a second of inactivity, turning off the speakers which takes like a second to turn on.
    The result is that any short, silent-preceeded sound is completely not played.
    The behaviour is also described in this thread.
    http://forums.macrumors.com/showthread.php?t=699686

    I am also noticing this problem. I have my iMac connected to an Apogee Mini-DAC via optical TOSLINK. I thought I had a bad cable, so I bought a new one, but it's still losing its connection. Now I can definitely say it's the Mac and not the DAC because I will unplug the cable from the Mini-DAC but leave it connected to the Mac. If I play something in iTunes, the red light shines through the cable, but if I stop the song, after a few seconds the light goes out. So, this is not limited to MBP. I have a suspicion that this is a "feature" in order to cut down on energy use, but it sure is annoying.

  • Weird Problem in LiveCycle

    Hello All ,
    I am facing a weird problem in LiveCycle.In a form I did some script changes , saved it , and tested the form,it was ok. But After closing the form if I again reopens the form to do some script changes I am not able to find the script in any of the events. But then I tested the form , it worked perfectly. But if it's working then where are the scripts ?Has anybody faced this problem before ?
    Thanks,
    Bibhu.

    That's odd. We've identified a bug in 9.0, which causes LC Designer to arbitrarily wipe scripts. It usually happens after a few hours of intensive form constructing. A restart of LC Designer solves the problem temporarily. Other than that the bug is really hard to reproduce. We've discovered that if you launch Acrobat Pro before LC Designer (so that PDF Previews are viewed in Pro instead of Reader), the bug goes away.
    A guess would be that it is related to the way Designer rewrites the xdp (xml) tree, mixing nodes together. At least it's a viable conclusion considering Designer deletes the wrong node when deleting meta data (Form Properties->Variables->Minus symbol). There are also occasions on which, if you change the script of default buttons (the ones having tags like <?templateDesigner isPrintObject true?>), Designer wipes the entire script.

Maybe you are looking for