First sorry for the cross post, but this is something that both Access Gods and/or Oracle Gods might be able to help me with a solution.
I am trying to create an UPDATE query in Oracle 7.3.4 to update a field in one table with the value from a field in another table. I can write the query in MS Access 97 and have gotten it to work. But when I try to copy it to Oracle's SQL Worksheet, make translations from Access to Oracle, it doesn't work.
The Access code that works is (for readability, I have removed the square brackets from around field names):
What I converted it to for Oracle and does not work is:
The obvious error is on the first line having the ", tbl_Agent_List" before the set command. If I try removing it, I get invalid column names the first time I try to reference a field from that table.
I need to have this query in place by the first of the year and I am beating my head senseless against the wall. Any help would be greatly appreciated.
Terry M. Hoey
th3856@txmail.sbc.com
Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?
I am trying to create an UPDATE query in Oracle 7.3.4 to update a field in one table with the value from a field in another table. I can write the query in MS Access 97 and have gotten it to work. But when I try to copy it to Oracle's SQL Worksheet, make translations from Access to Oracle, it doesn't work.
The Access code that works is (for readability, I have removed the square brackets from around field names):
Code:
UPDATE EISADMIN_AGENT, EISADMIN_TBL_AGENT_LIST
SET EISADMIN_AGENT.WORKTYPE = eisadmin_tbl_agent_list.worktype
WHERE (((EISADMIN_TBL_AGENT_LIST.CENTER)="SAN") AND
((EISADMIN_AGENT.DATETIME)=DateAdd("d",-1,Date())) AND
((EISADMIN_AGENT.AGENT_ID)=eisadmin_tbl_agent_list.agentid));
Code:
UPDATE Agent, tbl_Agent_List
SET Agent.worktype = tbl_Agent_List.worktype
WHERE ((tbl_Agent_List.center = 'SAN') AND
(substr(Agent.datetime,1,10) = SYSDATE - 1) AND
(Agent.agent_id = tbl_Agent_List.agentid));
I need to have this query in place by the first of the year and I am beating my head senseless against the wall. Any help would be greatly appreciated.
Terry M. Hoey
th3856@txmail.sbc.com
Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?