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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:18:48+00:00 2026-05-23T10:18:48+00:00

i have to design a user account/profile tables for a university project. The basic

  • 0

i have to design a user account/profile tables for a university project. The basic idea i have is the following:

  1. a table for user account (email, username, pwd, and a bunch of other fields)
  2. a user profile table.

It seems to me that there are two ways to model a user profile table:

  1. put all the fields in a table
    [UserProfileTable]

    UserAccountID (FK)
    UserProfileID (PK)
    DOB            Date
    Gender         (the id of another table wich lists the possible gender)
    Hobby          varchar(200)
    SmallBio       varchar(200)
    Interests      varchar(200)
    

    …

  2. Put the common fields in a table and design an ProfileFieldName table that will list
    all fields that we want. For example:

    [ProfileFieldNameTable]
    
    ProfileFieldID int (PK)  
    Name           varchar 
    

Name will be ‘hobby’, ‘bio’, ‘interests’ etc…Finally, we will have a table that will associate profiles with profile fields:

[ProfileFieldTalbe]
ProfileFieldID   int (PK)
UserProfileID    FK    FK
FieldContent     varchar

‘FieldContent’ will store a small text about hobbies, the bio of the user, his interests and so on.

This way is extensible, meaning that in this way adding more fields corresponds to an INSERT.

What do you think about this schema?

One drawback is that to gather all profile information of a single user now i have to do a join.

The second drawback is that the field ‘FieldContent’ is of type varchar. What if i want it to be of another type (int, float, a date, a FK to another table for listboxs etc…)?

  • 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-23T10:18:49+00:00Added an answer on May 23, 2026 at 10:18 am

    I suggest 2nd option would be better,
    The drawbacks which you mentioned are not actual drawbacks,

    Using JOINS is one of ways to retrieving the data from the 1 or more tables ,

    2) ‘FieldContent’ is of type varchar : I understand that you are going to create only ‘FieldContent’ for all your other fields

    In that case, I suggest that you can have ‘FieldContent’ for each corresponding fields so that you can give any any kind of Data Type which you wish.

    Coming to the first option,

    1)If you put all the fields in one table may lead lot of confusion and provides less feasibility to extend later, if any requirements changes

    2)There will be lot of redundancy as well.

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

Sidebar

Related Questions

For my university assignment I have to design some basic managment system for sicknesses
For a university mid-term project I have to design a configurable processor, to write
Think Design: I have many applications that share the same user database! Other tables
I have an object, based on the Singleton design, that I use for user
I plan to have a completely separate layout/design for a desktop Vs tablet user.
I have a design issue that I would appreciate some input on. I would
I have started design of a ColdFusion application that is entirely web based. Not
Suppose I have a design like this: Object GUI has two objects: object aManager
Let's say you are a GM dba and you have to design around the
We have a vxWorks design which requires one task to process messages from two

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.