10g XMLTABLE - can I return XMLTYPE col as well as extract specific columns

Hi,
(This is for version 10.2.0.4)
Currently, we have a giant XML column which contains many parts to it. We split those into individual parts via XMLSEQUENCE and then loop through to extract information from two other XMLTYLE columns. I'd like to be able to use XMLTABLE to join the XMLTYPE columns to each other in one SQL statement, as I think it should be more efficient. (We're having issues when the big XML column has 400 or more parts in it - looping and doing extract values on two xmltype columns 400+ times is proving slow going!)
Anyway, what I'd like to do is use XMLTABLE to produce a table-like structure for each column, then join them so that 1st part in col1 = 1st part in col2 = 1st part in col3.
I've looked around at the documentation and google, but I'm getting stuck at one particular point - I would like to return both the XMLTYPE and specific extracted values from that XMLTYPE as part of the XMLTABLE on each column. I just can't seem to find a way to do it.
Here's an example (that I've nabbed from http://thinktibits.blogspot.com/2011/03/oracle-xmltable-example-part-1.html ) that will hopefully explain more clearly what I'd like to do, taking just one column to start with:
CREATE TABLE xml_test
(NOTEBOOK XMLTYPE);
insert into xml_test values ('<?xml version="1.0" encoding="UTF-8"?><Product Type=''Laptop''><Notebook Brand="HP" Model="Pavilion dv6-3132TX Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>4 GB</RAM></Notebook><Notebook Brand="HP" Model="HP Pavilion dv6-3032TX Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>6 GB</RAM></Notebook><Notebook Brand="Toshiba" Model="Satellite A660/07R 3D Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>4 GB</RAM></Notebook><Notebook Brand="Toshiba" Model="Satellite A660/15J Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i5</Processor><RAM>6 GB</RAM></Notebook></Product>');
commit;
SELECT NOTEBOOKS1.*
  FROM xml_test PO,
       XMLTable('//Notebook' PASSING PO.NOTEBOOK) notebooks1;
COLUMN_VALUE                                                                                                                                          
<Notebook Brand="HP" Model="Pavilion dv6-3132TX Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>4 GB</RAM></Notebook>
<Notebook Brand="HP" Model="HP Pavilion dv6-3032TX Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>6 GB</RAM></Notebook>
<Notebook Brand="Toshiba" Model="Satellite A660/07R 3D Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i7</Processor><RAM>4 GB</RAM></Notebook>
<Notebook Brand="Toshiba" Model="Satellite A660/15J Notebook"><Harddisk>640 GB</Harddisk><Processor>Intel Core i5</Processor><RAM>6 GB</RAM></Notebook>
4 rows selected.
SELECT NOTEBOOKS2.*
  FROM xml_test PO,
       XMLTable('//Notebook' PASSING PO.NOTEBOOK
       COLUMNS  row_num for ordinality,
                "BrandType"    CHAR(10) PATH '@Brand',
                "ProductModel" CHAR(50) PATH '@Model',
                "Harddisk" CHAR(10) PATH 'Harddisk',
                "Processor" CHAR(20) PATH 'Processor',
                "RAM" CHAR(10) PATH 'RAM') AS NOTEBOOKS2;
   ROW_NUM BrandType  ProductModel                                       Harddisk   Processor            RAM      
         1 HP         Pavilion dv6-3132TX Notebook                       640 GB     Intel Core i7        4 GB     
         2 HP         HP Pavilion dv6-3032TX Notebook                    640 GB     Intel Core i7        6 GB     
         3 Toshiba    Satellite A660/07R 3D Notebook                     640 GB     Intel Core i7        4 GB     
         4 Toshiba    Satellite A660/15J Notebook                        640 GB     Intel Core i5        6 GB     
4 rows selected.What I'd like is to have the COLUMN_VALUE contents from the first select to appear as a column in the second select - is it possible?
At worst case, I could do a join, only that produces a cartesian product because I don't know how to label the rows from within the first query's XMLTABLE (if I used rownum in the query itself, does that guarentee to come out in the same order as the XMLTABLE results? Would part 1 always be labeled row 1, part 2 row2, etc?).
I hope that makes some sort of sense - I'm not up on XML terms, sadly.
ETA: If there's no way of doing this via XMLTABLE, is there any other way of achieving it?
Edited by: Boneist on 02-Dec-2011 17:14

