I want to update table2.name (name reference from table1)
I have to two table
table1
id name
1 Tim
2 Ann
3 Demi
table2
cust id
01 1
02 2
table2.id reference from table1
I add column Name in table2
cust id name
01 1
02 2
I want to update table2.name (name reference from table1)
How to update.
:)
SQL> desc dept1
Name Null? Type
DEPTNO NUMBER(2)
DNAME VARCHAR2(14)
LOC VARCHAR2(13)
SQL> desc emp1
Name Null? Type
EMPNO NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SQL> alter table emp1 add dname varchar2(14);
Table altered.
SQL> update emp1 e set e.dname =
2 (select d.dname from dept1 d
3* where d.deptno = e.deptno)
SQL> /
14 rows updated.
SQL> select deptno,dname from dept1
SQL> /
DEPTNO DNAME
10 ACCOUNTING
20 RESEARCH
30 SALES
40 MyDept
SQL> select deptno,dname from emp1
SQL> /
DEPTNO DNAME
20 RESEARCH
30 SALES
30 SALES
20 RESEARCH
30 SALES
30 SALES
10 ACCOUNTING
20 RESEARCH
10 ACCOUNTING
30 SALES
20 RESEARCH
30 SALES
20 RESEARCH
10 ACCOUNTING
14 rows selected.
SQL>
Similar Messages
-
I have a Mac G4 with a 10.3.9 OS and I want to update without losing any filters from my Photoshop 7. Should I go to 10.4 or higher?
Why do you need to update at all?
In order to upgrade you will have to purchase a retail copy of either Tiger or Leopard neither of which are easy to come by, and they tend to be a bit expensive. And, there's no assurance that the version of PS you now use will be compatible with a newer version of OS X. -
Want to update Moving or Standard price from material master to ***.Value ?
Hai Experts,
As per Subcontract Logic, 1.1 % of the standard price should be update in J1ID Asseable value..
so I need to update Standard price value should be automatically update in Assesable value whenever it price changes..
Kindly guide meHi,
I think its not possible to shiftf from th MAp to J1Id assessable value.
Need to maintina in the field place of J1ID.
Regards,
Andra -
I want to update my iPad series 1 from 5.1.1to or above?
HI Everybody,
THis is my first time on here.
CAn anyone help me please? I have a series 1 3G IPad with operating system 5.1.1 and I would like to update it to 6or higher. Can anyone tell me if this is possible and how do I do it?
TIggrrrrYou're welcome.
The Apple article below may help you install some older versions of Apps on your iPad.
http://support.apple.com/kb/ht5919 -
Update center _ALWAYS_ wants to update Java API reference
why is it that even if I run the update for JSC back to back in two consecutive sessions it will always want to update the Java API reference? it is changing that often??
Hi jakeochs,
This problem still persists. I have opened a change request on your behalf. Thanks for bringing it to notice.
Regards,
Creator Team. -
I want to update timestamp(3) column with respect to varchar2
Hi all,
I have a date field column with varchar2 as datatype :
create table t1 (id number,date1 varchar2(35))
insert into (1,' 3/13/2011 10:22 AM');
insert into (2,' 3/14/2011 10:22 AM');
insert into (3,' 3/15/2011 10:22 AM');
I want to update table2
create table t1 (id number,date1 timestamp(3))
insert into (1,' ');
insert into (2,' ');
insert into (3,' ');I want to update t2 with date column in t1
can any one help me
Thanks in advance!!!!!Hi,
846773 wrote:
Hi all,
I have a date field column with varchar2 as datatype : That's not a very good idea. You should always use a DATE or TIMESTAMP column for dates.
create table t1 (id number,date1 varchar2(35))
insert into (1,' 3/13/2011 10:22 AM');Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful.
Test them and make sure they work before you post them. You forgot the table name (after the keyword INTO).
insert into (2,' 3/14/2011 10:22 AM');
insert into (3,' 3/15/2011 10:22 AM');
I want to update table2
create table t1 (id number,date1 timestamp(3))This is the same name you used for the other table. I'll assume you meant to say t2 here, not t1.
insert into (1,' ');Don't try to insert a string (such as ' ') into a TIMESTAMP column, You can INSERT a literal NULL, or simply not INSERT anything into that column.
insert into (2,' ');
insert into (3,' ');I want to update t2 with date column in t1Use TO_TIMESTAMP to convert the string into a TIMESTAMP:
MERGE INTO t2 dst
USING (
SELECT id
, TO_TIMESTAMP ( date1
, 'MM/DD/YYYY HH:MI AM'
) AS ts
FROM t1
) src
ON (src.id = dst.id)
WHEN MATCHED THEN UPDATE
SET dst.date1 = src.ts
; -
UPDATE COLS OF ONE TABLE FROM VALUES OF CERTAIN COLU OF ANOTHER TABLE
I have two tables table1 table1
(col1, (col1,
col2, col2,
col3, col3,
col4, col4,
timeperiod) timeperiod)
both have same column names. table1 has data for certain timeperiod. table2 also has the data for the same timeperiod. table2 has the correct data for col1, col2. I want to update the columns (col1, col2) in table1 with data from columns (col1, col2) in table2
and leave the col3, col4 in table1 untouched (no change). Each time I might have to update different columns. some tables have more than 20 columns. This is like, I need to update whatever field I want.
How do I do this with a script or block declaring variables. How do I control the update for certain columns. This is not a one time thing which I will be doing. I have to do this for several tables whenever the data is not right.
Thank you,
svHi ,
you can use MERGE for this kind of situations....here i have given some samples...refer this...
MERGE INTO bonuses D
USING (SELECT employee_id, salary, department_id FROM employees
WHERE department_id = 80) S
ON (D.employee_id = S.employee_id)
WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
VALUES (S.employee_id, S.salary*0.1);
By this way u can update any no. of columns...I hope this will help you...
Thanks
Raj -
Updating the ZTE Open C from Mozilla Nightly system images
I wanted to update my ZTE Open C from 1.4 to 2.1. When I update it from the official Mozilla Nightly system images from http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/ everything is good except the font is tiny. I tried to apply the font fix but it doesn't work. Any idea how to fix this ?
Hi RazorMKD,
Thank you for your response. I'm sorry to hear that you also have issues when flashing your ZTE Open C with with older versions of the Flame build.
Can you please explain the steps you are taking to flash your device? Flashing the ZTE Open C device with a Flame image requires a shallow flash, since the Gonk its may not work correctly on the ZTE Open C.
Where did you purchase the device? Can you also attempt to flash your device with ZTE's commercial rooted build to see if this issue persists? Please follow [http://en.comebuy.com/developer-firefox-os-open-c.html this link] for the files and further instructions.
Please let us know the results.
In the meantime, I contacted developers in the dev-b2g mailing list so that others can chime in with possible solutions.
- Ralph -
Hello,
I have this problem on updating applications on my iPhone 4s 5.1.1 (jail broken) i dont know if you can help me with.
when ever i want to update an application on apple store i get a different user name then mine([email protected]) this user name is not mine but its always there only on updating my app's.
thanking you in advance for your kind help.Under the Terms of Use of this forum it is prohibited to discuss jail breaking. By jail breaking your iPhone you void any warranty you may have and forfeit any support from this forum.
-
How do I change the name of my new iMac computer? Migration Assistant gave it the name of my old computer. I want to update it.
System Preferences>Sharing
-
hi my name is sam and i want to update my iphoto and download it and i cant because i already download that by another appl id so i dont know what can i do
and i update my macbook air to last versionContact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues.
-
I want to know the name icloud account
I want to know the name icloud account
<Personal Information Edited by Host>Hi,
As Rich Mentione there is no BAPI for Schedule Agreeement.
You can Try : ME_UPDATE_AGREEMENT_PO -Update Pur Document
ME_READ_OUTLINE_AGREEMENT_DISP --Read outline agreement item (From Agreement no and item no)
Lanka -
Vendor name & Reference field to be copied to payment document
Hi Gurus,
I am doing vendor paymen by t.code F110 . I want to copy vendor name and reference field to be copied from original booked billing document to payment document TEXT Field and Reference respctively. How do i do the same ?? pleae advise.
Regards
AVINASHtHi Avinash,
Were you able to populate the field XBLNR in the payment document with the Vendor invoice number field? Kindly let me know how you were able to successfully do it.
Thanks,
Thameem -
I want to change document name.
Hi, all.
I want to change document name.
But the business one can change only AP document.
AR document can't change their name.
Is anyone know why only AP documents can change their name.
Thank you for your help.
seiichiDear
In Business one it is only possible to change the purchasing documents. you actually can do it from sdk. change the system form title and menu name by updating Form.Title and MenuItem.String, as long as you get these UI API
objects with your code.
Best Regards,
xiaodan AN -
Update BP name in open documents - not in Deliveries
Hi all,
today I experimented the new function that lets you update open documents when a Business Partner name is changed. I did this in SBO 8.81 PL04. In OEC Computers, I picked a customer with the following open documents: 2 Deliveries, 2 POs and 6 Opportunities. I changed the BP name and said Yes when asked if I want to update open documents. The POs and Opportunities where all updated, but not the Deliveries.
I was wondering why the Deliveries were not updated. I went across Note #1529237, which states that this function was corrected in 8.8 PL18. The note does not talk about Deliveries. Is it a bug or a feature ?
ThanksHi,
Welcome you post on the forum.
It is not a bug but a feature. Delivery will affect financial data. That is why you can not update.
Thanks,
Gordno
Maybe you are looking for
-
My pictures in my slides are randomly switching
I have a heavy keynote file where my little pictures (<15ko) are now randomly being switched between them... what is happening... I use keynote since 2008 and it's happening since i have updated with the last version... what is the problem???? Thank
-
Bus Powered External Firewire (800) Drives and iPod?
I bought a WD Passport drive, and was pretty upset when i found out that the usb ports on my powerbook cannot power the drive. crap. can the firewire 800 port on my powerbook power these drives: http://www.kanotechnologies.com/products/SF800-40.cfm h
-
When I click on ping, I can't do anything? Help
My ping doesn't do anything. It just says to download ITunes 10. Then when I try it says I already have it?
-
Error message on dowloading App Manager update
I'm trying to download the update to CC Application Manager and get an error message that it can't be loaded. I've tried twice. Before I attempt to download any other updates, I want to make sure I've got the manager updated.
-
Problem with a new iDVD08 Theme - please help
Here is my problem with a new iDVD08 Theme: When I used a new iDVD08's theme (a first from the top, from the new 07 - the Revolution one) for my iMovie06 imported to iDVD08 with the project's chapters made in iMovie, all works fine, B U T: when I cli