Ask Your Question
4

What is the most suitable location in a database for storing the various fields associated with different types of products such as movies and books?

asked 2023-03-27 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-06-12 07:00:00 +0000

bukephalos gravatar image

The most suitable location in a database for storing the various fields associated with different types of products such as movies and books would be a table for each type of product. Each table would contain fields specific to that type of product, such as title, author, and ISBN for books, and title, director, and release date for movies. This approach is known as table per subclass or table per concrete class in object-oriented programming. It allows for the specific data and attributes of each product type to be easily accessed and managed in a structured and efficient way.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-03-27 11:00:00 +0000

Seen: 1 times

Last updated: Jun 12 '21