Hi,
Define an additional XMLType projection in the COLUMNS clause with PATH = '.' (the context item) :
SQL> set long 500
SQL>
SQL> SELECT x1.*
  2  FROM xml_test t
  3     , XMLTable('/Product/Notebook' PASSING t.notebook
  4         COLUMNS rn FOR ORDINALITY
  5               , BrandType      VARCHAR2(10) PATH '@Brand'
  6               , ProductModel   VARCHAR2(50) PATH '@Model'
  7               , Harddisk       VARCHAR2(10) PATH 'Harddisk'
  8               , Processor      VARCHAR2(20) PATH 'Processor'
  9               , RAM            VARCHAR2(10) PATH 'RAM'
10               , NoteBook_node  XMLType      PATH '.'
11       ) x1
12  ;
        RN BRANDTYPE  PRODUCTMODEL                                       HARDDISK   PROCESSOR            RAM        NOTEBOOK_NODE
         1 HP         Pavilion dv6-3132TX Notebook                       640 GB     Intel Core i7        4 GB       <Notebook Brand="HP" Model="Pavilion dv6-3132TX Notebook">
                                                                                                                      <Harddisk>640 GB</Harddisk>
                                                                                                                      <Processor>Intel Core i7</Processor>
                                                                                                                      <RAM>4 GB</RAM>
                                                                                                                    </Notebook>
         2 HP         HP Pavilion dv6-3032TX Notebook                    640 GB     Intel Core i7        6 GB       <Notebook Brand="HP" Model="HP Pavilion dv6-3032TX Notebook">
                                                                                                                      <Harddisk>640 GB</Harddisk>
                                                                                                                      <Processor>Intel Core i7</Processor>
                                                                                                                      <RAM>6 GB</RAM>
                                                                                                                    </Notebook>
         3 Toshiba    Satellite A660/07R 3D Notebook                     640 GB     Intel Core i7        4 GB       <Notebook Brand="Toshiba" Model="Satellite A660/07R 3D Notebook">
                                                                                                                      <Harddisk>640 GB</Harddisk>
                                                                                                                      <Processor>Intel Core i7</Processor>
                                                                                                                      <RAM>4 GB</RAM>
                                                                                                                    </Notebook>
         4 Toshiba    Satellite A660/15J Notebook                        640 GB     Intel Core i5        6 GB       <Notebook Brand="Toshiba" Model="Satellite A660/15J Notebook">
                                                                                                                      <Harddisk>640 GB</Harddisk>
                                                                                                                      <Processor>Intel Core i5</Processor>
                                                                                                                      <RAM>6 GB</RAM>
                                                                                                                    </Notebook>
I'm not sure I understand the rest of your requirement.
Do you want to further break the generated XMLType into a set of relational rows, or repeat the operation on different columns from the same base table?

