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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:54:12+00:00 2026-05-20T05:54:12+00:00

I am planing on a Library Management System where students check out items. My

  • 0

I am planing on a Library Management System where students check out items.

My problem is with how to design the database if the library carry different medias (eg. mircofilm, dvds, cds etc) along with books. My problem lies with the fact that dvds don’t have the same attributes that of books, or books don’t have the same attributes as microfilms.

So, how should I handle all these different types of medias?

Thank you.

  • 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-20T05:54:13+00:00Added an answer on May 20, 2026 at 5:54 am

    If the various media have some common attributes then put those in one table and put the other attributes in a separate table each.

    Further, this common table should have a mediaType field, which is a foreign key from another table.

    For example

    Table MediaType

    Id  Name
    1   Book
    2   DVD
    3   CD
    4   Microfilm
    

    Table Media

    Id  MediaType  Title
    1   1          Gone With the Wind
    2   2          Avatar
    3   2          Gladiator
    4   2          Never Say Never
    5   3          Some Music CD
    

    Table MediaBook

    Id MediaId  Author
    1  1        Margaret Mitchell
    

    Table MediaDVD

    Id  MediaId  Director
    1   2        James Cameron
    

    etc.

    This way design will also help in any reporting you need to do since your Media table can point to the table in which additional information for the specific type of media exists. This design will also allow you to extend the attributes of various media independently of other types of media as well as easily add new media types to your system. This design will also give you a normalized data model while maintaing the integrity of your data using simple relationships and null/not null fields.

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

Sidebar

Related Questions

i am planing to write a C# class library which will include my encryption
I am creating a back up system for a content management system. This backup
Is there any library for playing MKV (matroska multimedia container) files in Flash (AS3,
When using the MapKit library and placing a pin/MKAnnotation, you will implement the MKAnnotation
I am developing a P2P streaming application. There are many library for playing multimedia
I have been playing with the Ruby library shoes. Basically you can write a
I have a MPMusicPlayerController playing the entire iPod library and I'm subscribed to the
I have been playing around with the Rhino ETL library and really like the
I have a C library that I'm planning to use in an iPhone application.
I am planning to use libcurl in my project. I had downloaded the library

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.