Solved

Sybase Update Query Help

Posted on 2002-07-09
2
514 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
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Code not seeing ODBC driver for Sybase 1 1,057
My first ASE 15.7 developer edition installation. 12 2,142
Sybase sample database 13 693
Executing multiple sybase statements in perl dbi 2 93
Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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