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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:51:28+00:00 2026-06-15T04:51:28+00:00

I’m not sure how to search for this, so here it is. My own

  • 0

I’m not sure how to search for this, so here it is.

My own terms for this are “synchronized” and “deviated” database schemas. If there’s an official term for all this I’d like to know it.

This might seem a bit stupid, but I’ve been stuck on which direction I want to go. I’m new to creating database schemas. I’m using SQLite on a Java application, and using a single .db file to contain different categories of information in different tables. So the first table contains accountID/username/password; and maybe the next table would be accountID/firstname/lastname/email. I plan on adding additional tables in the future as new features are implemented.

The decision I’m having a problem making here is… if a user makes a basic account, but doesn’t fill out anything else– should I make a blank row for those other tables? Or should I not add a row, and make the row when they do enter data for those tables(which could be months later)? I hope this makes sense.

What are the pros/cons? Implementation/programming? Efficiency? etc.

Thanks

  • 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-15T04:51:29+00:00Added an answer on June 15, 2026 at 4:51 am

    IMO, all the single-valued user attributes should reside in a single table, i.e. users table would contain the following columns:

    • accountId
    • userName
    • password
    • firstName
    • lastName
    • email

    When onboarding a user, you can specify each attribute as either mandatory or optional. Optional attributes will be NULLable columns in the database. When the user specifies values to these attributes, you would just update them in the table then.

    Going forward, while adding new features, if you happen to come across a single-value attribute of a user, you would need to alter the users table and add that column with default value as null.

    If the frequency of adding new attributes to user is too high, then you can move towards an attribute table model where each row will store one additional attribute of the user. There would be a one-to-many relationship between the users table and this user_attrs table. HTH.

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

Sidebar

Related Questions

This could be a duplicate question, but I have no idea what search terms
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.