Order query depending on column names passed at runtime

Hi
Can any one suggest how to order by at run time depending on column name passed as parameter.
create or replace procedure dummy_proc( p_orderby varchar2,p_refcursor out sys_refcursor)
is
begin
     open p_refcursor for select * from
     emp where Status='A'
          order by (select p_orderby from dual);
end;
--execution part for testing
declare
     v_outcursor sys_refcursor;
     v_rec_data emp%rowtype;
     v_cnt number;
begin
     dummy_proc ('ename,sal',v_outcursor);
     begin
          loop
               fetch v_outcursor into v_rec_data;
               v_cnt:=v_outcursor%rowcount;
               exit when v_outcursor%notfound;
               dbms_output.put_line('empno '|| to_char(v_rec_data.empno));
               dbms_output.put_line('empno '|| v_rec_data.ename);
          end loop;
     end;
     dbms_output.put_line('Count is'|| to_char(v_cnt));
end;
we do not want to something like below as my actual query is very big with union statements and case expressions, (below is just an similar example)
how i tried to order by but its not working.
v_sql='select * from emp where empno= '|| p_empno || ' order by '|| p_orderby;
open p_refcursor for v_sql;
Thanks in advance
Vishal

we do not want to something like below as my actual
query is very big with union statements and case
expressions, (below is just an similar example)
how i tried to order by but its not working.
v_sql='select * from emp where empno= '|| p_empno ||
' order by '|| p_orderby;
open p_refcursor for v_sql;I agree, you really don't want to do that, you want to use BIND VARIABLES.
v_sql := ' select * from emp where empno = :bound_empno order by :bound_orderby';
open p_refcursor for v_sql using p_empno, p_orderby;
[pre]
The size of the statement shouldn't come in to play, if the only dynamic portion of it is the order by clause then declare a constant which is the large query (you can use a LONG datatype) and then concatenate in the order by clause before you return the reference cursor.
Unless you can give a legitimate reason for why you cannot use Dynamic SQL (not why you do not want to use it) this would be my approach.
And please, if you don't know what a bind variable is...read about them, or your system will suffer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Result of an SQL query as a Column name of another query

    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.

    Hi,
    ORAFLEX wrote:
    Hi Friends,
    Can we use a result of a SQL Query as a column name of another table to retrieve data. If so please help me.
    For eg :
    I have a table where is store numbers;
    select col1 from table1 where col1='5';
    and i have another table where .. this value of col is a column name..
    select ( select col1 from table1 where col1='5') from table2;
    Thanks in advance.Do you really mean that?
    select col1 from table1 where col1='5';That query will always return either '5' or nothing. Whatever you're trying to accomplish with that, you can do with an EXISTS query.
    Perhaps you meant to reference two different columns in that query:
    select col1 from table1 where col2='5';In that case, sorry, no, you can't do that without resorting to dynamic SQL.
    If the same column is used throughout the query (but could change every time you run the query), then the dynamic SQL might be pretty easy. In SQL*Plus, for example, you could use substitution variables, defined in another query at run-time.
    If there are only a few possible values that the sub-query could possibly return, and you know what they all are, then you can fake a dynamic query like this:
    SELECT     CASE     ( SELECT  col1
                FROM       table1
                WHERE       col2     = '5'
              WHEN  'BONUS'     THEN  bonus
              WHEN  'COMM'     THEN  comm
              WHEN  'SAL'     THEN  sal
         END     AS col1
    FROM     table2
    ;Sorry to give such a vague answer, but it's the best I can do with the information I have.
    It would help if you posted a little sample data (CREATE TABLE and INSERT statments for both tables), and the results you want to get from that data. If you want to pass a parameter to the query, give the results you want for a couple of different parameters.

  • How to upload linux file to DB depending on Column name

    Hi ,
    ii'm using Oracle Database 11g R2 need to upload Telecom CDRs to the database on daily basis , it's huge data and changeable , an example of my file in linux Redhat 5 server as below ,
    INDRtotalduration = 00:00:00
    origin_matrix = 4186603ec003ef01
    triggering_key = 665000207
    Start_Date_And_Time = 03/04/2013 09:24:10
    IMSI = 418666651000207
    INDRenddatetime = 03/04/2013 09:24:10
    locind = 0
    Correlation_Identifier = d50648d80000012400000187
    3572640402767000
    IN_service_indicator = 0
    service_context_identifier = [email protected]'m already create my table which is the columns names match the file left right names ( like column name =INDRtotalduration ),
    there is no broblem with this i think i can use SQLLDR to upload this file , but the problem here the positions of the columns in the file could change depending on user behavior it could be the first row comes in the thired row or any row and maybe more rows appears ,
    locind = 0
    origin_matrix = 4186603ec003ef01
    Start_Date_And_Time = 03/04/2013 09:24:10
    INDRtotalduration = 00:00:00
    IMSI = 418666651000207
    triggering_key = 665000207
    Service_Retailer_Name = sdpprov
    INDRenddatetime = 03/04/2013 09:24:10
    Correlation_Identifier = d50648d80000012400000187
    3572640402767000
    IN_service_indicator = 0
    service_context_identifier = [email protected]
    Type_of_IN_Triggering_Key = 1
    Start_Client_Info = 1
    Ordinary_Client_Id = 665000207
    Service_Name = LTE_SOreally this is sample of the file i could be more than 100 rows , and the position of the field and field names could be change every time depending on the Subscriper usage ,
    is there any way to upload the file but after checking the field name in the file and matching to corresponding column name in the table .
    Please help

    Hi,
    If you are only loading one file as a single logical CDR then you could possible just sqlload it into a 2 column table so you have the first column containing the variable name and the second column the value. You can then run a select statement using pivot to turn that into a single logical row - see the example below:
    This example assumes you load the first 3 values from your test data into a table called PIVOT_TEST using sqlloader (i did it with an insert just to demostrate the pivot). You need to list every possible value that the column value could be in the pivot command. See what you think....
    CREATE TABLE pivot_test (
    varname varchar2(100),
    var_value varchar2(100)
    INSERT INTO pivot_test VALUES ('INDRtotalduration','00:00:00');
    INSERT INTO pivot_test VALUES ('origin_matrix','4186603ec003ef01');
    INSERT INTO pivot_test VALUES ('triggering_key','665000207');
    COMMIT;
    SELECT *
    FROM (SELECT varname, var_value
    FROM pivot_test)
    PIVOT (max(var_value) FOR (varname) IN ('INDRtotalduration' AS INDRtotalduration, 'origin_matrix' AS origin_matrix, 'triggering_key' AS triggering_key,'some_other_column' as some_other_column));
    Regards,
    Harry

  • Query from variable column name?

    Running on LAMP
    Table - CONTACTS (35 COLUMNS APPROX)
    I want to be able to create a results page from a detailed
    query.
    My first attempt was to include 35 text fields in a form and
    then build the query: like '%namesearch%' and like
    '%companysearch%' and like '%companytype%' etc. etc. etc.
    But this is time consuming and prone to bugs.
    I though a much easier way would be to have two fields: one
    criteria field and one field representing the column you want to
    search in....
    Hmm...
    This is the query that I thought might work.
    SELECT * FROM CONTACTS
    WHERE 'colsearch' LIKE '%critsearch%'
    ORDER BY COMPANY, FULLNAME
    Obviously 'colsearch' is a variable from a menu drop down
    field.
    Strangely, if I set the default value for colsearch as
    COMPANY and default value for critsearch as '%', it does seem to
    return a result (all records) on the page load (I have the form and
    results on the same page) but if I hit submit, it returns no
    recordset!
    Is this even possible?
    CODE:
    $colsearch_recordlookup = "COMPANY";
    if (isset($HTTP_POST_VARS['scolumn'])) {
    $colsearch_recordlookup = (get_magic_quotes_gpc()) ?
    $HTTP_POST_VARS['scolumn'] :
    addslashes($HTTP_POST_VARS['scolumn']);
    $critsearch_recordlookup = "%";
    if (isset($HTTP_POST_VARS['scriteria'])) {
    $critsearch_recordlookup = (get_magic_quotes_gpc()) ?
    $HTTP_POST_VARS['scriteria'] :
    addslashes($HTTP_POST_VARS['scriteria']);
    mysql_select_db($database_dbcrm1, $dbcrm1);
    $query_recordlookup = sprintf("SELECT * FROM CONTACTS WHERE
    '%s' LIKE '%%%s%%' ORDER BY COMPANY, FULLNAME",
    $colsearch_recordlookup,$critsearch_recordlookup);

    RichardODreamweaver wrote:
    > This is the query that I thought might work.
    >
    > SELECT * FROM CONTACTS
    > WHERE 'colsearch' LIKE '%critsearch%'
    > ORDER BY COMPANY, FULLNAME
    >
    > Obviously 'colsearch' is a variable from a menu drop
    down field.
    The name of the column should not be in quotes:
    SELECT * FROM CONTACTS
    WHERE colsearch LIKE '%critsearch%'
    ORDER BY COMPANY, FULLNAME
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • LOV SQL query dependent on column value

    Hi Gurus,
    I have a tabular form, a column of which I would like to display as a dropdown whose list of values is a SQL query containing a where clause on another column value.
    For example, say the tabular form displays questions, and that the answers to the different questions are to be picked in list of values that are different for each question. I have tried the following queries for the dropdown list of values:
    1- select value_text, value_text from list_of_values_table where question_id=#QUESTION_ID#
    2- select value_text, value_text from list_of_values_table where question_id=:QUESTION_ID
    3- select value_text, value_text from list_of_values_table where question_id=&QUESTION_ID.
    In the 3 cases, I get an error when I run the application saying that the SQL statement is incorrect.
    Any ideas?
    Thanks in advance,
    Guillauem

    Anton,
    Yes, I am creating a region based on a sql query. The query is the following:
    select q.id quest_id, q.name, q.data_type_id, q.lov_flag, a.id answer_id, a.answer_text, a.org_id
    from gwb_questions q left join gwb_answers a on q.id=a.question_id, gwb_answers ans right join gwb_orgs o on ans.org_id=o.id
    where q.MODULE_ID=:P2_MODULE_ID and o.id=:P2_ORG_ID
    Now, in the 'answer_text' column, I would like to display a dropdown containing values that come from a separate table and that depend on the value of the quest_id column. So in the Column Attributes for 'answer_text', I selected Select List (query based LOV) for the Tabular Form Element, and I entered the query mentioned before in the List of Values section (select value_text, value_text from list_of_values_table lov where lov.question_id= ?).
    I am not using any API.
    Does that make sense?
    Thanks for your help,
    Guillaume

  • Query to return column name of first NULL column?

    I have a table with 40 columns but only the first n have non-null values. Is there a way to pull the name of the first non-null column? I have tried using CASE but I run into nesting too deeply problems (apparently you can only nest to 10 levels).
    Thank you.
    Kevin
    Kevin Burton

    Or, you could try something like this:
    -- This is just for testing
    DROP TABLE #test
    CREATE TABLE #Test
    (ID INTEGER
    ,n1 INTEGER
    ,n2 INTEGER
    ,n3 INTEGER
    ,n4 INTEGER
    ,n5 INTEGER
    ,n6 INTEGER
    ,n7 INTEGER
    ,n8 INTEGER
    ,n9 INTEGER
    INSERT INTO #Test
    VALUES (1,256,365,4000,0,NULL,NULL,NULL,NULL,NULL)
    SELECT *
    FROM #Test
    -- THIS IS THE IMPORTANT PIECE
    SELECT  ISNULL(LEN(LEFT(n1,1)),0)
    + ISNULL(LEN(LEFT(n2,1)),0)
    + ISNULL(LEN(LEFT(n3,1)),0)
    + ISNULL(LEN(LEFT(n4,1)),0)
    + ISNULL(LEN(LEFT(n5,1)),0)
    + ISNULL(LEN(LEFT(n6,1)),0)
    + ISNULL(LEN(LEFT(n7,1)),0)
    + ISNULL(LEN(LEFT(n8,1)),0)
    + ISNULL(LEN(LEFT(n9,1)),0)
    FROM #Test
    The LEFT(x,1) will always either give you a LEN of 1, or a NULL. Add 'em up. Try it.
    Then use the Ordinal_Position from the Information Schema to get the name of the column (if that is what you need)
    Duncan Davenport

  • Retrieve data from oracle table, table name passed in runtime into JSP

    Hello All,
    I am new to JSP, i have a requirement,
    I need to retrieve data from oracle table, here table is passed at random. how to get the data displayed in JSP page.
    can any one help me in that
    thanks

    1) Learn SQL.
    2) Learn Java.
    3) Learn JDBC.
    4) Learn DAO.
    5) Learn HTTP.
    6) Learn HTML.
    7) Learn JSP/Servlet.
    8) Learn JSTL.
    9) Apply learned things and develop.
    Whenever you stucks, please come back and post the specific coding/technical problem here.

  • Invalid Column Name message in the subquery

    Hi All, I am receiving the invalid column name message in the subquery. Please help me if there is any work around or change in the query:
    Sample query:
    update table1 set table1.column1 =
    (Select column1 from
    (Select column1 from table2 where
    table1.columnX = table2.columnX
    order by table2.columnM desc,table2.ColumnN desc,
    where rownum =1)
    When i run the above query i am receiving the following error message:
    ORA-00904:invalid column name at table1.columnx.
    This column is already existing in table1 and looks like this table is not recoginzed inside of the subquery.
    I am trying to update table1.column1 using the first value from table2 after ordering by table2.columnM desc, table2.columnN desc. (ColumnM and ColumnN are the Date columns which i need to perform the sorting). I am new to sql/Plsql. Thanks in Advance for help....

    The problem is that you can not refer to columns from the outer table from inside a second subquery inside your subquery. Only one level of subquery can be used to transport the column name,.
    A solution can be to use groups and aggregation functions instead of rownum = 1.
    The following might work.
    untested
    update table1
    set table1.column1 =
      (Select max(column1) keep (dense_rank first over table2.columnM desc,table2.ColumnN desc)
       from table2
       where table1.columnX = table2.columnX
       ) Another way can be to to make a UNCORRELATED subquery first and then filter on that uncorrelated query with the column name from the outer statement.
    This time I use a analytic function.
    untested
    update table1 u
    set u.column1 = (select v1.column1
       from
         (Select t2.column1, t2.columnX, row_number over (partition by t2.column1, t2.columnX order by t2.columnM desc,t2.ColumnN desc) as rn
          from table2
          ) v1
       where v1.columnX = u.columnX
       and v1.rn = 1
    where /* where clause is missing! */

  • Actual Column Name for Index when Function is used?

    Hi,
    We have some indeces where the column in oracle is actually a function in the form UPPER('column-name'). When I query user_ind_columns I get something like SYS_NC0012$ for the column name. Where would I be able to actually query the actual column it's using in the index? So that I can query the exact column name if need be. Don't ask why cause this is a developer asking me this and they are doing some sort of a comparison between indexes between two application.
    Here is the SQL for the Index and the Table associated with it
    create table BATCH_HEADER2
    PAYMENT_TYPE VARCHAR2(17),
    BATCH_TYPE VARCHAR2(40) not null,
    BATCHNUM NUMBER not null,
    BRANCH VARCHAR2(16),
    BATCH_TIME NUMBER,
    USER_LOB VARCHAR2(16),
    PAYEE_TYPE VARCHAR2(40),
    PROGRESS_RECID NUMBER,
    CHEQUE_TYPE VARCHAR2(60),
    SCANNERBATCHNO NUMBER,
    RECEIPTCOUNT NUMBER
    alter table BATCH_HEADER2
    add constraint PK_BATCH_HEADER2 primary key (BATCH_TYPE, BATCHNUM)
    using index
    tablespace FT1_DATA;
    --Inxes
    create unique index FT1DSTINT.BATCH_HEADER2##BYNUM on FT1DSTINT.BATCH_HEADER2 (UPPER(BATCH_TYPE), BATCHNUM)
    tablespace FT1_DATA
    pctfree 10
    initrans 2
    maxtrans 255
    storage (initial 64K
    minextents 1
    maxextents unlimited);

    From Oracle's standpoint, though, it isn't indexing BATCH_TYPE. It's indexing an arbitrary function that happens to take BATCH_TYPE as an input. As far as Oracle is concerned, you might just as easily be indexing an expression that took a dozen column names as parameters, so it doesn't really make sense for Oracle to try to break down anything beyond the function.
    Of course, you could always parse the expression and extract the column name, but I would be dubious that's the right answer... If a developer is comparing indexes between columns, there is a heck of a lot of difference between an index on BATCH_TYPE, and index on UPPER(BATCH_TYPE) and an index on SOME_OTHER_FUNCTION( BATCH_TYPE ).
    Justin

  • Delete command in SQLPLUS by use wrong column name command

    Assume I have three table T1,T2 and T3 shown as follow...
    sql> desc T1 ;
    cusid number
    name varchar2(50)
    sql> select * from T1;
    cusid name
    1) 101 TEST1
    2) 102 TEST2
    3) 103 TEST3
    4) 104 TEST4
    sql>desc T2;
    ref_cusid number
    sql>select * from T2
    cusid
    1) 103
    if I want to delete account in T1 that deleted account is in T2.
    I must use query1 , it will work
    query1::>
    delete from T1 where cusid in (select ref_cusid from T2);
    but if i type wrong by this command
    query2::>
    delete from T1 where cusid in (select cusid from T2);
    in query 2,it should be have warning message because field cusid is not in T2.Right ? But it will delete all account in table T1.
    compare query2 with query 3,
    query3::>
    delete from T1 where cusid in (select field_test from T2);
    it will show warning message like 'ORA-00904: "FIELD_TEST": invalid identifier'
    I noticed that in query2 and query3 , Different Thing is query 2 wrong column name in T2 has same name as column in T1. I wonder why it is.

    I doubt very much if this is really what you did:
    sql>desc T2;
    ref_cusid number
    sql>select * from T2
    cusid
    1) 103The desc command shows a column name ref_cusid. The select command shows a column title cusid, not ref_cusid.
    You start by saying that you have 3 tables, without doing anything with T3. Are you sure you you haven't mixed up a copy and paste somewhere?

  • SQL Developer - mapping column names for csv import

    In Apex I can do a spreadsheet upload to an existing table and it asks me to map source data to existing table, and it usually has the columns correct. I don't know if it imports them in order or what(first column name in table maps to first column in csv file, etc). SQL Developer makes me choose the mappings myself - it doesn't attempt to do a mapping at all, and some of my fieldnames are exactly the same. Am I missing something? Is there a way to get SQL Developer to try to do the mapping for me?
    Note: in apex and sql dev, you should use csv only... they let you choose xls, but xls fails in both products every time.

    So I guess SQL developer can't do this?

  • ResultSetMetaData.getColumnLabel(int coluN) gives column name with quote

    I am using ojdbc14.jar for "Oracle Database 10g Enterprise Edition Release 10.2.0.3.0". My query is "Select 'column name' from dual". When i get column name using ResultSetMetaData.getColumnLabel(int coluN) it return column name including single quotes ie: for the above query result is 'columname'. Ideally it should not return ' (single quote).
    Why do this happening?

    You will have that even when you run with sqlplus.
    =
    Ashok

  • Passing column name dianamically in an insert query

    i have a procedure hwre i used an inser query.eg
    insert into table (a,b,c) values(...)
    i need to pass a,b,c ie column names as parameter.depending upon the condition the column name will change.

    You don't necessarily need to use dynamic SQL;
    create or replace procedure p
      p_a number default null,
      p_b number default null,
      p_c number default null
    ) is
    begin
      insert into t
      values
        (p_a, p_b, p_c);
    end;
    Procedure createdUsing named notation;
    exec p(p_a =>1, p_c => 3);
    PL/SQL procedure successfully completed
    exec p(p_b =>20, p_c => 30);
    PL/SQL procedure successfully completedPassing NULLs;
    exec p(4, null, 6);
    PL/SQL procedure successfully completed
    exec p(40, 50, null);
    PL/SQL procedure successfully completed
    select * from t;
             A          B          C
             1                     3
                       20         30
             4                     6
            40         50

  • What is the order of Column Names in Sqlite query results?

    I am writing an application using Adobe Air, Sqlite, and Javascript.
    After writing the following select statement:
              SELECT field1, field 2, field 3, field 4 FROM TableA;
    I would like to get the columnName/data combination from each row -- which I do successfully with a loop:
              var columnName="";
              for (columnName in selResults.data[i]) {
                   output+=columnName + ":" + selResultsdata[i][columnName] + ";";
    My issue is that the column names come out in a different order every time I run the query and never once have they come out in the desired order -- field 1, field 2, field 3, field 4.  If I run the query in Firefox's Sqlite Manager, the columns come out in the "proper" order. When I run them in Adobe Air, the order will be the same if I run the query mulitple times without closing the app.  If I make a change such as declaring the columnName variable with "" before the for column, or declare it as (var = columnName in selResults.data) , then the order changes.  If I shut down my app and re-open after lunch and run query, it comes out in another order.  At this time, I'm not interested in the order of the rows, just the order of the columns in each output row.  I've even tried assiging an index to columnName which seems to just pick up a single letter of the columnName.
    I'm in the process of changing my HTML presentation of the data to assign a precise columnName to an HTML table title, but I'm reluctant to let go of the above concept as I think my separation of HTML/presentation and Javascript would be better if I could use the solution described above.
    So, does anybody know how to force the order of the columnNames in my output -- or what I'm doing to cause it to come out in a different order?
    Jeane

    Technically there isn't any "order" for the return columns. They aren't returned as an Array -- they're just properties on an Object instance (a "generic object"). The random order you're seeing is the behavior of the for..in loop iterating over the properties of the object. Unfortunately, with a for..in loop there is no guaranteed order for iterating over properties (and, as you've seen, it tends to vary wildly).
    The only solution is to create your own list of the column names and sort it the way you want to, then use that to create your output. For example, use the for..in loop to loop over the properties, but rather than actually get the values, just dump the column names into an Array:
    var columnName="";
    var columns = [];
    for (columnName in selResults.data[i]) {
        columns.push(columnName);
    columns = columns.sort(); // just uses the default alphabetical sort -- you would customize this if desired
    var j = 0;
    for (j = 0; j < columns.length; j++) {
        columnName = columns[j];
        output+=columnName + ":" + selResultsdata[i][columnName] + ";";

  • How to pass column name in slect statement in query

    hi,
    i want to make a report where in query select statement using variable as a column name. but its not working plz guide me how can i do this.
    i have created a function which return column name through variable & that variable i want to to use in select statement
    select :m1 from table1;
    regards

    Hi,
    Create a user parameter (say P_field), and assign a valid field name as initial value (say NAME), And In the Query, write
    SELECT CODE, &P_field FN_FIELD FROM <table_name> WHERE <condition>And in the BEFORE PARAMETER FORM Trigger under the Report Triggers, write,
    function BeforePForm return boolean is
    begin
      :P_field := <your_function_call>;
      return (TRUE);
    end;And use that FN_FIELD field in the report.
    Hope this will clear your issue.
    Regards,
    Manu.

Maybe you are looking for

  • SAPinst Error--Phase 2--Creation of User for SAP System

    Hi, I am installing SOLMAN 7.0 on Red Hat Linux 5 with IBM Java SDK version 1.4.2_10 When I run the SAPinst it gives ERROR in the 2nd phase of Creating users for SAP system. The SAPinst log file shows as below:- WARNING[E] 2008-06-07 17:49:28.362 FSL

  • Problem in Installing Oracle Enterprise Edition 8.1.6 (Rel 2)

    I am trying to install Oracle8i, in Windows NT with Service Pack 4. After installing product file, In Database configuration assistant, the progress bar is not at all moving. Even I have waited for 4 hours. My system conf. is P200, 128mb RAM with 4 G

  • How to insert sysdate in a flat file

    Hi All, i have a interafce i extract data from oracle database and generate a flat file. In one of the columns i have to insert sysdate in the file. could someone help me how to add the sysdate in flat file. Thanks in advance Naveen

  • Text in document is centered vertically on page... how do I change it

    I have a large project and the entire document is set to center text vertically on a page, but I want it aligned to the TOP. I am certain there is a simple solution, but cannot find it anywhere...driving me crazy. Please help!

  • Sync Pages doc ok - but how to update them?!

    With my imac and ipad2, I am syncing some pages doc' and it worked fine - until i tried to update them. I continued working on the pages doc on my imac and now I want the same "version" on my iPad. It's impossible to update it! Does anyone know what