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

  • SEARCH
  • Home
  • 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 6730219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:22:54+00:00 2026-05-26T10:22:54+00:00

I have table1 with uniquely indexed PK on ColA. I have table2 with uniquely

  • 0

I have table1 with uniquely indexed PK on ColA.

I have table2 with uniquely indexed PK on ColA and ColB

I add FK to table2 on ColA back to table1.

I know that I should have indexes on foreign key columns.
https://forums.oracle.com/forums/thread.jspa?threadID=201154
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:292016138754
according to the above articles.

My question is the index on the PK for table2 good enough to satisfy that requirement. The index should be in the order of ColA,ColB so it should be able to use that as a index for the FK because the ColA comes first. right?

Thanks.

  • 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-05-26T10:23:00+00:00Added an answer on May 26, 2026 at 10:23 am

    Yes, you are right. There should be no need for a separate index on ColA in table2.

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

Sidebar

Related Questions

I have two tables (TABLE1, TABLE2 - unique i know) that has a 1-to-many
I have Table1 and Table2 related on Table1.ID. There can be zero or more
I have records in table1, if the records exist, it must copy into table2.
I have two tables: table1, table2. Table1 has 10 columns, table2 has 2 columns.
I have following databases: test table1 fields: id, password, name, lastname test2 table2 fields:
you have this 2 tables: table1 ------------- id fromId fromOtherTableId person and Table2 -------------
I have table1 with columns: def_id, def_name, username etc I have another table table2
Tables i have Table1 user_id, date Table2 user_id, status I need something like UPDATE
I have the following that will enumerate over the model and add an invoice
I have a range of objects that have a long field whose value uniquely

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.