Similar Messages

  • Can't fetch XMLType after getting first row

    Hi - when I call OCIDefineObject in a sub function, after getting the first row of XMLType value, the program can't fetch subsequent rows and stops. If I call OCIDefineObject in the same memory space of where the fetch call locates, it works out fine. Somehow the persistency of xmldocnode can not last.
    Any clues? I can email out both working/non-working programs upon request.
    my environment is Oracle 11g on Solaris box.
    Sample Code: (fetch only the first row and stop)
    char orderNumData[4001];
    xmldocnode* xmlData = (xmldocnode *) 0;
    xmldocnode** xmlDatap = &xmlData;
    defineStr(define_orderNum, (char*)&orderNumData, 4001);
    defineXML(define_customerdata, xmlDatap );
    rc = OCIStmtExecute ( svc, stmt, err,
              1,
              0, NULL, NULL,
              OCI_DEFAULT);
    cout << "OrdNum: " << orderNumData << endl;
    displayXML (xmlData);
    while ((rc = OCIStmtFetch2 (stmt, err, 1,
    OCI_FETCH_NEXT,
    (ub4) 1,
    OCI_DEFAULT )) == OCI_SUCCESS)
    cout << "OrdNum: " << orderNumData << endl;
    displayXML (xmlData);
    void defineXML ( OCIDefine defineHdn, xmldocnode *xmlDatap )
    ociStatus = OCITypeByName( env,
    err,
    svc,
    (const text *) "SYS",
    (ub4) strlen((char *)"SYS"),
    (const text *) "XMLTYPE",
    (ub4) strlen((char *)"XMLTYPE"),
    (CONST text *) 0,
    (ub4) 0,
    OCI_DURATION_SESSION,
    OCI_TYPEGET_HEADER,
    (OCIType **) &xmltdo);
    ociStatus = OCIDefineByPos ( stmt,
    &defineHdn,
    err,
    pos,
    (dvoid *) 0,
    (sb4) 0,
    SQLT_NTY,
    (dvoid *) 0,
    (ub2 *)0,
    (ub2 *)0,
    (ub4) OCI_DEFAULT );
    ociStatus = OCIDefineObject( defineHdn,
    err,
    (OCIType *) xmltdo,
    (dvoid **) xmlDatap,
    &xmlSize,
    (dvoid **) &indp,
    (ub4 *) 0);
    Working one:
    Instead if I call OCITypeByName, OCIDefineByPos,
    and OCIDefineByPos right before the OCIStmtExecute() in the main,
    then all results can be returned.
    OCITypeByName(...)
    OCIDefineByPos(...)
    OCIDefineObject(...)
    rc = OCIStmtExecute ( svc, stmt, err,
    1,
    0, NULL, NULL,
    OCI_DEFAULT);
    cout << "OrdNum: " << orderNumData << endl;
    displayXML (xmlData);
    while ((rc = OCIStmtFetch2 (stmt, err, 1,
    OCI_FETCH_NEXT,
    (ub4) 1,
    OCI_DEFAULT )) == OCI_SUCCESS)
    cout << "OrdNum: " << orderNumData << endl;
    displayXML (xmlData);
    Thanks,
    Terrence

    void defineXML ( OCIDefine defineHdn, xmldocnode *xmlDatap ) { ...
    ociStatus = OCIDefineObject(
    defineHdn, err, (OCIType *) xmltdo, (dvoid **) xmlDatap,
    &xmlSize, (dvoid **) &indp, (ub4 *) 0);
    Instead if I call OCITypeByName, OCIDefineByPos,
    and OCIDefineByPos right before the OCIStmtExecute()
    in the main, then all results can be returned.I ran into this issue myself (was going nuts until a smarter colleague open my eyes on the issue). The problem is that you passing addresses of local variables in defineXML for xmlSize and indp, when the addresses you pass must remain valid for the whole fetch. (xmlSize is not written to apparently, by indp is for sure, so you are writing/corrupting your program stack...)
    To resolve this, I use a stack allocated helper struct whose lifetime extends the fetch, and which is referenced in the bind_object method. --DD
    struct ObjectBindInfo {
        void* p_value;
        void* p_indicator;
        ub4 value_size;
        ub4 indicator_size;
    static void insert_one_object(ub4 id) { ...
        sql_point pt(id);
        ObjectBindInfo pt_info(pt, &pt.indicator_);
        stmt.bind_object(conn, 2, pt, pt_info);
    ... void Statement::bind_object(
        Connection& conn, ub4 position, ..., ObjectBindInfo& obj_info
        // WARNING: Addresses passed to OCIBindObject MUST still be
        // valid after OCIStmtExecute, so cannot be addresses to local
        // (stack) vars. Thus the use of ObjectBindInfo...
        checkerr(
            OCIBindObject(
                bind_hndl, errhp(), tdo,
                (void**)&obj_info.p_value,     &obj_info.value_size,
                (void**)&obj_info.p_indicator, &obj_info.indicator_size
            errhp()
    }Of course, you've noticed that I talk about binds above, but the fact that you need to provide non-local var addresses to OCI applies to defines as well. --DD
    Message was edited by: ddevienne

  • Can Function Return more than One Values ??

    Hi Experts,
    I would like to ask you Can Function Return more than one values. I Used Function with Out and In out parameter and its working Fine..
    1. what is harm using Out and In out parameter in function
    2. if we can use Out and In out parameter in Function so what is deffernce between procedure and Function.
    3. Is there any Other Way Though which we can return more the One values in Function.
    Please advice me...
    Thanks
    Umesh Goel

    Yes/No.
    You can return multiple value from function. But, in PL/SQL and not in a SQL.
    The following examples demonstrate that -
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed Mar 28 17:41:15 2007
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create or replace package glob
      2  as
      3    b varchar2(20);
      4    c varchar2(20);
      5  end;
      6  /
    Package created.
    SQL>
    SQL> create or replace function test_mul_out(a in number)
      2  return number
      3  is
      4    cursor c1(eno in number)
      5    is
      6      select ename,job,sal
      7   from emp
      8   where empno = eno;
      9  
    10    rec c1%rowtype;
    11    d  number(10);
    12  begin
    13    open c1(a);
    14    loop
    15      fetch c1 into rec;
    16      exit when c1%notfound;
    17       glob.b:= rec.ename;
    18    glob.c:= rec.job;
    19    d:= rec.sal;
    20    end loop;
    21    close c1;
    22    return d;
    23  end;
    24  /
    Function created.
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    zz  number(10);
      3  begin
      4    select test_mul_out(7777)
      5    into zz
      6    from dual;
      7    
      8    dbms_output.put_line('Ename: '||glob.b);
      9    dbms_output.put_line('Job: '||glob.c);
    10    dbms_output.put_line('Sal: '||zz);
    11  end;
    12  /
    Ename: Avik
    Job: CLERK
    Sal: 3456
    PL/SQL procedure successfully completed.
    SQL> Regards.
    Satyaki De.

  • XMLTABLE function not returning any values if xml has attribute "xmlns"

    Hi,
    XMLTABLE function not returning any values if xml has attribute "xmlns". Is there way to get the values if xml has attribute as "xmlns".
    create table xmltest (id number(2), xml xmltype);
    insert into xmltest values(1,
    '<?xml version="1.0"?>
    <emps>
    <emp empno="1" deptno="10" ename="John" salary="21000"/>
    <emp empno="2" deptno="10" ename="Jack" salary="310000"/>
    <emp empno="3" deptno="20" ename="Jill" salary="100001"/>
    </emps>');
    insert into xmltest values(2,
    '<?xml version="1.0"?>
    <emps xmlns="http://emp.com">
    <emp empno="1" deptno="10" ename="John" salary="21000"/>
    <emp empno="2" deptno="10" ename="Jack" salary="310000"/>
    <emp empno="3" deptno="20" ename="Jill" salary="100001"/>
    </emps>');
    commit;
    SELECT a.*
    FROM xmltest,
    XMLTABLE (
    'for $i in /emps/emp
    return $i'
    PASSING xml
    COLUMNS empno NUMBER (2) PATH '@empno',
    deptno NUMBER (3) PATH '@deptno',
    ename VARCHAR2 (10) PATH '@ename',
    salary NUMBER (10) PATH '@salary') a
    WHERE id = 1;
    The above query returning results but below query is not returning any results because of xmlns attribute.
    SELECT a.*
    FROM xmltest,
    XMLTABLE (
    'for $i in /emps/emp
    return $i'
    PASSING xml
    COLUMNS empno NUMBER (2) PATH '@empno',
    deptno NUMBER (3) PATH '@deptno',
    ename VARCHAR2 (10) PATH '@ename',
    salary NUMBER (10) PATH '@salary') a
    WHERE id = 1;
    how to get rid out of this problem.
    Thanks,
    -Mani

    Added below one in xmltable, its working now.
    XmlNamespaces(DEFAULT 'http://emp.com')

  • "Formal OUT and IN OUT parameters can be returned in any order"

    Hi,
    From the PL/SQL Language Reference (11.2):
    Formal OUT and IN OUT parameters can be returned in any order. In this example, the final values of x and y are undefined:
    CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
    BEGIN
    x := 17; y := 93;
    END;
    What does this mean?  How are the values of x and y in any doubt here? I tested it and x and y were set to 17 and 93 respectively.
    Thanks in advance,
    Jason

    FrankKulash wrote:
    I wouldn't count on variable a being 93 after running this (though it has been 93 every time I've tried it).
    Right, even though it is quite logical OUT parameters are assigned in parameter number order (which is what Oracle is using in 10G & 11G - can't test on older versions), I didn't see it in documentation, so we can't assume it.
    SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
      2  BEGIN
      3  x := 17;
      4  y := 93;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    93 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (x OUT INTEGER, y OUT INTEGER) AS
      2  BEGIN
      3  y := 93;
      4  x := 17;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    93 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
      2  BEGIN
      3  x := 17;
      4  y := 93;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    17 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL> CREATE OR REPLACE PROCEDURE p (y OUT INTEGER, x OUT INTEGER) AS
      2  BEGIN
      3  y := 93;
      4  x := 17;
      5  END;
      6  /
    Procedure created.
    SQL> DECLARE
      2      a   INTEGER;
      3  BEGIN
      4      p (a, a);
      5      dbms_output.put_line (a || ' = a aftr calling p (a, a)');
      6  END;
      7  /
    17 = a aftr calling p (a, a)
    PL/SQL procedure successfully completed.
    SQL>
    SY.

  • Can I return my macbook air that I brought during the holidays (Thanksgiving)

    I was gifted a Macbook air during the thanksgiving season, and since I am a computer science developer ( a student to be precise), I want to return my Mac and opt in for a Windows machine ( so that I can get enough software support if needed, there are several people around me with a pc). I was wondering, how can I return my laptop ? What are the terms and conditions ?
    Thank you in advance.

    I would think you cannot return a product after the return date has passed.
    Call the Apple Store and ask them.

  • A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my
    laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    You need to talk with the tax authorities in the countries to which you traveled and that of your home country. We are all end-users liek you and not Apple agents.

  • Can I return my new laptop to lenovo because of its quality problem?

    IBM is one of the best brand as I know, especially showing us not only high quality of products but the service.
    But now one thing happened to me, if I don't have this case I can't believe. I found there is something with the laptop(T61 Model 7658CTO) the same day when I got the new laptop on June 3rd, 2008. Then I call 800, a lot of 800 calls,at last I were told that I should contact send it back first if I were to get another new one. Three days later I got the box sent by Lenovo, and I return it back in terms of what the paper shown.
    Unfortunately the problems of the laptop still exist when I turn on my laptop after it repaired. What's wrong with my laptop, this is new one, I think IBM should provide high quality products.
    I don't know how to describe the weird sound , it sounds like two or more micphone opened clost to each other. It is very harsh.
    I want to get one new laptop from Lenovo because of the quality of product and customer service or can I return the laptop?
    I would appreciate any advice you can give me.
    Message Edited by hjwu1979 on 06-27-2008 07:18 AM

    Like Obama says... yes you can
    I did it last week because I bought an iPhone 4 as a wedding gift but then I changed my mind and wanted an iPad, so the bride could use it together with the groom (while the phone is personal).
    I returned the iPhone to the apple store and I paid the difference to buy the 32GB iPad, no problems
    I didn't opened the case, but the guy at the apple store told me I could have returned the phone even if it was opened. It must be undamaged tough.

  • Can I return my Macbook Pro and get a refund?

    I bought my Macbook Pro 2 weeks ago (July 16th). I bought it with the student discount, and they also gave me a 100 dollar gift card to the Apple Store. I would like to return my macbook and get a refund however, because I see that a new macbook pro came out. It has better specs and costs the same price. What the heck! Anyways, can I return this laptop and then buy the new one?

    The return period is 14 days.
    You are very close to that now.
    If you really want to do that get down to theApple Store fast and you might still be able to do it.
    Personally with the difference between the two models, I don't see it as that big of a deal to get the newer model.

  • Can I return my iPhone 6 and go back to my 5?

    Hi folks,
    I mail-ordered an iPhone 6 because my current phone's a 5, and I've been doing the every-other-generation dance since my first iPhone, a 3G. For the very first time, though, I think I regret my upgrade. I'm probably going to allow a few days to get used to this new, big phone, but I feel doubtful.
    My question, then: is there a way I can say "Ha ha oops never mind", switch my US AT&T service back to my 5, and return the 6? My best guess based on experience is that Apple would take the phone back in 30 days (at least they do that with Mac purchases), and AT&T would be happy to fine me $150 for early-termination on my old phone and sign me up for a new two-year commitment on my old one, again. Which would be kind of awful.
    Is there a better way, or do I just have to see this as an expensive life lesson?
    Motivation: I find the 6 very uncomfortable to hold and use one-handed, and I have no desire for a larger screen if the tradeoff is that I am obliged use this device two-handed now. I feel quite frustrated every time I need to tap any screen's "Back" button, now physically out of my thumb's reach way up there at the top of the screen. Double-tapping the home button to push the top controls within reach feels like an ugly hack, and reminds me every time I do it that this phone is larger than I'd like it to be. Perhaps most worrying of all, I find myself unable to keep my wrist straight while holding this bigger, heavier phone, and I can feel my nascent RSI tingling while I'm trying to read a book on it. Add all these up and you have the very first time I'm using a new iPhone and am not just not in love with it, but really alarmed and half-panicking that this essential life-tool doesn't even feel like it fits with my body any more.
    So yeah. Pretty sure I wanna go back to the light, wonderful 5. Any advice would be appreciated.

    In the exact same boat here. Life-long iPhone user. Got a 6 on Tuesday and absolutely hate it to the point where I dread using it. Upgraded from an iPhone 4 I'd had for 4+ years. After making several phone calls, my understanding is that Apple will take it back no problem, within 14 days. My iPhone 4 was out of contract with AT&T but when I bought the 6, I renewed my previous contract for 2 years. My AT&T contract also has a 14 days, cancel for any reason with no early termination fee, clause. I assume your AT&T contract would have the same. But I don't think you need to worry about canceling your contract. Since you still have your iPhone 5, you should be able to bring it to the AT&T store, have them switch the existing contract from the 6 to your old 5 and then you can go return the 6 to the Apple store where you bought it. That's no different than being halfway through a two year contract, your phone is stolen and you have to buy a new one at retail price to replace it on your existing contract. You're essentially just bringing your own device you already paid for (the 5) to the existing AT&T plan.
    I would just caution that assuming you want to keep your phone number, get the service put back on your 5 at AT&T and have them deactivate the 6 before you go return the 6. Or just make sure the Apple store is capable of transferring the service from the 6 back to the 5 while you're there to do the 6 return.

  • How can I return my ipad 1 to pre OS5?

    how can I return my ipad 1 to pre OS5?
    Ive been reading the forums all over the place to find the solution to my ipad 1 continually crashing. it does it mainly in safari and the app store.
    Its really annoying when you're halfway through composing a long e-mail message and it just reverts back to the home screen.
    I'm perfectly happy to give up the advantages of IOs 5, because I would rather have a stable machine (like it used to be) than use the cloud and multitasking. (I don't use them anyway). I know that some of my apps might stop working but its more important to me that the basics work.
    cheers
    Andy

    You cannot downgrade the iOS.  Once you upgrade, you're stuck with it.
    Part of your problem is that your iPad is old and it probably having difficulty keeping up with the data and protocols for the newer software.  It's probably time to send a note to Santa. 

  • Can I return my new iPhone?

    Hi all,
    Can I return my new iPhone 4? I have had it for a week, and just wondering if I can return the phone, and how that would work with AT&T?
    Why, you ask? I think overall the phone has sub-standard quality, at least what I had grown used to with my 3Gs. My 3Gs was a tank, and had fantastic reception, and was fast. I am a power user, use my phone all day for business, uss Apps & games everyday on wifi and 3G. My 3Gs was very reliable, and rock solid. No complaints. And I am also a decades long Apple user, having bought several MacBooks, and an iPad earlier this year.
    My complaints? The phone is slow. I live in Manhattan where there are cell towers on every block. Sending/receiving email is painfully slow and often times out, even when I am connected to a high speed home wifi signal. Calls now drop nearly every time I call someone. And again, I live in one of the best places for AT&T coverage in the US. Games are also slow, they "stutter" as if the OS is slow.
    There are yellow spots on my screen. With a case the squared body is thick, and does not lend itself to slipping in your pants pocket. And sorry, if you dont use a case and a screen protector your phone will get trashed in no time, its common sense. This phone feels fragile, as opposed to the 3Gs which was a tank. My dropped my 3Gs several times over the last two years, only breaking the screen once which was easily replaced. I feel like if I drop this phone it will crumple.
    Overall the iPhone 4 has been a low performing fragile phone. The yellow spots really top it all for me. The quality is not Apple, and this recent update wasn't revolutionary(it doesn't change the way we compute), its cosmetic & merely the old OS in a better looking body with some superficial new features.
    Again, I am a proud life long Apple owner. But this is the first time I have been very disappointed by their products.

    Like Obama says... yes you can
    I did it last week because I bought an iPhone 4 as a wedding gift but then I changed my mind and wanted an iPad, so the bride could use it together with the groom (while the phone is personal).
    I returned the iPhone to the apple store and I paid the difference to buy the 32GB iPad, no problems
    I didn't opened the case, but the guy at the apple store told me I could have returned the phone even if it was opened. It must be undamaged tough.

  • Dissatisfied...can I return my nano?

    Hi everyone,
    I bought an iPod nano a little while back but it seemed to be having problems with the battery. I sent mine in for repairs and got a replacement. The replacement actually has the same problem too and I don't want the nano anymore. There's no point in giving it in for repairs because another replacement will probably have the same problem.
    I am still within one year of purchase so therefore my warranty should apply right? Can I return my nano to Apple for a full refund? I was looking all over the Apple website but could not find a service where I could return my iPod instead of repairing it.

    Honestly, the nano is a great player for kids. I assume you bought the new 2nd generation nanos. The problem is, like most new released products the people that buy them in the initial release months tend to be the ones that deal with the bugs that will mostly likely exist. At this time you get the double whammy of a new/upgrade product release AND a new iTunes...double the opportunity for bugs that us early purchasers get the "joy" of experiencing. Like the poster before me mentioned, it might be a good idea to post in another thread or start a new one that specifically explains the problem. There could be a fix that one of the many regulars on here can provide you that would make it so that your kids can truly enjoy their new players. If you are not really interested in that avenue though then I would say that any replacement (I assume you mean a player made by another company) that you choose for your kids should be one that is a flash player (not a hard drive) as it can handle the active lives of kids. Sorry, I can't suggest any brands because I am a generally happy iPod owner for several years and don't know much about other players through personal use. I know other people that have used other brands and there is the even mix of unhappy and happy people....just like with any product.
    Good luck with whatever you choose.

  • Can I return a Macbook air and get another one just after a day I bought it?

    I just purchased a Macbook air 11" for someone today and aparentley he wanted a 13' so I made a mistake!!!! But I have opened the box and used the mac for an hour before I was told that they really wanted a 13". so can i return the notebook and buy a 13"??

    Bearing in mind that a retailer would be giving a full refund of the purchase price and end up with a return that cannot be resold as new, and thus full price, a return of this kind is at the retailer's discretion. It therefore depends on the policy of the company or store that you bought it from since even in locations where there are good consumer protections, there is little to force a retailer into accepting the return of an item that the purchaser bought in their own error. That many do so is a consession to good customer relations than anything else.

  • Can i return my MacBook Air?

    I just bought MBA last Oct 29.. and it is still Mountain Lion.. can i return it.. it's not what i expected.. on that day the website said it is Maverick... but i get Mountail Lion.. now i tried for days to update it to Maverick.. but i just gave me a headache...

    yah i know it's free.. free or not i don't care.. downloading a Maverick is a disappointment to me... i tried 20 times to download it again and again... a probably i had read 100 articles about installing Maverick.
    It is ok to return this new MBA.. asking replacement with Maverick installed?

Maybe you are looking for

  • Itunes appears in windows, not in itunes.  communication error.

    the exact words that have come up every single time i uninstall/re-install my itunes/ipod softwear are "the softwear required for communicating with the ipod is not installed correctly. please re-install itunes to install the ipods softwear." my cpu

  • Editing a webi document

    Hi, When I try to edit a document, edit() Javascript function is called from IVIntegration.js. From edit(), goEdit() function is called which is available in callback.js. From goEdit(), doEdit() function is called and I believe Editing document inter

  • Clear open GL items ??

    Dears, I am new to oracle, previously I was using SAP, and I wonder if oracle have the same capability to view the GL entries as open items (non cleared entries), and if there is any possibility to clear B/S GL accounts. "such feature in SAP is calle

  • Remote desktop services 2012 R2 remote(external) users having issues

    First time poster, here is my issue might be a long winded one as I have been working on this for over 2 weeks. I have installed and configured RDS on a brand new install of server 2012 R2 everything on it seems to checks out. All Licences are instal

  • How do I get Mavericks 10.9.2 to recognize a phillips blu-ray BE14NU40

    I have an external blu-ray from phillips model BE14NU40 that OS X will not recognize and titanium will not write to.  DO\oes anyone know how to fix?