473,486 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Update Query working on SQl server not on Oracle

1 New Member
Expand|Select|Wrap|Line Numbers
  1. UPDATE
  2.      jt
  3. SET 
  4.     jt.Assigneduser = (SELECT u.userid FROM Users u where u.username ='Debbie Ross')
  5. FROM
  6.    Jobstasks jt
  7.     Users u on jt.assigneduser = u.userid
  8.    Funds f on  jt.fundid = f.fundid
  9.      Jobs j on jt.procindex = j.procindex
  10.     Tasks t on jt.taskindex = t.taskindex 
  11. WHERE
  12.      j.jobdescription = 'UnderWriting - Insurance Submission'
  13.      and (
  14.          T.Taskdescription = 'Review/Check Documents for Assessment'
  15.          or jt.tasksequence = 2
  16.      )
  17.      and f.dbcode = 'FBRPW'
  18.      and f.subfund = 'FBRP'
  19.      and (u.username = 'Debbie Ross'
  20.          or jt.assigneduser is NULL)
  21.      and jt.inactivejobtask = 'N';
The above query is working on SQL server not on Oracle PL/SQL. Can someone please help?
Jan 17 '14 #1
2 1408
Rabbit
12,516 Recognized Expert Moderator MVP
It would help if you explained what "not working" means. Are there error codes? Is it updating the wrong rows? It it not updating any rows? If there are error messages, what are they?

Also, that query won't run on SQL Server either... you never specify the join clause. It will error out in SQL Server.
Jan 17 '14 #2
arunnarang
2 New Member
kINDLY GIVE THE STRUCTURE AND DATA OF TABLE
Jan 28 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
24254
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003,...
3
8401
by: Alex | last post by:
Hi folks, Hopefully this is a simple fix, but I keep getting Syntax error with this statement in an MS SQL DTS statement and in Query Analyzer: Update A Set A.deptcode = A.deptcode, A.type =...
6
2063
by: mo | last post by:
I need to bring the ssn's into UniqueSups (supervisors) from tblNonNormalized. My inherited DB is not normalized and I find it extremely irritating due to the workarounds needed. I created...
10
3243
by: Randy Harris | last post by:
I imported records into a table, later found out that many of them had trailing spaces in one of the fields. If I'd caught it sooner, I could have trimmed the spaces before the import. This...
4
4322
by: Gilberto Campos | last post by:
Hi all. I am having a strange problem. I am developping an application that acceses an Access db through Jet (.UDL files). I have writen parametric INSERT queries that work fine. I am now...
3
5115
by: Greg Strong | last post by:
Hello All, Is the only solution to an update query which requires the records in a certain order to dump the records into a temp table in the required order, then do the update query? I've...
3
2165
by: rdraider | last post by:
Hi all, Any thoughts on the best way to run an update query to update a specific list of records where all records get updated to same thing. I would think a temp table to hold the list would be...
3
4885
by: Roger | last post by:
My application connects to a DB2 V8.2 EE database running on AIX. I need to now lookup a table in SQL SERVER via the DB2 connection. I also need to run an sql that joins a DB2 table with an...
11
12378
by: gnortenjones | last post by:
I have a linked table (to an oracle db), and I am trying to run a simple update query against it to change some data, but I am getting the following error: "...didn't update 0 fields due to a type...
5
17902
by: Roobmeister | last post by:
Hi everyone, Let's say I want to update a table based on a join with another table. In SQL Server, this is easy. I can just write my update query this way: UPDATE upt SET upt.name =...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.