Question

Asked on 2010-11-09 at 06:42:37ID: 26791784

UPDATE statement syntax help

by: jvoconnell500

Rating9.1Excellent

Experts,

This query is taking way to long....I mean way to long...what is wrong with it?

    UPDATE MyTable tabA
SET PROV_REPGRPID = (SELECT DISTINCT REPGRPID_PROV
                                    FROM DR_SPECIALTY tabB
                                        WHERE tabA.PROVIDER_ID = tabB.BRIDGE_SERV_PROV)                                        
                                        where exists(select 1 from tabB PROV where m.PROVIDER_ID = prov.BRIDGE_SERV_PROV )

Not hard for you I'm sure...just very very urgent for me.  Both fields in the "WHERE" clause are indexed and tabA has about 800K records and tabB has about 125K.

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution
View This Solution - Start Your 30 Day Free Trial
Zone
PL / SQL
Tags
Oracle UPDATE
Participating Experts
1
Solution Grade
A

Replies

 by: jocave

Posted on 2010-11-09 at 06:52:27ID: 34782756

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: jvoconnell

Posted on 2010-11-09 at 07:03:50ID: 34782757

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: jocave

Posted on 2010-11-09 at 07:09:14ID: 34782758

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: jvoconnell

Posted on 2010-11-09 at 07:56:08ID: 34782759

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2010-11-09 at 09:52:55ID: 34782760

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: jvoconnell

Posted on 2010-11-10 at 04:59:24ID: 34782761

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: jvoconnell

Posted on 2010-11-10 at 14:16:11ID: 34782762

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Stay Connected

Featured Oracle Articles

Free Oracle tips from Experts Exchange

How Oracle Stores Passwords

Many times a DBA may want to replicate a user from one system to another and migrate that same password,such as refreshing a production system ...

read more

How to FTP with Oracle PL/SQL

Sometimes you need to get data from a server into your database or from your database into a remote server. Learn how to use FTP to ...

read more

How to Send Email Attachments with Oracle

Oracle introduced the UTL_SMTP package with the release of 8i back in 1999, but up through the current version (11.2.0.1) available on OTN...

read more

Oracle Around the Web

The latest Oracle news, tips, and tricks

Oracle Unveils Netra SPARC T3 Servers

New Carrier-Grade Blade and Rackmount Servers Deliver Better Performance, Density and Power Efficiency for the Communications Industry ...

read more

Oracle fixes 21 flaws in Java SE, Java for Business

Oracle is fixing 21 flaws in its Java SE and Java for Business products in its February critical patch update issued this week ...

read more

Obama’s Silicon Valley “Tech Supper”

Why was he there? Who wasn’t invited and why? What did they talk about? Why was he really there? These are the questions being debated ...

read more

Featured Oracle Experts

slightwv

slightwv has answered more than 2,000 Oracle questions and oversees database management within the U.S. Government. Slightwv

sdstuber

A regular presenter at the Collaborate conference, Oracle developer sdstuber is a top expert in PL/SQL and Oracle 9, 10 and 11. sdstuber

Testimonials

What users are saying about our experts

"The Oracle gurus provide answers, solutions and valuable workarounds"

User: schwertner

"Wow! Excellent, valuable explanation. Hats off to you"

User: aseshu70

"Solution worked fantastic and performs excellent! Thanks heaps"

User: klausbrandlhuber

Top Experts

Know a thing or two about Oracle? Join our team of experts today.

    BrowseBecome an Expert