Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:33:52+00:00 2026-06-08T18:33:52+00:00

Let me try to explain My case, I have two table and each of

  • 0

Let me try to explain My case, I have two table and each of the table contains two fields that am interested in i.e act_num and identity. The first table has data for both fields but the second table has data for act_num and no data for identity. I am trying to write a query so that if the act_num in the second Table is equal to the act_num in the second table then the identity of the first table is imported into the respective row in the second table? What is the best way to do this? Must I use a cursor?

The tables are Oracle table 10g and am using toad for oracle for the sql. Please Help. SOmething like:

insert into table2 (identity) select identity from table1 
where act_num = select act_num from table2;

I do not need all the identity data from table1. I just need identity data for the act_num that are in both table1 and table2. Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:33:54+00:00Added an answer on June 8, 2026 at 6:33 pm

    You could just update it based on the first table, maybe a solution would be:

    update table2 set identity = (select 
        identity from table1 where act_num = table2.act_num);
    

    This should be enough to update all lines from table2 with the identity of table1 where act_num is the same as found in table1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me try to explain what I need. I have a server that is
Ok so let me try to explain this the best way that i can.
Alright so I have a task, that I have to let the client try
Let me try and explain the scenario: I have a form with multiple items
Let me try to explain this the best I can. I have a component
Let me try to explain this to the best of my ability: I have
Let me try to explain this, I have a string like this: b.c And
Let me try to explain... Lets say I have the following 'a' tags on
Sorry if that question was a bit unclear. Let me try to explain. I
Let me try to explain by example. Say website is hosted at example.com (NOT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.