Solved

Sybase Update Query Help

Posted on 2002-07-09
2
538 Views
Last Modified: 2008-03-17
I have 3 tables:
Profl with fields: id, eventcode, parent
Usr with 2 fields: id, rolename
Roac with 3 fields: eventcode, rolename, parent

I need a query that will update the parent field from the Profl table with the value from the parent field from the Roac table based on the rolenames matching (from Roac and Usr) and the ids matching from the Profl and Usr tables.

Am I able to do this with an update statement? I know I can do it with a stored proc but want more of a 'quick and dirty'.

Thanks.
0
Comment
Question by:pmacmann
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
amitpagarwal earned 200 total points
ID: 7142297

update Profl
set parent = R.parent
from Profl P,
Usr U,
Roac R
WHERE P.id = U.id
and U.rolename = R.rolename

hope this helps.
0
 
LVL 5

Expert Comment

by:amitpagarwal
ID: 7153525
pmacmann,

any updates on this query ??
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question