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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:32:47+00:00 2026-06-08T21:32:47+00:00

I would like to create a database for synonymous and antonymous, but im not

  • 0

I would like to create a database for synonymous and antonymous, but im not sure how to make the relationships between tables for better performance and also which index should i create.

First i thought:

table name: synonymous
id (int) primary key
name (varchar) text index
syn_group_id (int)
ant_group_id (int)  

So all the synonymous will have the same syn_group_id but this is not possible as all the words dont share the same synonymous, same happens for antonymous. So im totally lost on how to do this.

  • 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-08T21:32:48+00:00Added an answer on June 8, 2026 at 9:32 pm

    I would image you could simply have a structure like this:

    table: Words
    id(int, autoindex,primary,key)
    word(varchar, unique index)
    
    table: Synonyms
    lookup_id, related_id (both int related to words table id field with compound primary key indexing)
    
    table: Antonyms (same structure as synonyms)
    

    The synonyms and antonyms tables are simply just many-to-many join tables related to the words table.

    So a sample lookup query could be:

    SELECT w.word FROM words as w INNER JOIN synonyms as s on w.id = s.related_id WHERE s.lookup_id = [LOOKUP_ID];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create my database tables in SMS then generate a script
I would like to create a database for each customer. But before, I would
I would like to create a custom views, because some database fields are not
I would like to create a database containing checksums of a lot of files
I would like to create the ASP.NET User database template on a database of
We would like to use a cronjob to create a database backup. The backup
I have a SQL2005 Express database that I would like to create a copy
I would like to create this shape using just css. I am pretty sure
I would like create a database using value from a variable. Here my script
Essentially, I would like to create a database structure that allows for classifying an

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.