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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:10:36+00:00 2026-05-22T18:10:36+00:00

If some object can be a video, audio, or story is it better to

  • 0

If some object can be a video, audio, or story is it better to have a separate table for each category or is it OK to have a "type" field that contains lots and lots of "audio", "video" and "story" entries?

1) ASSUME that each object can only be of one type

2) ASSUME that each object can be of multiple types (In this case it seems its best to define an ObjectType table that stores the relations between objects and types right?)

(I am using a relational database)

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-05-22T18:10:36+00:00Added an answer on May 22, 2026 at 6:10 pm

    Suggested schemas below. By using IDs rather than strings you lessen the amount of storage, and effort required by the database engine when joining. You also make it much easier to rename a category – rather than having to update umpteen rows where category is used, you update the one CATEGORY row.

    With just one category per item:

    ITEM:
    ID
    CATEGORYID
    ...
    
    CATEGORY:
    ID
    NAME
    ...
    

    With multiple categories per item:

    ITEM:
    ID
    ...
    
    CATEGORY:
    ID
    NAME
    ...
    
    ITEMCATEGORY:
    ITEMID
    CATEGORYID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I use LINQ to achieve the following? I have some c# object
Can I get the value of an object field some other way than obj.field
I have a data() object containing some json. Is there a way I can
I have an object config which has some properties. I can export this ok,
i have a object in javascript and some already defined functions. but how can
I have a scene and an object placed in some coordinates. I can transform
In JavaScript, if I have some function I can use the arguments object to
I have several objects in my app that can become nil at some point
I have to make an iPhone project that can process video data in realtime.
I have some code that works fine to show YouTube Video. What I want

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.