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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:08:38+00:00 2026-06-05T10:08:38+00:00

I have a table which only contains id and a field whose data is

  • 0

I have a table which only contains id and a field whose data is a list of data. e.g.

--------------
| id |  data  |
| 1  | a,b,c,d|
| 2  | a,b,k,m|
---------------

I guess it’s not a good design that put a list data in a field, so I want to know how can I redesign it?

  • 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-05T10:08:39+00:00Added an answer on June 5, 2026 at 10:08 am

    As per me you need two tables i.e. Master and Transaction tables only when some details are gonna be same for every records and some are gonna be changing. In your case if there are not any other thing related to your id field is gonna be same you can carry on with one table and with following structure.

    --------------
    | id |  data  |
    | 1  |   a    |
    | 1  |   b    |
    | 1  |   c    |
    | 1  |   d    |
    | 2  |   a    |
    | 2  |   b    |
    | 2  |   k    |
    | 2  |   m    |
    ---------------
    

    BUT if there are any other things related to the id fields that is gonna be same for same id records you will have to use two tables.
    like following case. there are 3 fields id, name and data.
    and you current table looks something like

    --------------------------
    | id |  name    |  data  |
    | 1  | testname | a,b,c,d|
    | 2  | remy     | a,b,c,d|
    --------------------------
    

    your new table structure should look like.

    table 1 Master

    -----------------
    | id |  name    |
    | 1  | testname |
    | 2  | remy     |
    -----------------
    

    Table 2 Transaction

        --------------
        | id |  data  |
        | 1  |   a    |
        | 1  |   b    |
        | 1  |   c    |
        | 1  |   d    |
        | 2  |   a    |
        | 2  |   b    |
        | 2  |   k    |
        | 2  |   m    |
        ---------------
    

    For better database management we might need to normalize the data.
    Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database via the defined relationships. You can find more on below links

    1. 3 Normal Forms Database Tutorial

    2. Database normalization

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

Sidebar

Related Questions

i have a website page that contains only data of which one field gives
I have table called FinalForgotten which only contains one field called aname. The field
I have a Statuses table which contains only an id and name field (Active,
I have created an archive table which will store data for selecting only. Daily
I have a table which contains my ads that can be searched in sql-server-2008.
I have a table that contains procedure codes among other data (let's call it
I have a database table which holds meta data about images, the field in
I have a table which contains a field of type numeric(28,10) . I would
I have a large table in SQL; one field contains the user's name, which
I currently have a table which only has a single editable column. I have

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.