Update Rows with info from other Rows in Same Table.

I'm trying to update rows with information from the same table. The table gets loaded with info from a report that runs and it has to be a new entry every month but I would like to carry over some of the info from last month. This statement below runs but updates all rows in the new table load and in my test cases I only made a few match so only like 5 records should get updated. This is an example of what I'm trying to do. If I add this(C2.COL_INVC_ID = C1.COL_INVC_ID) to the last "*Where*" statement I get an invalid identifier for "C2.COL_INVC_ID". So what am I doing wrong here??? How can I update only the rows that where also in last months run???
Thanks in advance for any help!
Update OpenIssues OI1
Set(OI1.Num, OI1.Status, OI1.Code, OI1.LastModifiedDate) =
(Select OI2.Num, OI2.Status, OI2.Code, OI2.LastModifiedDate
From OpenIssues OI2
Where OI2.num = OI1.num and OI2.TableLoadDate = TO_DATE('01/31/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
Where and OI1.TableLoadDate = TO_DATE('02/29/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
SQLMe

Hi,
Welcome to the forum!
SQLMe wrote:
I'm trying to update rows with information from the same table. The table gets loaded with info from a report that runs and it has to be a new entry every month but I would like to carry over some of the info from last month. This statement below runs but updates all rows in the new table load and in my test cases I only made a few match so only like 5 records should get updated. This is an example of what I'm trying to do. If I add this(C2.COL_INVC_ID = C1.COL_INVC_ID) to the last "*Where*" statement I get an invalid identifier for "C2.COL_INVC_ID". If the aliases c1 and c2 aren't defined anywhere, then you can't use them anywhere.
The WHERE clause of the UPDATE statement can only reference the table being updated, ot1 in this case.
So what am I doing wrong here??? How can I update only the rows that where also in last months run???
Thanks in advance for any help!
Update OpenIssues OI1
Set(OI1.Num, OI1.Status, OI1.Code, OI1.LastModifiedDate) =
(Select OI2.Num, OI2.Status, OI2.Code, OI2.LastModifiedDate
From OpenIssues OI2
Where OI2.num = OI1.num and OI2.TableLoadDate = TO_DATE('01/31/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
Where and OI1.TableLoadDate = TO_DATE('02/29/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS')
------------There's a syntax error in the last line. Either something got lost when you posted the code, or you just don't want the keyword AND. You certainly don't want AND immediately after WHERE.
In general, if it's not obvious how to do an UPDATE, then UPDATE is the wrong tool: you want MERGE instead.
Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
Simplify the problem as much as possible. Remove all tables and columns that play no role in this problem.
If you're asking about a DML statement, such as UPDATE, the CREATE TABLE and INSERT statements should re-create the tables as they are before the DML, and the results will be the contents of the changed table(s) when everything is finished.
Always say which version of Oracle you're using.
See the forum FAQ {message:id=9360002}

Similar Messages

  • HT5181 iPhoto for iOS: Photos in iphoto's Camera Roll folder are not updated automatically with edits from other programs

    How can I solve the problem în the subject?

    How can I solve the problem în the subject?
    What exactly are you trying to do?
    Have you been editing photos in iPhoto and want to add them to your camera rool or photo stream?
    Then do exactly as the article describes, that you lonked to:
    iPhoto for iOS: Photos in Camera Roll are not updated automatically with edits from iPhoto
    Use iPhoto's Sharing to save a copy of the edited photo to the Caera Roll, or explain on mor e detail, what you want to do.
    Regards
    Léonie

  • Update Nulls With Value from Another Row

    Good Morning,
    I word for a car manufacturer. I am pulling an excel spreadsheet into SQL 2012.The spreadsheet lists one line for each dealer, each carline. So if there are 6 carlines and 65 dealers there will be 390 lines. when the spreadsheet gets to me it looks like
    this:
    Dealer          
    Carline         District         Data         Data         Data
    East Side Craworld Model1
    1 0
    0
    Model2
    1 0 0
    Model3
    1 0
    0 0
    So the Dealer is only listed once. When I pull this into SQL the blank lines are nulls and I want them to be the Dealer name in there. How can I accomplish this with an update.
    Just one thing more. When I programmed in access, I would loop through a table and set a variaiable =Dealer name and not change the variable until the next not null row and then make that the new variable all the while making nulls=the variable. Is there
    a way to accomplish that here.

    The only issue is this file will eventually be a feed and an ftp agent will grab the feed place it somewhere and and there will be a stored package to import it.
    Can I do an update on a null field with the field from the previous record, or am I dealing witht he ordering thing again. I found this code. Will it work?
    select Date
    , GroupId
    , case
    when Comment is not null then Comment
    else
    select Comment
    from YourTable yt2
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt2.Date < yt1.Date
    and not exists
    select *
    from YourTable yt3
    where yt1.GroupId = yt2.GroupId
    and yt2.Comment is not null
    and yt3.Date < yt2.Date and yt2.Date < yt1.Date
    ) end as Comment
    from YourTable yt1

  • Keeping only one row with information from several rows?

    Hi,
    I have a table with companies. The companies appearing more then once in the table, with different information in different columns. How do I keep one row from each company with all information..?
    Example:
    Company State  City       Country
    CompA   WA     Seattle    null
    CompA   null   null       USA
    CompB   null   null       USA
    CompB   TX     null       null
    ...and so on.
    And I want out of this:
    CompA WA Seattle USA
    CompB TX null    USA
    Any tips?

    declare @temp table
    company char(6),
    state char(10),
    city char(20),
    country char(10))
    insert into @temp values ('CompA','WA','Seattle',null),('CompA',null,null,'USA')
    ,('CompB','Tx',null,null),('CompB',null,null,'USA')
    select max(company),MAX(state),MAX(city),MAX(country) from @temp
    group by company
    --Prashanth

  • How to update colomn depend on the other in the same table

    hi ,
    i have the following table with 2 colomns (A and B)
    A B
    100 null
    90 null
    80 null
    70 null
    60 null
    and i want move the first max 2 number to the colomn B to be like this
    A B
    80 100
    70 90
    60 null
    and help please ,

    with t as ( select 100 A, null B from dual union
                   select 90, null from dual union
                   select 80 ,null from dual union
                   select 70, null from dual union
                   select 60, null from dual)
          select A, B
          from t
          model
          dimension  by (row_number() over (order by A desc) num )
          measures (A, cast (null as number)  B, count(*) over ()  cnt )
          RULES (
                 B [for num from 1 to 2  increment 1] =  A[cv()],
                 A[for num from 1 to cnt[1] increment 1] =  A[cv() + 2]
    A     B
    80     100
    70     90
    60Edited by: pollywog on Jun 15, 2011 3:44 PM
    or if you have 11g there is now a fuction called nth_value
    /* Formatted on 6/15/2011 4:03:51 PM (QP5 v5.149.1003.31008) */
    WITH t AS (SELECT 100 A, NULL B FROM DUAL
               UNION
               SELECT 90, NULL FROM DUAL
               UNION
               SELECT 80, NULL FROM DUAL
               UNION
               SELECT 70, NULL FROM DUAL
               UNION
               SELECT 60, NULL FROM DUAL)
      SELECT LEAD (A, 2) OVER (ORDER BY A DESC) A,
             CASE
                WHEN A < NTH_VALUE (MAX (A), 2) OVER (ORDER BY A DESC) THEN NULL
                ELSE A
             END
                B
        FROM t
    GROUP BY AEdited by: pollywog on Jun 15, 2011 4:04 PM

  • How to join each row with other in the same table without repeating, please help

    Hi,
    I have a table say Adjustment having following data
    Emp_Id                  
    Adjustment_id                      
    Date
    1000101               
    1000300                               
    2014-02-12 00:00:00.000
    1000101               
    1000301                               
    2014-02-12 00:00:00.000
    1000101               
    1000302                               
    2014-02-12 00:00:00.000
    1000101               
    1000303                               
    2014-02-12 00:00:00.000
    1000102               
    1000302                               
    2014-02-12 00:00:00.000
    1000102               
    1000303                               
    2014-02-12 00:00:00.000
    1000102               
    1000304                               
    2014-02-12 00:00:00.000
    And I want following records:
    Emp_Id                  
    Adjustment_id      Adjustment_id1              
          Date
    1000101               
    1000300                1000301                               
    2014-02-12 00:00:00.000
    1000101               
    1000300                1000302                               
    2014-02-12 00:00:00.000
    1000101               
    1000300               
    1000303                               
    2014-02-12 00:00:00.000
    1000101               
    1000301                1000302                               
    2014-02-12 00:00:00.000
    1000101               
    1000301                1000303                               
    2014-02-12 00:00:00.000
    1000101               
    1000302                1000303                               
    2014-02-12 00:00:00.000
    1000102               
    1000302                1000303                               
    2014-02-12 00:00:00.000
    1000102               
    1000302                1000304                               
    2014-02-12 00:00:00.000
    1000102                    
    1000303               
         1000304                                       
    2014-02-12 00:00:00.000

    Hi Uri,
    I am using SQL Server 2008, and I am trying join each adjustment_id with all other adjustment_id having same Date and Emp_id.
    so for following table records:
    Emp_Id                 
    Adjustment_id                
    Date
    1000102               
    1000302                         
    2014-02-12 00:00:00
    1000102               
    1000303                         
    2014-02-12 00:00:00
     1000102                   
    1000304                               
    2014-02-12 00:00:00
    Output should be:
    Emp_Id        
    Adjustment_id      Adjustment_id     
    Date
    1000102      
    1000302               1000303              
    2014-02-12 00:00:00 (first row with 2nd)
    1000102      
    1000302               1000304              
    2014-02-12 00:00:00 (first row with 3rd)
    1000102      
    1000303               1000304              
    2014-02-12 00:00:00 (2nd row with 3rd)

  • Filling dynamic internal table with data from other internal table

    Hi Friends,
    My problem is that i have already built a dynamic internal table
    (class int_table->create) but now i want to fill it with data from other internal table.
    The dynamic table column name and the field value of the data filled internal table are same, but how to access that column name, since i cant hard code it anyway.
    Like if my werks field value is '8001'. I want to place it under the column 8001 of dynamic table, Can anybody help me in this regard?
    Awarding points is not a problem for even giving a slight hint.
    Best Regards

    Hi
    See this
    Dynamic internal table is internal table that we create on the fly with flexible column numbers.
    For sample code, please look at this code tutorial. Hopefully it can help you
    Check this link:
    http://www.****************/Tutorials/ABAP/DynamicInternaltable/DynamicInternalTable.htm
    Sample code:
    DATA: l_cnt(2) TYPE n,
    l_cnt1(3) TYPE n,
    l_nam(12),
    l_con(18) TYPE c,
    l_con1(18) TYPE c,
    lf_mat TYPE matnr.
    SORT it_bom_expl BY bom_comp bom_mat level.
    CLEAR: l_cnt1, <fs_dyn_wa>.
    Looping the component internal table
    LOOP AT it_bom_expl INTO gf_it_bom_expl.
    CLEAR: l_cnt1.
    AT NEW bom_comp.
    CLEAR: l_cnt, <fs_dyn_wa>, lf_mat.
    For every new bom component the material data is moved to
    temp material table which will be used for assigning the levels
    checking the count
    it_mat_temp[] = it_mat[].
    Component data is been assigned to the field symbol which is checked
    against the field of dynamic internal table and the value of the
    component number is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_comp_list OF STRUCTURE <fs_dyn_wa> TO
    <fs_check>.
    <fs_check> = gf_it_bom_expl-bom_comp.
    ENDAT.
    AT NEW bom_mat.
    CLEAR l_con.
    ENDAT.
    lf_mat = gf_it_bom_expl-bom_mat.
    Looping the temp internal table and looping the dynamic internal table
    *by reading line by line into workarea, the materialxxn is been assigned
    to field symbol which will be checked and used.
    LOOP AT it_mat_temp.
    l_nam = c_mat.
    l_cnt1 = l_cnt1 + 1.
    CONCATENATE l_nam l_cnt1 INTO l_nam.
    LOOP AT <fs_dyn_table2> ASSIGNING <fs_dyn_wa2>.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa2> TO <fs_xy>.
    ENDLOOP.
    IF <fs_xy> = lf_mat.
    CLEAR lf_mat.
    l_con1 = l_con.
    ENDIF.
    Checking whether the material exists for a component and if so it is
    been assigned to the field symbol which is checked against the field
    of dynamic internal table and the level of the component number
    against material is been passed to the dynamic internal table field
    value.
    IF <fs_xy> = gf_it_bom_expl-bom_mat.
    ASSIGN COMPONENT l_nam OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    CLEAR l_con.
    MOVE gf_it_bom_expl-level TO l_con.
    CONCATENATE c_val_l l_con INTO l_con.
    CONDENSE l_con NO-GAPS.
    IF l_con1 NE space.
    CONCATENATE l_con1 l_con INTO l_con SEPARATED BY c_comma.
    CLEAR l_con1.
    l_cnt = l_cnt - 1.
    ENDIF.
    <fs_check> = l_con.
    l_cnt = l_cnt + 1.
    ENDIF.
    ENDLOOP.
    AT END OF bom_comp.
    At end of every new bom component the count is moved to the field
    symbol which is checked against the field of dynamic internal table
    and the count is been passed to the dynamic internal table field
    value.
    ASSIGN COMPONENT c_count OF STRUCTURE <fs_dyn_wa> TO <fs_check>.
    <fs_check> = l_cnt.
    INSERT <fs_dyn_wa> INTO TABLE <fs_dyn_table>.
    ENDAT.
    ENDLOOP.
    Reward if useful
    Anji

  • When using panasonic remote2 app, videos shot on iPad appear upside down on the television.  This does not happen with videos from other sources. Any suggestions?

    When using panasonic remote2 app, videos shot on iPad appear upside down on the television.  This does not happen with videos from other sources. Any suggestions?

    Hi Steve
    worldweary wrote:
    Thanks again. I tried channel 13 and it seemed to work better, with less dropouts (albeit not perfect) but sadly my slightly ageing laptop wouldn't recognise the network at all with the Hub set to that channel, so I had to switch it back to 11!
    Will try the factory reset at some point to see if that improves things.
    I have the same issue with my iPad when streaming videos...like the issue posted on ‎25-04-2014 18h36 by Steve.
    Steve - Can you kinldy clarify how you resolved the problem finally.
    I was infact planning to change the iPad or sell it off due to this recurring problem.
    Thanks and regards
    Siva

  • Hollow stars.... itunes assigns an album average based on my star ratings, but in what scenario do Songs get assigned a hollow star? does itunes acquire info from other media programs or solely from what ive rated in itunes, orrr....

    Hollow stars.... itunes assigns an album average based on my star ratings, but in what scenario do Songs get assigned a hollow star? does itunes acquire info from other media programs or solely from what ive rated in itunes, or does itunes use other peoples ratings... Hollow Star assignment basis?

    If you assign songs a rating an unrated album gets an automatic rating, which you can override by rating it.
    If you assign an album a rating unrated songs get an automatic rating, which you can override by rating them.
    iTunes doesn't import ratings from tags, or third party services. You set them.
    You can't turn automatic ratings off.
    tt2

  • Updating Oracle table with info from Sybase query

    I hope this is the correct forum for this question.
    I am fairly new to Java and JDBC. I am trying to figure out what the best method for updating information in Oracle tables with data from a Sybase table. I would prefer to use Oracle’s transparent gateway but this is not an option my company will pay for so I am creating a java stored procedure and using JDBC to connect to the Sybase database.
    The process I think I need to go thru is
    1.     Query an Oracle table to get the records that need to be updated and the “key” information to query the Sybase table with.
    2.     Use that result to query the Sybase database to get the fields that need to be updated in the Oracle table for those records.
    3.     Update the records on the Oracle table with the data from the Sybase query.
    I know I can just do this procedurally, row-by-row, but I was wondering if anyone knows of a way to accomplish this with SQL and no loops. Is there a way to make a result set available as a “SQL table” for another JDBC query?
    Basically what I would like to do is:
    OraQuery = “ select sybinfo from sometable where updated_date = null”;
    Statement orastmt1 = OraConn.createStatement();
    ResultSet Orars1 = orastmt1.executeQuery (OraQuery);
    SybQuery = “select update_date, sybinfo from sybtable where sybinfo = Orars1.sybinfo”;
    Statement sybstmt = SybConn.createStatement();
    ResultSet Sybrs = sybstmt1.executeQuery (SybQuery);
    OraUpdate = “update (select update_date from sometable, Sybrs where sometable.sybinfo = Sybrs.sybinfo) set update_date = Sybrs.update_date”;
    Statement orastmt2 = OraConn.createStatement();
    ResultSet Orars2 = orastmt2.executeQuery (OraUpdate);
    This may not be possible but if anyone has done something similar and wouldn’t mind sharing I would appreciate it. If there is a “better” way of accomplishing this I am open to suggestions.
    Thanks

    you can try using cachedRowSet() for the Oracle side query.
    The rows in this could be populated using the sybase side query's resultset and then all of this could updated into Oracle in one shot.

  • Update rows with a sequence which fall under same group.

    Hi Friends,
    I have sample table with following data :
    ID     DIV     NEW_ID
    1     A     
    2     A     
    3     B     
    4     B     I want to update the column NEW_ID with a sequence value for the rows with same DIV value.
    My result should look like below :
    ID     DIV     NEW_ID
    1     A         1001     
    2     A       1001
    3     B       1002
    4     B       1002How can I accomplish with a single update ?
    Thanks
    Raj.

    This isn't pretty, but it should work ....
    ME_XE?create table table1 (col1 number, col2 varchar2(1), col3 number);
    Table created.
    Elapsed: 00:00:00.04
    ME_XE?insert into table1 values (1, 'A', NULL);
    1 row created.
    Elapsed: 00:00:00.06
    ME_XE?insert into table1 values (2, 'A', NULL);
    1 row created.
    Elapsed: 00:00:00.01
    ME_XE?insert into table1 values (3, 'B', NULL);
    1 row created.
    Elapsed: 00:00:00.00
    ME_XE?insert into table1 values (4, 'B', NULL);
    1 row created.
    Elapsed: 00:00:00.00
    ME_XE?
    ME_XE?
    ME_XE?create sequence s start with 1001 increment by 1;
    Sequence created.
    Elapsed: 00:00:00.00
    ME_XE?create or replace function get_s_nextval
      2  return number
      3  as
      4     o_val number;
      5  begin
      6     select s.nextval into o_val from dual;
      7     return o_val;
      8  end;
      9  /
    Function created.
    Elapsed: 00:00:00.54
    ME_XE?
    ME_XE?
    ME_XE?merge into table1 t using
      2  (
      3     with data
      4     as
      5     (
      6        select --+ MATERIALIZE
      7           col2, get_s_nextval as next_value
      8        from
      9        (
    10           select distinct col2
    11           from table1
    12           where col3 is null
    13        )
    14     )
    15     select * from data
    16  ) s
    17  on (s.col2 = t.col2)
    18  when matched then update set t.col3 = s.next_value;
    4 rows merged.
    Elapsed: 00:00:00.20
    ME_XE?
    ME_XE?
    ME_XE?select * from table1;
                  COL1 COL               COL3
                     1 A                 1001
                     2 A                 1001
                     3 B                 1002
                     4 B                 1002
    4 rows selected.
    Elapsed: 00:00:00.03
    ME_XE?

  • Not able to color different rows with different colors in a column of table

    Hi,
    I am trying to to display different rows with different colors in a column of the table based on some decode condition.
    I have gone through the following threads :
    Can we colour the rows in the column of a table
    Changing Color of a value in a column
    This is what i have done :
    1.Added the following code to custom.xss(changed the name to Custom.xss as suggested in one of the above threads) --- in path ---- jdev\myhtml\OA_HTML\cabo\styles
    <style selector=".1">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#008000</property>
    <property name="text-indent">3px</property>
    </style>
    <style selector=".2">
    <includeStyle name="DefaultFontFamily"/>
    <property name="font-size">11pt</property>
    <property name="font-weight">Bolder</property>
    <property name="color">#FFFF00</property>
    <property name="text-indent">3px</property>
    </style>
    2. Sql query of the VO is :
    select comments,role ,decode(role,'REQUESTER','1','2') Colorattr from xxat_sars_action_history where request_id = :1 and event_name = :2 and action_code <> 'PENDING'
    order by sequence_num desc
    3. Coded the following in the process request of the controller:
    OATableBean table = (OATableBean)webBean.findIndexedChildRecursive("CommentsTB");
    OAMessageStyledTextBean roleBN = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("role");
    OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(roleBN,"Colorattr");
    roleBN.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
    where 1 and 2 form the colors ( i have even tried with 'Red' and 'Yellow'...as it was not working replaced with 1 and 2)
    4.The query returns data fine with corresponding 1 and 2 values.
    But different colors are not getting reflecting on to the UI.
    I am testing this on my local jdev.
    Please do let me know if i am missing something.
    Thanks ,
    Sushma.

    Any Clues please.....
    Thanks,
    Sushma.

  • One row as editable and other row as non-editable in table control

    Hi Experts,
               Is this possible to make one row as editable and another row is non editable in table control?
    My Requirement is
    1st row non editable field
    Customer code, description,amount will come from the previous screen this will be non editable for user.
    2nd row editable
    User has to enter the amount in 2nd row here the customer code description will be empty.
    If 4 customer are there
    1,3,5,7 should be non editable and 2,4,6,8 should be editable..
    Pls help me in this issue..
    Thanks in Advance!

    hI
    This is a simple Module POOL program with only Table control and nothing else
    " This is Tested to Enable one row and disabling the next row
    in TOP Include
    controls : tc type tableview using screen 100.
    DATA : OK TYPE SY-UCOMM.
    DATA : ITAB TYPE TABLE OF SPFLI WITH HEADER LINE.
    in PBO
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tc.
       MODULE TC_MOD.
      ENDLOOP.
    in PAI
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
      LOOP AT itab.
      ENDLOOP.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TEST'.
      SET TITLEBAR 'TEST'.
      DESCRIBE TABLE itab LINES tc-lines.
      IF tc-lines = 0.
        tc-lines = 20.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    MODULE tc_mod OUTPUT.
      DATA : mod TYPE i.
      LOOP AT SCREEN.
        mod =  tc-CURRENT_LINE MOD 2  .
        IF mod = 1.
          IF screen-name = 'SPFLI-CARRID'.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " TC_MOD  OUTPUT
    Edited by: Ramchander Krishnamraju on Jan 25, 2011 7:17 AM

  • Automatically update a Numbers spreadsheet from other application/documents

    Hi,
    Before I start I am a relative novice in using Numbers, and if it applies in this instance, Applescript and Automator. I run a small local weekly free newspaper (created using InDesign if that is relevant) which is paid for by adverts; I want to create a spreadsheet to track my advertisers and the financials in every respect - renewals, sizes and duration of ads, amount paid and owing, and a whole load of other stuff which includes their contact details. Now I know that I can import the relevant info from Address Book as a snapshot at that moment, but what I want to know is whether it is possible to have the spreadsheet automatically update whenever I change a contact or add a new one to my Address Book? As far as I have been able to ascertain so far, it is not, so if that is the case, is there some sort of workaround, possibly using Automator and another app or even the web, where this can be done? Or is it possible the other way round, where I keep the contact details updated in Numbers and this gets transferred to Address Book? Or any other bright ideas? I don't really want to have to type the same information, or even copy/paste it for every new customer, as well as inputting it into my phone (which I don't think is able to sync with my Mac - it is a Samsung).
    Please keep any scripting/technical answers as simple as possible, as I don't have much experience with it. Thanks in anticipation...

    I have been doing a lot more reading on the forum and I now think there might be a partial solution to what I would like to do, possibly even a complete one, but I am not sure if what I have in mind is possible.
    Using Automator/Applescript, could it be done that on a weekly basis Address Book gets opened automatically, the relevant group of contacts (which is already set up) is selected and copied/exported, and then Numbers and the relevant sheet opened automatically and the updated contact list pasted/imported? In addition is it possible to set up a script that can check if a group in AB has been changed, and if it has for this to be the trigger for the earlier script/workflow I have described rather than a date (every week in this case)? Again this could work the other way around, with the Numbers sheet being the one changed by me, and then a script to update AB. Any help would be massively appreciated.
    I have now managed to set up iSync to work with my phone so that can be updated once AB has been, but I am still working on getting the information from the phone to AB to be correct for Numbers! This is because of how my phone contact details is stored which is different seemingly from AB and I am not sure if I can sort that out. There is a First Name and Last Name field but no Company name in my phone, and I need to have all of those for it to work.

  • ICal won't sync with iCal from other computer and .Mac

    I am trying to snyc my ical on my desktop with the ical on my laptop. I use my ical on my laptop most often so its data is most upto date, but I would like to have it so that no matter which one I look at its the same, and if I change something on one it will update on both.
    I thought that is what would happen with .Mac and syncing. But when I try to sync my desktop it says that it won't sync the calander because of inconsist data, but it won't tell me what they are.
    It says to confirm that your computer's data is valid, (its not, but how do I confirm or not?). Then it says to reset calendars on .Mac in the system preferences when I try to do that it gives me an icon of computer and .mac, and an arrow saying in what direction I'm assuming data will go. I choose .mac, to computer and it still comes up with the same problem.
    So how do I fix? Once I fix will it merge data on both or will it always be thinking take the .mac data and replace it? It scares me when it says are you sure you want to do this and its changable if you do. I don't want to loose the data on my laptops calander.
    Is there a way to clear my desktop ical, and then sync it and get my laptop's data and start from scratch? And then do mutual merges after that?
    It says to check that my info on the computer is correct and then to reset it in .mac preferences. The data on the desktop isn't correct but even if I reset, it won't

    I'm having massive problems with syncing via .mac with two local Macs - nothing I have tried has worked as yet and it's currently under investigation with a .mac specialist.
    I did used to get the 'inconsistent data' warning but that has somehow disappeared - now I don't get any warnings and .mac says both Macs are synced but I get nothing updated to iCal from either direction...
    So I don't as yet have an answer but just to let you know that if you get in touch with Apple they will support you with finding an answer.
    In the meantime have a look at these links for more self-help:
    http://arstechnica.com/journals/apple.ars/2008/02/25/how-to-truly-reset-your-mac -sync-data
    Note that iSync also plays a large part, not just .mac and iCal - you need to 'reset sync data' in iSync/preferences.
    Plus some of the help stuff that Apple sent me:
    You may need to reset sync data again on .Mac and on all of the computers with which you are syncing.
    First, it's important to back up any data that you wish to keep. For more information, please see:
    How to back up and restore your important Mac OS X 10.4 files (applies to 10.5 too)
    http://www.info.apple.com/kbnum/n301239
    Mac OS X 10.5: When to use Time Machine or .Mac Backup to back up data
    http://www.info.apple.com/kbnum/n307050
    Before proceeding, you may find it helpful to print this email and the above articles so that you can consult them during this process.
    Next, using a computer that has Mac OS X v10.5 or later, unregister the other computers, including any Mac OS X v10.4 computers you may be using. (To find out which version of Mac OS X is installed, choose About This Mac from the Apple menu.)
    Here's how to unregister the other computers from the computer that has Mac OS X v10.5 or later:
    1) Open System Preferences and click .Mac.
    2) Click Sync, then click the Advanced button.
    3) Click once on one of the computers in the list and click Unregister. Follow the onscreen instructions to unregister the computer. Repeat this step until all registered computers are removed from the list.
    4) When the last computer has been unregistered, you will be asked "Would you like to delete unused sync info from .Mac?" Select the boxes next to each of the data types listed and click Delete.
    5) Restart the computer.
    After unregistering the other computers, sync your data from the computer that has the most up-to-date information.
    To add a computer with Mac OS X v10.5 or later to the .Mac sync list:
    1) Open that computer's System Preferences and click .Mac.
    2) Click the Sync tab.
    3) Select "Synchronize with .Mac."
    4) Select the data types you wish to sync. Click Sync Now.
    5) If you are asked, "What would you like to do for this first sync?", select "Merge" and click Sync. You may have to do this for each data type that you are syncing.
    After you have performed the initial sync, you should try syncing again. If you do not receive any errors, you can add additional computers to the .Mac sync list by following these steps on each of the computers:
    1) Open that computer's System Preferences and click .Mac.
    2) Click the Sync tab.
    3) Select "Synchronize with .Mac."
    4) Select the data types you wish to sync. Click Sync Now.
    5) If you are asked, "What would you like to do for this first sync?", select "Replace data on this computer" and click Sync. You may have to do this for each data type that you are syncing. This will replace the data on the computer with the data that has been synced to .Mac.
    I recommend that you add the computers one at a time, confirming each time that syncing is working correctly. To confirm that syncing is working, make a change in one of the data types you are syncing, then perform a sync from the first computer. When that syncing is finished, perform a sync on the second. If syncing is successful, add a third computer, and so on.
    Good luck!
    Message was edited by: AnngryofMayfair

Maybe you are looking for