Why Select inventory_item_id = '9297' but return both 9297 and 9296

Hello Guy. Please help me. I 'm not a programmer or dba ,but I sure that my query is correct.The result is very strange.
First I think my toad is error then I try this on sqlplus ,the result is same.
1 SELECT INVENTORY_ITEM_ID,ORGANIZATION_ID,TRANSACTION_ACTION_ID
2 FROM MTL_MATERIAL_TRANSACTIONS
3 WHERE INVENTORY_ITEM_ID = '6297'
4* AND ORGANIZATION_ID = '207'
SQL> /
INVENTORY_ITEM_ID ORGANIZATION_ID TRANSACTION_ACTION_ID
6296 109 1
6296 109 1
6296 109 1
6296 109 1
6296 109 27
6296 109 1
6297 108 2
6297 108 2
6297 108 1

user8899951 wrote:
Hello Guy. Please help me. I 'm not a programmer or dba ,but I sure that my query is correct.The result is very strange.
First I think my toad is error then I try this on sqlplus ,the result is same.
1 SELECT INVENTORY_ITEM_ID,ORGANIZATION_ID,TRANSACTION_ACTION_ID
2 FROM MTL_MATERIAL_TRANSACTIONS
3 WHERE INVENTORY_ITEM_ID = '6297'
4* AND ORGANIZATION_ID = '207'
SQL> /
INVENTORY_ITEM_ID ORGANIZATION_ID TRANSACTION_ACTION_ID
6296 109 1
6296 109 1
6296 109 1
6296 109 1
6296 109 27
6296 109 1
6297 108 2
6297 108 2
6297 108 1But you're not worried that the organization_id is not the one you asked for ?
It's very rare, but Oracle indexes can get corrupted in a way that leaves them out of synch with their tables.
Unless you suspect something subtle and devious is going on the simplest explanation is that you've hit a problem like this.
There is a command to check that a table and its indexes are consistent, but it locks the table while it's running.
Off the top of my head it's: 'analyze table XXX validate structure cascade;' but you ought to check the analyze command.
Before you lock the table, though, you might try running the query with sql_trace enabled to see if anything unusual appears in the trace file.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
+"I believe in evidence. I believe in observation, measurement, and reasoning, confirmed by independent observers. I'll believe anything, no matter how wild and ridiculous, if there is evidence for it. The wilder and more ridiculous something is, however, the firmer and more solid the evidence will have to be."+
Isaac Asimov                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Why cant my imessages sync across both iphone and ipad

    why cant my imessages sync across both iphone and ipad same with face time

    I looked into your question and believe I may have a solution for you.
    Your iMessages likely aren't syncing because of a bug in iOS 5. Syncing iMessages between iOS devices is supposed to happen automatically, but sometimes it does not.
    You could likely manually activate syncing by navigating to Setttings --> Messages --> Receive At --> Caller ID on both your iPad and iPhone and selecting your Apple ID.
    Hat Tip: OSXDaily

  • How to select only layers that are both, visible and not blocked in photoshop cc?

    I used to do it in photoshop CS6 without any configuration, but now I can select only "not blocked" or "visible" layers? Can't I select both?

    We will need to reformat your EXT, but it will then work on both Mac and Win
    Connect the drive to your Mac, open disk utility
    Go to the partiton tab and select '1' ... format should be ExFAT ... in options select MBR
    Format the drive
    It should now work on both OSs; report back

  • Why does my mail disappear on both iPad and iPhone4... only sometimes.  It's not in the trash so where does it go and why?

    Why do I lose mail from my iPhone4 and recently from my iPad2?  It happens infrequently, but when it does the messages completely disappear from my device(s); the messages are not in my trash. 

    OK, so I decided that maybe if I "sync" my iPod instead of just copying stuff to it at will, that maybe it would fix the problem.  I did a "restore", wiping out the contents.  I set up a "playlist", and put everything that I wanted on the iPod into the "playlist".   Then I "synced" the "playlist" onto the iPod.  Every song and album now had the proper album art.  I could live with this.   Then I added another album to the "playlist", and "synced".  The new album was now on the iPod with the correct artwork.  The albums that were already on the iPod now either had their appropriate artwork, no artwork, or the artwork from the other albums that were already on the iPod, with no rhyme or reason as to which was which.  AARGH.   I wiped it out and re-added the now-explanded "playlist" and "synced" again, and every album had the right cover.   I guess the only thing to do is completely replace the contents of the iPod any time I want to add or change anything, or forget about artwork.

  • 'select count(*) from x' returns 5460 rows and 'Select * from x' returns 0 rows

    As you can see in the next lines something is wrong in my Oracle (8.0.6 on Win NT 4.0 sp 6a) :
    Oracle8 Enterprise Edition Release 8.0.6.0.0 - Production
    With the Partitioning option
    PL/SQL Release 8.0.6.0.0 - Production
    SQLWKS> SELECT * FROM V_TERRA_TE;
    PERIOD_DATE PERIOD_TIME TERRARCV TERRASND TERCV TESND
    0 rows selected.
    SQLWKS> SELECT COUNT(*) FROM V_TERRA_TE;
    COUNT(*)
    5460
    1 row selected.
    V_TERRA_TE is a complex join of 5 Tables :
    CREATE OR REPLACE VIEW "ACTUATE".V_TERRA_TE AS Select to_date(to_char(p1.period_date,'YYYYMMDD'),'YYYYMMDD') "PERIOD_DATE",
    to_date(to_char(p1.period_time,'HH24:MI'),'HH24:MI') "PERIOD_TIME",
    to_number(p1.caudalrcv + ((p3.caudalrcv + p4.caudalrcv)*(confterrate.conexadslterra/confterrate.conexadsltotal))) "TERRARCV",
    to_number(p1.caudalsnd + ((p3.caudalsnd + p4.caudalsnd)*(confterrate.conexadslterra/confterrate.conexadsltotal))) "TERRASND",
    to_number((p2.caudalrcv * confterrate.pctinfonegocio) + ((p3.caudalrcv + p4.caudalrcv)*(confterrate.conexadslte/confterrate.conexadsltotal)))"TERCV",
    to_number((p2.caudalsnd * confterrate.pctinfonegocio) + ((p3.caudalsnd + p4.caudalsnd)*(confterrate.conexadslte/confterrate.conexadsltotal)))"TESND"
    from p1,p2,p3,p4,confterrate
    where (p1.period_date=p2.period_date)and
    (p1.period_date=p3.period_date)and
    (p1.period_date=p4.period_date)and
    (p1.period_time=p3.period_time)and
    (p1.period_time=p4.period_time)and
    (p1.period_time=p2.period_time)and
    to_char(p1.period_date,'MMYYYY')=to_char(confterrate.period_datetime,'MMYYYY');
    I think that some not reported error happens in the select * with some temporary space or similar but only the message '0 rows selected' is displayed (instead the real error)
    Could somebody help me ?
    Thanks in advance
    Francisco

    Forcing the Join/sort to be made on Disk (not on memory) the problem not happens. This demostrate that ORACLE has a VERY IMPORTANT BUG : It returns 0 rows wich is false.
    To force it to work on disk i use this parameters :
    alter session set sort_area_size=0
    alter session set hash_join_enabled=false
    Note : probably is not the best combination or use of parameters, but using it the query works as espected.

  • Returning both raise_application_error and return value from db function...

    Hi ,
    I use Oracle 10g and forms10g.
    I have written a db packaged function such as:
    function fnc_ipologismos_xiliometron(code_poleis_apo_var in varchar2,code_poleis_pros_var in varchar2)
       return number
       is
        apostasi_var ref_apostaseis_poleon.apostasi%type;
        onomasia_pol_apo_var ref_poleis.onomasia%type;
        onomasia_pol_pros_var ref_poleis.onomasia%type;
        begin
         begin
            select onomasia into onomasia_pol_apo_var
              from ref_poleis
              where code_poleis=code_poleis_apo_var;
         end;
         begin
            select onomasia into onomasia_pol_pros_var
              from ref_poleis
              where code_poleis=code_poleis_pros_var;
         end;
         begin
          select apostasi into apostasi_var
           from ref_apostaseis_poleon
           where code_poleis_apo=code_poleis_apo_var and code_poleis_pros=code_poleis_pros_var;
          exception
           when no_data_found
    then
    apostasi_var:=0;
    return apostasi_var;
    raise_application_error(-20015,'a message');
    --return apostasi_var;
    end;      return apostasi_var;
        end;The problem is that when the exception written above (in bold) returns 0 and exits the function.... whereas i want this value to be returned as well as the message in the raise_application_error....
    I call this function in WHEN-VALIDATE-ITEM of a block item... such as:
    if pkg_mod3_general.fnc_ipologismos_xiliometron
    (:mod3_entoli_metakinisis.code_poleis_apo_type_id,:mod3_entoli_metakinisis.code_poleis_type_id)=0
                  and :mod3_entoli_metakinisis.seq_code_meso_metakin_type_id=2
                  then
                    raise form_trigger_failure;
      end if;     When the above condition is true then no message is displayed and the cursor sticks to the item(as the raise_application_error in the db packaged function is after the exit of the function) and when the condition is false then no message is displayed again ... as expected.....
    How is it get the desired result.....- get the message from the raise_application_error and the function returns 0.....?????
    Many thanks,
    Simon

    you cannot RETURN and RAISE a function.
    RETURN ends the function immediately
    RAISE ends the program unit and jumps in the EXCEPTION-Handler, if it exists. Else the function ends

  • Have iPhone 5 set to back up to iCloud but need both iTunes and iCloud done...

    after going from 4s to iphone 5 and dragging and dropping like 15 playlists and about 4300 plus songs there must be a better way.
    I backup complete itunes folder, exporting all playlists as xml files i am learning as i went from 3 to 3GS to 4 to 4s and now to a 32gb white 5. while i learned on the 4s to 5 that icloud only does store bought music of which i have a lot but most is my own music ripped from my cd's at AAC 320 VBR.
    anyhow problem is i always did itunes manually never auto sync for at least 6-7 years as i did auto sync once on original ipod and learned never again after a wipeout.
    so i keep icloud on (under icloud on iphone) and itunes also is checked back up to icloud on"summary page" of iphone when it's plugged into itunes 10.7. i did try changing the settings back and forth but 
    and hit back up every other day or so using icloud manually in phone. i did the turn one off and other on once or twice but based on time etc. it seemed like it had to start a complete backup tpicloud agoin but checking icloud via broweser (IE 9). but do use itunes daily and manually hit the sync button and rite click my iphone in left column and choose backup daily. I see the backup in preferences so assume it's doing its thing. I use 4 pop3 accounts including terrible icloud mail which is so spotty. it started as @me in july and in august my kids signed up and got @icloud addresses. i see i have them also in email settings under icloud allowing me to send or recieve from either.
    none of that matters I just want to know if my dual backup scenario is actually working. apple says its one or the other from their own KB articles. BUT I THINK DIFFERENTLY JUST BY THE RESPONSE MANUALLY.
    I see the space taken up by the current iCloud backup I do. I also see the current back up I do manually through iTunes so does any other user here know if this works? I see my "notes" and any changes made today so at least iCloud is picking it up...now how to find if iTunes is doing the same.

    no one has doubled up on their backups so they don't lose earlier bought music or expensive audiobooks prior to iTunes 10.3?
    or at the least none of the knowledgable people here are familair with doing this?
    thank you I have huge library and don't want to manually redo it again for my own music. the store bought apps and music for the most part works from icloud but I defenitely want both options available to me.
    thank you

  • Why does Firefox 8 maximize to both monitors and ignore dual monitor software rules?

    I updated to Firefox 8.0. I have a Colorgraphic 2 (dual monitor) setup. When I maximize FF 8.0, it maximizes to both monitors. My other programs and previous versions of FF do not do this. My multi-screen software is set so maximizing only takes place in the monitor where the curser is, not both. it's also supposed to open in the monitor where the curser is, but doesn't because I can't close maximized because it's covering both monitors. It's like FF 8.0 ignores the multi-screen software rules. Some minor programs (printer, player programs, pop-ups) do this but no major ones until FF 8.0. Can this be fixed?

    Jumping from Firefox 2 to Firefox 8 was a very big jump, you skipped 7 versions, and your Profile may be partially b0rked. Try a new Profile and see how it works.
    http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows

  • Why is Mail so slow on both macbook and my imac?

    I'm not very competant in email technology. I started to use Mail when I got my iMac, but I find it is always very slow and I have  to routinely chase it up-same problem with my Macbook. I find  I end up using live.com.au cos it's always there for me.  I'm happy to accept it's pilot error, but tell me what i do wrong:)

    Do you mean Mail is slow at starting or at showing you that you've got new mail? Because if it's the latter then you can change the frequency it checks if you've got new mail. For me the default was 'every 5 minutes', so you can change it to like 'every minute' or something. Does that solve the problem maybe?

  • ITunes on iPad 2 - I select a song but wrong song playes and different icon displays

    I'm using an iPad 2 with IOS 5.  In iTunes, when I select a song it plays the next song in succession and displays a totally different icon than the one playing.  I have shuffle turned off and have also re-synced with my iMac.

    Same here... Same issue, except ive realised that it plays a song 11 songs up... I posted the same issue this morning

  • Why can't the 6700 support both ethernet and wireless simultaneously?

    I have two desktop computers connected to my wirless router/cable modem via ethernet and two laptops that connect via wireless.  Can I configure my new 6700 to accept both? 

    Hi,
    Any consumer product support either Ethernet or Wireless connection, the connections cannot be used simultanly..
    However connecting the pritner to your network (either by Ethernet or Wireless) will allow installing the printer on ANY pc connected to the same network, either by Wireless opr Ethernet connection..
    Once the printer connected to your network, simply install the CD on any of your computers...
    hope that clarifies,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Why can I receive but not send texts and emails unless the receipiant has an Apple product

    Where do I find my answers?

    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
     Cheers, Tom

  • Why does my iPhoto export in both NEF and jpg

    My requirement is this. I want to export two versions of my photos to disk - one, as JPEG for sharing with family/friends; and two, as RAW to retain my changes for subsequent edits.
    When I export an iPhoto Event to disk, I use File -> Export -> 'Current' (to preserve my edits), and it saves some photos as NEF and some as lowercase jpg. I studied a previous thread where iPhoto saved portrait files as jpg - although this is true for some of my photos, it is not entirely true. Within the same event, I have landscape mode photos which have been saved as jpg.
    I have checked my exports previous to Mavericks, and none of those exports have this problem. Is this a iPhoto / Mavericks bug like my previous post (where iPhoto would destroy some photos vertically). I'm using iPhoto 09 v8.1.2 (424) on mid 2009 MBP OSX 10.9.3.
    Thanks.

    When I export an iPhoto Event to disk, I use File -> Export -> 'Current' (to preserve my edits), and it saves some photos as NEF and some as lowercase jpg. I studied a previous thread where iPhoto saved portrait files as jpg - although this is true for some of my photos, it is not entirely true. Within the same event, I have landscape mode photos which have been saved as jpg.
    If you export from iPhoto with "Kind > Current", it will export as a JPEG, if you have done any adjustments or modifications at all. The current version will be exported as a  JPEG. If the original has not been touched at all, however, exporting as  "Kind > Current" will export the original RAW file.
    If you want to be sure to export as a JPEG for sharing with your family, use "File > Export , Kind > JPEG, Full Size, to be on the safe side.

  • ADF web select one choice list return value

    hi
    how can i make a choice list that displays a value but return another value
    and then use it as a parameter in a method for a button
    my problem is how to return another value to the button
    thanks

    Hi,
    After creating the selectOneChoice based on the steps you followed, you will need to follow up with the steps below.
    1) Open up your Page Definition file. In the Structure panel, right click on bindings --> Insert inside bindings --> Generic bindings --> attributeValues.
    2) Under Data Source, select your iterator value used to bind the selectOneChoice component. The attribute should be your value ID (example: productId) that you want to be returned by selecting the selectOneChoice component.
    In the backing bean, you get the actual value of the selected item in the list in step #2 by resolving the expression (example) #{bindings.productId.inputValue}.
    Regards,
    Chan Kelwin

  • My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem.

    My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem. Iphone4s, 32gigs, IOS 7.1.2
    I don't know why it stopped working but it happened a month or two ago but the option on this phone that's usually all the way to the left when you select your device but now its not and I don't know what caused it. ive already tried troubleshooting my problem but have found no help.

    Hello Salmomma,
    Thank you for the details of the issue you are experiencing when trying to connect your iPhone to your Mac.  I recommend following the steps in the tutorial below for an issue like this:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    Additionally, you can delete music directly from the iPhone by swiping the song:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Pictures

    When trying to download pictures I get an error message. The Ipod "bill's ipod" cannot be updated. The disk could not be read from or written to. Am i doing something wrong or is there somethig wrong with my ipod?

  • Error message when adding video to premiere pro, please help!

    Hi there, Every time I try and add a video to premiere pro I get an error message "There was an error decompressing audio or video." I made the video in After effects and it plays just fine but I wanted to add sound to it in premiere pro. The file is

  • How to add entries a jsp file during a Source view

    hi all, im currently extending the tags present on BEA. im creating my own custom tag. when i tried to drag and drop it on the current source view of the jsp file.. is it possible for me to check the current source code of the jsp file first before p

  • Sub cotracting

    Hi, In Sub cotracting., If we give assembly to Split?

  • Data invalid error when installing C6388 printer on ethernet lan

    Hello Sir Hello Sir I am trying to install HP Photosmart C6388 all in one, in my office on the local area network with no gateway but manually configured IP. While installing the software for lan the software detects the printer with the IP but after