Update no where  actually works

Hi,
I just came across this update with no where clause and wondered why it actually works (And when it won't work)
update t1 set y = (select y from t2 where x = t1.x);Here's an example to run:
SQL> select *from v$version
BANNER                                                         
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production                         
CORE     10.2.0.4.0     Production                                     
TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - Production                         
5 rows selected.
SQL> create table t1 (x number not null, y number null)
Table created.
SQL> insert into t1 (x,y) values (1,null)
1 row created.
SQL> insert into t1 (x,y) values (2,null)
1 row created.
SQL> insert into t1 (x,y) values (3,null)
1 row created.
SQL> insert into t1 (x,y) values (4,null)
1 row created.
SQL> create table t2 as select x, 2*rownum y from t1 where x < 4
Table created.
SQL> select * from t1
         X          Y
         1          
         2          
         3          
         4          
4 rows selected.
SQL> select * from t2
         X          Y
         1          2
         2          4
         3          6
3 rows selected.
SQL> update t1 set y = (select y from t2 where x = t1.x)
4 rows updated.
SQL> commit
Commit complete.
SQL> select * from t1
         X          Y
         1          2
         2          4
         3          6
         4          
4 rows selected.Regards
Peter

I have modified your test case. Put 0 instead of null in T1.
SQL> create table t1 (x number not null, y number null);
Table created.
SQL> insert into t1 (x,y) values (1,0);
1 row created.
SQL> insert into t1 (x,y) values (2,0);
1 row created.
SQL> insert into t1 (x,y) values (3,0);
1 row created.
SQL> insert into t1 (x,y) values (4,0);
1 row created.
SQL> select * from t1;
         X          Y
         1          0
         2          0
         3          0
         4          0
SQL> create table t2 as select x, 2*rownum y from t1 where x < 4;
Table created.
SQL> select * from t2;
         X          Y
         1          2
         2          4
         3          6
SQL> update t1 set y = (select y from t2 where x = t1.x);
4 rows updated.
SQL> commit;
Commit complete.
SQL> select * from t1;
         X          Y
         1          2
         2          4
         3          6
         4Now you can easily notice that your update has modified all the rows in t1. And the in the row with X=4 the Y value is set as null as no match was found.
To avoid this situation you need to use a WHERE clause in your update to update only the matching records.
SQL> update t1 set y = 0
  2  /
4 rows updated.
SQL> select * from t1
  2  /
         X          Y
         1          0
         2          0
         3          0
         4          0
SQL> update t1 set y = (select y from t2 where x = t1.x)
  2   where exists (select y from t2 where x = t1.x)
  3  /
3 rows updated.
SQL> select * from t1
  2  /
         X          Y
         1          2
         2          4
         3          6
         4          0Now you can see for the row where X=4 the Y value is un touched.
Thanks,
Karthick.

Similar Messages

  • MS Project Professional 2013 AppCrash - Updating Actual Work - 0xc0000005

    Hi All,
    We are experiencing a MS Project Pro 2013 appcrash with the following event log:
    Faulting application name: WINPROJ.EXE, version: 15.0.4551.1007, time stamp: 0x52714aed
    Faulting module name: WINPROJ.EXE, version: 15.0.4551.1007, time stamp: 0x52714aed
    Exception code: 0xc0000005
    Fault offset: 0x0000000000446774
    Faulting process id: 0x1c08
    Faulting application start time: 0x01cf2b7cddb57f07
    Faulting application path: C:\Program Files\Microsoft Office\Office15\WINPROJ.EXE
    Faulting module path: C:\Program Files\Microsoft Office\Office15\WINPROJ.EXE
    Report Id: 834a49f7-9770-11e3-abb0-3c970e6a0fc0
    We are connected to a vendor hosted Project Server 13 environment.
    Steps to reproduce:
    We open any project from the server
    Split the view to gantt and resource sheet
    Update a task actual work
    Navigate to another task
    AppCrash occurs
    Project Pro 2013 32bit install on 64bit win7, along side either office 2010 32bit or office 2013 64 bit.
    Any assistance would be appreciated.
    Cheers, Joel

    Do you have a chance to save the project file onto local machine, then test whether it would crash again after repeat the steps. If it's a server performance or networking issue, this should help to narrow down it.
    On the Project client site, you may disable all of add-ins to avoid their interfered.
    Tony Chen
    TechNet Community Support

  • HT5247 Where can I download a Java Runtime Environment that actually works on OS 10.6.8?

    Last week there was this security alert urging Apple users to get rid of a Java application. Since then I have issues accessing some of my regular websites. I need Java Runtime Environment for it, but cannot find it anywhere on the Internet. Where can I find Java Runtime Environment that actually works on Apple Mac OS 10.6.8?

    Run the installer.
    Then you can drag the various versions of Java into whatever order you prefer, or uncheck any you don't want used at all.
    As for your JRE question above, the last Apple Java update disables Java Applets and Webstart Applications by default to prevent the Flashback exploit from working.  There should be a checkbox to enable that in the Java Preferences application.  It's under the general tab in 10.7, but I haven't used 10.6 in so long I don't remember if it should be there or somewhere else.  It doesn't seem to be there in your screenshot...
    Of course, I'm assuming the "things you could do before" involved Java applets on the internet.  I don't recommend re-enabling this functionality, by the way.  However, it is your risk and your choice.
    Java application bundles and anything run from an IDE or the command line should still sork as expected.

  • [svn] 1317: Updates to get flex working with the Vector stuff.

    Revision: 1317
    Author: [email protected]
    Date: 2008-04-20 12:12:54 -0700 (Sun, 20 Apr 2008)
    Log Message:
    Updates to get flex working with the Vector stuff. Had to add support for the new name type, and new applytype opcode to the Optimizer/Merger that flex uses. Also had to slightly change how the instantiated vector classes find their declared methods. Previously they were copied into the new class, but now they just point to the original vector class.
    Modified Paths:
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/ConstantPool.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Decoder.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Encoder.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/OpcodeVisitor.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Opcodes.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Printer.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Scanner.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/abc/Visitor.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConstantEvaluator.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/FlowAnalyzer.java
    flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ReferenceValue.java

    despite the workaround, it doesn't fix the real problem. It shouldn't be a huge deal for adobe to add support for multiple svn versions. Dreamweaver is the first tool i've used that works with svn that doesn't support several types of svn meta data. If they're going to claim that Dreamweaver supports svn is should actually support svn, the current version, not a version several years old. This should have been among the first patches released, or at least after snow leopard came out (and packaged with it the current version of svn).
    does anyone know if the code that handles meta data formatting is something that is human readable, or where it might be, or is it in compiled code.
    i signed up for the forums, for the sole purpose of being able to vent about this very frustrating and disappointing situation.

  • App store, Safari, software updates, icloud, do not work in Mavericks 10.9 using a proxy server

    App store, Safari, software updates, icloud, do not work in Mavericks 10.9. these problems are interrelated I am sure. Apple apps were working fine in 10.8.5 I could do software updates through a proxy server using password authentication. I reinstalled a new system 10.9 on another partition and it won't let me use Safari or update software using a proxy server. Firefox works fine (I am using it to post). I am very disappointed that this wasn not fully tested BEFORE releasing Mavericks. Any solutions would be greatly appreciated.

    I had this problem myself.
    Checked the system log with Console, and I found the entry:-
    Nov 11 11:16:41 teds-new-mac.ad.mycompany.co.uk ocspd[537]: Authentication challenge received for "10.203.39.212:8080", unable to obtain proxy server credential from System keychain.
    For some unknown reason, Mavericks seems to be looking in the System keychain, when these credentials are actually held in the Login keychain.
    So, I tried "Copy & Paste"  - copying the https user name & password from the Login keychain and pasting into the System keychain, which worked but it's not quite as straightforward as I initially thought.
    Pasting into the System Keychain was, I found a not-very-intuitive process:
    Having opened your Login Keychain, click once on the item to be copied and when it's highlighted, select "Copy" from the Edit menu or, of course, cmd+c.
    Select the System Keychain:- DO NOT CLICK THE PADLOCK IN THE TOP LEFT TO UNLOCK IT.
    From the Edit menu, select "Paste" or cmd+v.
    You will then get a dialogue box,, enter your administrator's password and select "Modify Keychain" or just hit return, as it's the default entry.
    I found a restart was in order before it recognised everything and would accept https pages without alert boxes, but YMMV.
    Funnily enough - and this is where it seems counter-intuitive, if you do click on the padlock and unlock the System Keychain, "Paste" is greyed out in the Edit menu and cmd+v has no effect.
    Exactly the opposite to what I'd expect..

  • Does commit_option_B actually work in SP2

    I am not sure if commit_option_B actually works in SP2. I specified it in
    ias_ejb_jar.xml <pool-manager> section as COMMIT_OPTION_B and based on my
    trace log, it does not seem to work. For a method I specifiy
    <trans-attribute> as NotSupported, it still call ejbLoad very time I envoke
    the method. Can I use kregedit to verify that the commit option is actually
    set ?
    Thanks for your help.
    Xiaolong Hao

    Hi,
    I don't think even you do commit work it makes much difference and also Commit work also we can eliminate in the code.one more option is selecting the data from table to check whether it is updated or not.
    IF WA_ZMM_GATE_ENTRY-GR_NUMBER IS INITIAL.
          WA_ZMM_GATE_ENTRY-REFERENCE = GS_EXDATA_HEADER-REFERENCE.
          WA_ZMM_GATE_ENTRY-REFWERKS  = GS_EXDATA_HEADER-WERKS.
          WA_ZMM_GATE_ENTRY-GR_NUMBER = IS_MKPF-MBLNR.
         WA_ZMM_GATE_ENTRY-GR_YEAR   = IS_MKPF-MJAHR.
         MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the Z-table
      IF sy-subrc eq 0.
      do.
    select gr_number from ZMM_GATE_ENTRY where reference = GS_EXDATA_HEADER-REFERENCE.
    if sy-subrc eq 0 and if gr_number is not initial. (record Found)-> means updated.
    exit.
    else.
    MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY.
    endif.
    enddo.
    endif.
    ELSE.
          MESSAGE E901(ZMM) WITH GS_EXDATA_HEADER-GATEENTRYNO WA_ZMM_GATE_ENTRY-GR_NUMBER.
        ENDIF.
    Regards,
    Nagaraj

  • Does Logic Pro X actually work with the Roland VS-20?

    Hi all.  According to the support docs, the Roland VS-20 should work with Logic Pro X.  I've installed the latest drivers, the latest Logic plug-in for the VS-20, and the latest VS-20 Editor.  On occasion (and I have no idea what the magic formula is), I've gotten the controls and audio to work via the VS-20.  However, more often than not, the VS-20 controls (transport controls and faders) do nothing, and playing audio results in a horrible screeching through the VS-20.
    A couple of other points of info:
    The VS-20 always shows up correctly in the Control Surface and audio settings of Logic Pro X.
    The VS-20 works fine in Reaper 4 as well as when only using the VS-20 Editor.
    I'm using Logic Pro X (10.0.3) on a 2012 MBPr w/ 2.6GHz i7 and 16GB RAM
    Is anyone out there using this setup successfully?
    Thanks!

    Roland was very helpful, even though their solution didn't actually work for me.  I sent them the same info as above, and here was the reply:
    We are sorry to hear that you are having trouble. The VS-20 is definitely compatible with Logic Pro X. Be sure that you have setup the VS-20 in Logic Pro X according to the following instructions:
    Audio I/O Setup:
    1.     Select Logic Pro X in the menu bar and navigate to Preferences.
    2.     Click on “Audio...”
    3.     Under the Devices tab, set your Output Device and Input Device to “VS-20 44.1kHz”--if it is not already set.
    Note: The sample rate of your Logic Pro X project must be 44.1kHz--as the VS-20 only operates in this sample rate.
    4.     Click “Apply Changes”.
    5.     Close the Preferences menu.
    Control Surface Setup:
    1.     Select Logic Pro in the menu bar and navigate to Preferences.
    2.     Navigate to Control Surfaces and then click on “Setup...” A Setup window will appear.
    3.     Click on “New” and then select “Install…” An Install window will appear.
    4.     Select “Mackie Designs (Manufacturer) / Mackie Control (Model) / Logic Control (Module) and then click “Add”.
    Note: If prompted with the message “No new Devices found”, click on “Add Manually”.
    5.     In the Setup window, expand the Mackie Control section and assign both the Out Port and Input Port to “CONTROL”.
    Note: If the Setup window does not appear, right-click on the Mackie mixer image and then select “Hide/Show Inspector”.
    6.     Close the Control Surface Install and Setup windows.
    The VS-20 is now setup for Logic Pro X.
    We hope this information is helpful! Please let us know if this does not resolve your issue and include as much information as possible regarding troubleshooting you have done and results you have received. We are happy to help you.
    Sincerely,
    Roland Product Support
    These steps actually resulted in a situation where some of the buttons on the VS-20 triggered sounds instead of their intended functions.  I deleted everything and started over, this time picking the actual VS-20 option in the setup, and everything worked.
    I should mention that I also (foolishly?) updated to Mavericks just before getting this to work. 

  • What is the difference between Wine, Wineskin, Winery and Wine Bottler, and how do I get Wine to *ACTUALLY* work in Mountain Lion?

    Ok, so this is my first post here and I am admittedly terrible at forums. Someone might say, "This was addressed in the ___________ thread by __________! Go read it!" --- that may be so but I've spent enough hours trying to google this problem into submission to no avail based on what is apparently working for others, so I would like a chance to get specific answers to specific questions that aren't from Mar 2011, etc.
    So first of all, I'm confused by all the various Wine programs/apps/whatevers. I've seen Wine, Wineskin, Winery, Wine Bottler, and at this point I wouldn't be surprised if there are even more than that. What's the difference between all of these and how do they work with one another? What do I actually need to get windows programs working?
    All of my google searches have led me to people giving out fish, but no one giving out fishing lessons. I'm not a pro at mac and windows and all that, but I'm a fairly bright individual who gets VERY frustrated, very quickly, when I don't understand the why and how of something I'm attempting.
    I've also found "answers" where the person attempting to help starts off helpful enough, but degrades into the most archaic of techno-babble after about 5-6 sentences. On the other hand, I've watched tutorials on youtube where the poster decides to skip (apparently crucial) sections of the tutorial, and mutters such gems as: "... you might wanna have to run Wine first before you can do anything, cuz I think it has to configure it and set up a bunch of stuff" 
    O.o
    A happy medium between techno-babble and the most basic of explanations would be ideal for me, and I'd imagine for others as well.
    Here is a summarized history of my relationship with Wine:
    Diablo II - I downloaded this awesome thing which ended up being... uh... I guess Diablo II in a Wineskin "wrapper". I'm not sure, all I know is that it's a D2 icon, and if I go to 'show package contents', it's got C drive, Program Files, et cetera inside of it. I double click it, it launches D2, and it works like a dream. <3
    'Vanilla Install' - That's what I heard someone call it. It was the command/terminal style install using xquartz and xcode found at http://www.davidbaumgold.com/tutorials/wine-mac/. I followed every instruction to the letter, and got all the way to '$ sudo port install wine', at which point it started going smoothly, free from the possible error he described regarding the installation of xcode, and then just failed after I left the room to use the restroom and came back. Please don't ask me to repeat what the error was, because honestly, after reading more things on the interwebs, I'm confused as to why it's even necessary to go through all of that, so I'd rather not try that route again anyways, rendering the error message quite possibly irrelevant.
    Wine + Wine Bottler - So I decided to try to seek out an easier method, as I know that one must exist that doesn't involve command lines. I found a video tutorial at http://www.youtube.com/watch?v=m0BBkISOcEA, and oh man would it be great if that method had actually worked. Again, I followed all instructions provided to procure my free fish, and at the point in the video where he declares that "xquarts or x11 will open" - it doesn't open. Nothing opens. I was trying to install Star Sonata, btw.
    So here I am, thoroughly worn out, frustrated at all the random places Wine is installed on my mac now, and just want someone to explain it all, from top down, without getting toooooooo technical on me. I know that might be asking a lot...

    ## I know that the poster has already found a solution, but the following is a possible answer for others that have similar issues.
    For Winebottler, just go to their website and download it. Run the program. Choose .wine as your prefix (best choice) or whatever suits you best. You'll need a functional X11. If you can't use the one that comes with your mac, download the latest one from the website.
    If your issue is one with Winebottler's Wine not running correctly due to X11, then you have a pretty ugly problem, although a simple upgrade is the best solution (Upgrade XQuartz.app).
    http://www.davidbaumgold.com/tutorials/wine-mac/#part-1
    The above website is the easiest way to get REAL wine on your computer. First of all, Wineskin WInery, etc. are NOT WINE. They are 3rd party apps that may use Wine or may have originally part of Wine, but they are no longer up to date with Wine. WineBottler is currently up to date with the stable releases of Wine (but not the maintenence releases).
    For the website tutorial and to run Wine on your mac without using a thrid party app, you will need to know a few things.
    First, you will need to know basic control of the command line. That means, sudo (you must know the administrator password to your computer), and the forms of cd (change directory).
    Second, you will need Xcode. Download 4.2 (stable) or whatever other versions you want, but beware: It is over 1 GB, and you will need time for it to work.
    Third, you will need to get MacPorts and configure it. The tutorial should have this data.
    When you download wine (use sudo port install wine-devel for the latest development release of wine), it will first download a lot of dependencies. This will take a while. After that, it will download wine itself.
    After obtaining wine, to run a program, open the terminal.app window.
    cd desktop/XYZ/ZYZ\ WRQ
    The above will first enter the desktop, then folder XYZ, then folder ZYZ WRQ. From here,
    wine th11e.exe
    Or whatever executable you are trying to open. (Using Subterranean Animism as my example).
    It should, in theory, run the program. Watch the terminal for errors. If there is an X11 problem, then it's not wine acting up. If the app crashes or has other issues, check the Wine Application Database to see if your app is compatible with wine.
    If you have any further questions or other things, feel free to reply; I may or may not get back to you, but there's a good chance that someone will come in eventually. Otherwise, the Wine Wiki should have some information.

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • 3GS with iOS 4.2.1 update - voicemail no longer working through bluetooth?

    Hi Folks.
    I've been happily using my iPhone 3GS with my Jeep Patriot's bluetooth/stereo system for months (it's called a Mygig). However, I just upgraded to 4.2.1 and now when I connect to my voicemail the sound doesn't come through the system - the iPhone thinks it is sending the audio to the stereo, but the stereo remains idle. So I have to select one of the audio options (phone/speaker) to hear anything.
    If however I make a phone call, or if the phone rings and I answer it, it works fine.
    Even if I use voice dialling to call voicemail, that works through the bluetooth, but as soon as it has finished the voice dialling and actually calls voicemail the stereo goes back to being idle again, even though the phone thinks it's still connected.
    So at present if I want to connect to my voicemail while driving I have to use the speaker. Only for voicemail. Weird!
    I am thinking this is a software update issue, as it worked fine prior to the update, and everything other than calling voicemail works fine through bluetooth.
    It's as if the phone isn't talking to the bluetooth properly when it's dialling the voicemail, which is somewhat of a 'hardwired' thing, given it has its own button. I tried tricking it by dialling the actual number instead of using the voicemail button, but the iphone knew it was voicemail...
    Any ideas?
    PC

    Yah, have the same issues since upgrading to ios421. Pretty annoying... I have two cars, and the issue is same with both bluetooth systems. I am able to make and receive calls but cannot listen to my mobile voicemail.

  • I recently lost my iPod and ive been using find my iPhone to send messages to it, my email instantly tells me that it had been displayed or it suonded off however it doesn't find it's current location. you guys think this app actually works??

    i recently lost my 3rd Gen iPod and ive been using find my iPhone to send messages to it, my email then instantly tells me that it had been displayed or it suonded off however it doesn't find the iPod's current location. you guys think this app actually works? i feel like my alerts are just bouncing back at me. please help. Thanks!

    ... AFAIC Location Services is a joke.
    With both devices sitting side by side on my kitchen table, Location Services has NEVER shown the devices to be any where close to each other, and at times Location Services has been as much as a 1/4 of a mile off between the two devices.
    Your iPod Touch has no GPS receiver so determining its location relies upon wireless routers whose location is known. Its "location" is actually that of a wireless router. Your iPhone 4 can use GPS, cellular triangulation, and Wi-Fi. One would think GPS would be most accurate but urban areas have a greater density of cells and GPS signals are easily obstructed so cellular triangulation is often more accurate.
    Therefore the two devices' locations can be expected to be different. Differences of a quarter mile are easily explained if you understand how location services works: http://support.apple.com/kb/HT1975
    Skyhook Wireless (I think Apple uses its own database now): http://www.skyhookwireless.com/howitworks/
    Location Services is not a "joke"; its intended use is for basic navigation and for such applications as determining where the nearest restaurant is. It cannot tell you that your iPod is under the couch cushions and that your iPhone is in the car.

  • How does "notify me" actually work in mail app

    Might be a daft question, but how does "notify me" actually work in iPhone email app?
    I get the principal but surely when you get a reply thats already noticed you?
    Could someone advise me how it actually notifies and is it in addition to receiving the reply to the mail?

    I have the columns in place. But I have a few questions -
    1. Iis there some kind of audit trail report on the updates to my record to the table? If so how do I get to see?
    2. Am I expected to create a <entity name>_HISTORY table for this to work? I see some such recommendation  here .

  • Update rowcount is not working in obiee11.1.1.6.8

    i m using obiee 11.1.1.6.8, where i cant do update row count in physical layer and tools---update row count...nothing was afffected
    iand i cant update rowcount option in physical layer of obieee.
    please help me

    Hi,
    Its reolved. our sking and style dvn files not yed updated earliear...after updated and restarted its working fine.
    thanks
    Deva

  • Has anyone got the AirPort Client Update 2009-00 to work

    As I have frequently posted here SL has killed my Airport.
    Having waited patiently for FOUR MONTHS Apple have finally issued AirPort Client Update 2009-00.
    It makes no difference to me.
    Has this actually worked for anyone?

    In my case, I bought my MBP with Tiger then upgraded to SL and it made my airport behave randomly soo I opted to roll back the OS until a fix is made to the issue.

  • ORA-17085 bug jdbc update on where statement

    hi,
    i'm going crazy. i have this bug since 2009 and i don't know how to do.
    i'm sure it's a bug from jdbc oracle (because it's working with mysql)
    i guess it's not possible to do update on a row where this row is in the where query.
    1) Resultset with a where condition
    2) resultset.next
    3)resultset update (the where field)
    4) resultset next
    5) resultst previous
    6) resultset update (the where field)
    ---> ORA-17085
    let's do this table:
    the table:
    CREATE TABLE test (
    c1 NUMBER(10,0) NOT NULL,
    c2 VARCHAR2(5) NULL,
    c3 NUMBER,
    c4 VARCHAR(5)
    ALTER TABLE test
    ADD CONSTRAINT test_pk PRIMARY KEY (
    c1
    the code with the bug:
    here's the code to do this bug
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class MyMain
    Connection con;
    ResultSet res;
    Statement stat;
    public MyMain()
    System.out.println("Loading JDBC driver.");
    String url = "jdbc:oracle:thin:DEMO/[email protected]:1521:ORCL";
    String sPilote = "oracle.jdbc.driver.OracleDriver";
    //String url = "jdbc:mysql://localhost/test?user=demo&password=demo";
    //String sPilote = "com.mysql.jdbc.Driver";
    try
    Class.forName(sPilote);
    con = DriverManager.getConnection(url);
    stat = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    stat.execute("DELETE FROM test");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (1,'C1',11,'C41')");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (2,'C1',12,'C42')");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (3,'C3',13,'C43')");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (4,'C1',14,'C44')");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (5,'C5',15,'C45')");
    stat.execute("INSERT INTO test(C1,C2,C3,C4) values (6,'C1',16,'C46')");
    // con.commit();
    // ERROR HERE
    //res = stat.executeQuery("SELECT c1,c2,c3,c4 FROM test ORDER BY c1"); // WHERE c2='C1'
    res = stat.executeQuery("SELECT c1,c2,c3,c4 FROM test WHERE c2='C1' ORDER BY c1");
    while (res.next())
    System.out.println("BEGIN: " + res.getInt("c1") + " " + res.getString("c2") + " " + res.getInt("c3") + " " + res.getString("c4"));
    res.first();
    res.next();
    System.out.println("-> UPDATE c2=c5");
    res.updateString(2, "C5");
    res.updateRow();
    // con.commit();
    System.out.println(res.getInt("c1") + " " + res.getString("c2") + " " + res.getInt("c3") + " " + res.getString("c4"));
    res.next();
    // con.commit();
    res.previous();
    System.out.println("-> UPDATE c2=c10");
    res.updateString(2, "C10");
    res.updateRow();
    System.out.println(res.getInt("c1") + " " + res.getString("c2") + " " + res.getInt("c3") + " " + res.getString("c4"));
    res.beforeFirst();
    while (res.next())
    res.refreshRow();
    System.out.println("END: " + res.getInt("c1") + " " + res.getString("c2") + " " + res.getInt("c3") + " " + res.getString("c4"));
    System.out.println("Finish.");
    catch (ClassNotFoundException e)
    e.printStackTrace();
    catch (SQLException e)
    // TODO Auto-generated catch block
    System.out.println( e.getErrorCode());
    e.printStackTrace();
    finally
    if (con != null)
    try
    con.close();
    catch (SQLException e)
    // TODO Auto-generated catch block
    e.printStackTrace();
    public static void main(String argv[])
    new MyMain();
    output:
    Loading JDBC driver.
    BEGIN: 1 C1 11 C41
    BEGIN: 2 C1 12 C42
    BEGIN: 4 C1 14 C44
    BEGIN: 6 C1 16 C46
    -> UPDATE c2=c5
    2 C1 12 C42
    -> UPDATE c2=c10
    17085
    java.sql.SQLException:
    so what to do to ask oracle to correct this bug ?
    thanks and have a nice day

    thanks for answer and sorry for not using code tag
    i want to open support request but we don't have support for oracle :-(
    well i try with all jdbc driver since 2009 and oracle 10g,10xe,11xe
    java is 1.6 and 1.7
    i really think it's about oracle jdbc because it's working with mysql.
    if i do where 1=1 then it's working because the bug happen only if i update a field who is in the "where query"
    let's see this code who has the same bug (more easy):
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class Test2 {
         Connection con;
         ResultSet res;
         Statement stat;
         public Test2() {
              System.out.println("Loading JDBC driver.");
              String url = "jdbc:oracle:thin:demo/[email protected]:1521:XE";
              String sPilote = "oracle.jdbc.driver.OracleDriver";
              try {
                   Class.forName(sPilote);
                   con = DriverManager.getConnection(url);
                   stat = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                             ResultSet.CONCUR_UPDATABLE);
                   stat.execute("DELETE FROM test");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (1,'C1',11,'C41')");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (2,'C1',12,'C42')");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (3,'C3',13,'C43')");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (4,'C1',14,'C44')");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (5,'C5',15,'C45')");
                   stat.execute("INSERT INTO test(C1,C2,C3,C4) values (6,'C1',16,'C46')");
                   res = stat
                             .executeQuery("SELECT c1,c2,c3,c4 FROM test WHERE c2='C1' ORDER BY c1");
                   res.first();
                   res.next();
                   System.out.println("-> UPDATE c2=c5");
                   res.updateString(2, "C5");
                   res.updateRow();
                   // con.commit();
                   res.refreshRow(); // don't change something
                   System.out.println(res.getInt("c1") + " " + res.getString("c2")
                             + " " + res.getInt("c3") + " " + res.getString("c4") +" should be: 2 C5 12 C42");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
              } catch (SQLException e) {
                   System.out.println(e.getErrorCode());
                   e.printStackTrace();
              } finally {
                   if (con != null)
                        try {
                             con.close();
                        } catch (SQLException e) {
                             e.printStackTrace();
         public static void main(String argv[]) {
              new Test2();
    }output:
    Loading JDBC driver.
    -> UPDATE c2=c5
    2 C1 12 C42 should be: 2 C5 12 C42
    thanks a lot for your help

Maybe you are looking for