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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:21:03+00:00 2026-05-19T00:21:03+00:00

I need advise about a database structure. I need to capture data from the

  • 0

I need advise about a database structure. I need to capture data from the web about one specific subject on few specific websites and insert that data to a database.

The problem with this task is that the information is not linear, if I try to design tables with fields for all possible data I will end up with many row fields with NULL values. There are any problem with this(end up with many row fields with NULL values)? Or should I user other kind of structure? For example store the data in one field and that field containing an associative array with data.

What I mean with non linear data is the following:

array(
      'name' => 'Don',
      'age'  => '31'
     );


array(
      'name' => 'Peter',
      'age'  => '28',
      'car'  => 'ford',
      'km'   => '2000'
     );

In a specific website search I will store only “name” and “age”, and in other website I will store “name”, “age”, “car” and “km”.

I don’t know If I explain weel my problem. My english is not very good.

Best Regards.

  • 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-19T00:21:03+00:00Added an answer on May 19, 2026 at 12:21 am

    Ok lets track back..and assume you are most comfortable with databases….you can always break down a nonlinear structure to linear type..only query performance will get hit..

    No problem in rows with lot of null values. Depends on db implementation, but I have seen such designs before and they are pretty flexible.

    Let me give an example
    Lets say we have to store hours worked per week..but in your case week can have any number of days.

    So you define a table with columns like

    StartDate, Id, MondayHour, Tuesdayhour, etc etc..upto SundayHour
    If you want to add another hour like MondayHour1, just add the column and modify your queries..

    To store the same structure is a linear(normalized) way(not sure if linear is a right word here) just define a table as follows DayID, DayName

    And then your hours table will have StartDate, ID, DayID, Hours..
    Only now you need a join on two tables.

    Hope I have understood and answered your question correctly

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

Sidebar

Related Questions

I've designed a database structure where data is collected about cars over a period
need ask you about some help. I have web app running in Net 2.0.
I have a question about database 'style'. I need a method of storing user
i need to get some data somewhere to put in a timeline. the data
For a small project I need to utilize a simple database with very light
I just need some advice about using tags. I'm working on a website right
I need to update/replace the data in datatable.column. The table has a field named
I need advice on how to have my C# console application display text to
I need advice regarding subselect performance in MySQL. For a reason that I can't
I need some advice as to how I easily can separate test runs for

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.