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 8876969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:20:59+00:00 2026-06-14T19:20:59+00:00

I have the following error appearing: INSERT INTO GroupMembers VALUES (‘Goldfrat’, ‘Simon Palm’) *

  • 0

I have the following error appearing:

INSERT INTO GroupMembers VALUES ('Goldfrat', 'Simon Palm')
*
ERROR at line 1:
ORA-02291: integrity constraint (SHAHA1.IAM_IS_GROUP_FK) violated - parent key 
not found 

The constraint in the GroupMembers table is:

CONSTRAINT  iam_is_group_fk FOREIGN KEY(is_group) REFERENCES Members(group_name)

The Members Table looks like this:

CREATE TABLE Members (
  group_name  VARCHAR2(40),
  CONSTRAINT  g_id_pk PRIMARY KEY(group_name),
  CONSTRAINT  m_group_name_fk FOREIGN KEY(group_name) REFERENCES Artist(artistic_name));

All of the tables are created fine until it comes to creating the GroupMembers table. Anyone have any ideas? I’ve been scratching for quite a while.

  • 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-14T19:21:00+00:00Added an answer on June 14, 2026 at 7:21 pm

    The problem is that

    CONSTRAINT iam_is_group_fk FOREIGN KEY(is_group) REFERENCES Members(group_name); references the table Members on the group_name field.

    This means that the field is_group on the table GroupMembers must have an identical value on the table Members and group_name field.

    In my opinion, this is bad practice.
    First of all, you should have a primary key field on the table GroupMembers. You should not store the names of the group members in the table GroupMembers, but their corresponding id from the table Members.

    Also, the table Members should look something like this:

        CREATE TABLE Members (
        member_id   NUMBER PRIMARY KEY
        member_name  VARCHAR2(40),
        CONSTRAINT  g_id_pk PRIMARY KEY(member_id),
        CONSTRAINT  m_group_name_fk FOREIGN KEY(group_name) REFERENCES Artist(artistic_name));
    

    Then on the table GroupMembers, I suppose you want to associate some members to their set of groups and back, so you should do something like this:

        CREATE TABLE GroupMembers (
            member_id   NUMBER,
            group_id    NUMBER
        )
        CONSTRAINT  iam_is_member_fk FOREIGN KEY(member_id) REFERENCES Members(member_id);
        CONSTRAINT  iam_is_member_fk FOREIGN KEY(group_id) REFERENCES Groups(group_id);
    

    Supposing that you have a table Groups containing all the group details, with the primary key stored as number , and name group_id.

    Always remember that each table must have a primary key. It is good practice for this key to be a number.

    So by having member_id in Members, group_id in Groups, you can create a many-to-many relationship in GroupMembers. Also, put a unique index on this table so you don’t have duplicates ( the same member associated with the same id several times ).

    Look at this example linking users to roles. It is the same case:
    enter image description here

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

Sidebar

Related Questions

I have the following, rather irritating, warning appearing my visual studio error list: The
I use wcsncasecmp inside c/c++ app. Compile have following error: error: 'wcsncasecmp' was not
I have the following error with my ASP.NET web site. I have just moved
I have the following error: LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
I have the following error message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on
I have the following error Exception in thread main javax.naming.NameNotFoundException: CounterBean not bound trying
I have the following error when I try to compile my code in g+
When printing a report, the user sometime have the following error: CrystalDecisions.CrystalReports.Engine.LogOnException: Error in
I'm trying to install memcached-1.2.8-repcached-2.2.1 I have the following error after running make :
After a recent submission I have gotten the following error: Invalid Signature - the

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.