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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:07:01+00:00 2026-05-18T09:07:01+00:00

I have a mysql table with my users… each user has various attributes like

  • 0

I have a mysql table with my users… each user has various attributes like Verified(yes/no), Member (yes/no) etc.. i dont need to explain more..is a very common case…

i’ve been alwasy using to build my tables with single rows like this, maybe for lazyness or just because i never built big DB so far…

userId | userName | Verified | Member
---------------------------------------
  3213 | Jon      | 1        | 0

but i wonder if there is any advantages to build it into separate tables, and create relationships later, like

User Table

userId | userName | 
-------------------
  3213 | Jon      | 

Memberships table

memberId | userId   | Member   |
--------------------------------
  555748 | 3213     | 0        |

Verifications Table

memberId | userId   | Verified   |
----------------------------------
  555748 | 3213     | 1          |

what is the real benefit from this second choice?

  • 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-18T09:07:02+00:00Added an answer on May 18, 2026 at 9:07 am

    There’s no real advantage here, only disadvantages. There is a 1:1 relationship between the tables, and now you have to join the two tables to get the verification state of a user. Also, there are more possible cases now: a user can be verified (1) unverified (0) or the record might not exist.

    You can better put these extra fields in the same table, unless there’s a 1 to many relationship. For example, a user can have posts, friends, pictures, which you store in a separate table because you don’t know how many you need to save.

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

Sidebar

Related Questions

I have a user table in my mysql database that has a password column.
I have a mysql table with users and their weekly calendar. Every user can
I have a mysql table which will store users email addresses (each is unique
I have a simple MySQL table like this: create table `users`( `id` int(5) NOT
I have a MySQL table with approximately 3000 rows per user. One of the
I have a MySQL table of users whose primary key is an auto-incrementing integer
I have one MySQL table, users , with the following columns: user_id (PK) email
I have a big MySQL users table and need to get six random rows
I have a MySQL table that records classified listings. We don't force users to
I have a mysql table like below: id name points 1 john 4635 3

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.