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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:01:50+00:00 2026-06-18T10:01:50+00:00

Database Structure The transaction_detail table entries can be searched by using a search term

  • 0

Database Structure

The transaction_detail table entries can be searched by using a search term submitted by the user. The keywords column includes search terms such as description and customer name and are inserted when a new record is added. Then the keywords column is checked for any matches with the search term.

Person table

+----+------+
| ID | NAME |
+----+------+
| 12 | Mike |
+----+------+

Transaction_detail Table

+----+--------------------------+-----------------+---------------------------+
| ID | DESCRIPTION              | CUSTOMER_ID(FK) | KEYWORDS                  |
+----+--------------------------+-----------------+---------------------------+
| 55 | Delivery from ABC Stores |              12 | ABC stores, delivery,mike |
+----+--------------------------+-----------------+---------------------------+

Scenario

When the customer name(Mike) is changed, it is necessary to update the keyword column in every row with the Customer_id 12.

However when the Transaction_details table has a few hundreds of rows this method becomes quite inefficient. Can someone tell me another way to improve the searching for a record in the table.

  • 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-18T10:01:52+00:00Added an answer on June 18, 2026 at 10:01 am

    As @Niko said, this should be stored in another table ( or two ):

    Keywords table

    +----+------------+
    | id | name       |
    +----+------------+
    |  1 | ABC stores |
    |  2 | delivery   |
    +----+------------+
    

    Person-to-keywords table

    +-----------+------------+
    | person_id | keyword_id |
    +-----------+------------+
    |        12 |          1 |
    |        12 |          2 |
    +-----------+------------+
    

    Then, when you want to know what keyword goes to witch person, just join them on the IDs and you will get your list.

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

Sidebar

Related Questions

this is my database structure for my terms table (categories): id | name |
I have this database structure, SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO; CREATE TABLE IF NOT EXISTS `announces` (
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I have a MySQL database with the following table structure: TransactionType : Transaction_Amount, Transaction_ID,
I have created database table. But there is a strange thing I can insert
I have a vector<set<char> > data structure (transactions database) and I want to know
My database structure looks something like this: Person Id Name FieldA FieldB Phone Id
This is my Database structure, One-to-One mapping in MySQL: This is my java file:
I have the following database structure. ID | Name | Marks I am trying
My Current Database Structure: `images` `tags` `images_tags` ________________ ______________ ________________________ | id | title

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.