Jan 17, 2003 #1 jtammyg Technical User Joined Dec 16, 2002 Messages 30 Location US Hi! I want to copy the data from column 1 into column 2. Column2 is empty. COLUMN1 COLUMN2 1234 3456 4567 5678 3215 I have tried a statement but it does not work. I am using Pervasive 7. Any ideas please? thanks a lot! Tammy
Hi! I want to copy the data from column 1 into column 2. Column2 is empty. COLUMN1 COLUMN2 1234 3456 4567 5678 3215 I have tried a statement but it does not work. I am using Pervasive 7. Any ideas please? thanks a lot! Tammy
Jan 17, 2003 #2 swampBoogie Programmer Joined Jan 6, 2003 Messages 1,660 Location SE update t set column2 = column1 What have you tried? What problem did that incur? Upvote 0 Downvote
Jan 17, 2003 Thread starter #3 jtammyg Technical User Joined Dec 16, 2002 Messages 30 Location US I tried: update table1 set table1.column1=table2.column2 from table1,table2 where table1.type='88' It did not work. Scalable error 507. Upvote 0 Downvote
I tried: update table1 set table1.column1=table2.column2 from table1,table2 where table1.type='88' It did not work. Scalable error 507.
Jan 17, 2003 #4 swampBoogie Programmer Joined Jan 6, 2003 Messages 1,660 Location SE Oh, the columns are in different tables. Thank you for that information. The syntax that you used is not standard but specific to sql server/sybase. How are table1 and table2 related? Upvote 0 Downvote
Oh, the columns are in different tables. Thank you for that information. The syntax that you used is not standard but specific to sql server/sybase. How are table1 and table2 related?
Jan 17, 2003 Thread starter #5 jtammyg Technical User Joined Dec 16, 2002 Messages 30 Location US they are related by the profileID. Upvote 0 Downvote
Jan 17, 2003 #6 swampBoogie Programmer Joined Jan 6, 2003 Messages 1,660 Location SE Update table1 t1 set column1 = (select column2 from table2 where profileid = t1.profileid) Upvote 0 Downvote
Jan 17, 2003 Thread starter #7 jtammyg Technical User Joined Dec 16, 2002 Messages 30 Location US Still not working. Error 844. Invalid number of rows selected. Upvote 0 Downvote
Jan 17, 2003 #8 swampBoogie Programmer Joined Jan 6, 2003 Messages 1,660 Location SE So there may be multiple rows in table2 with the same profileid? Which of those should be chosen? Upvote 0 Downvote