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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:50:22+00:00 2026-05-21T07:50:22+00:00

I am planning to design db for a website. We have different screens in

  • 0

I am planning to design db for a website. We have different screens in our website. Each screen should have unique id and each screen will be of different type. Info related to screen should store in its type table. How Can i do that?

My plan is use screens table with below fields

Screens
screen_id
screen_type
screen_type_table_name

Home_screen
home_screen_id
screen_id
language
content1
content2
home_screen_field1
home_screen_field2

aboutus_screen
aboutus_screen_id
screen_id
language
content1
content2
about_us_field1
about_us_field2

Relation of the above two tables is 1 to many(screens table to type table). One screen may have many records in type table (in different languages).

Problems here is, I cannot query the data in single query. As I am storing the table name in the screens table.

Can anybody suggest best db design here?

[EDIT]
I cannot store the info in same table..

Reasons:
1) language constraint
2) I need to maintain revision of each content
3) Each screen of different type. So fields will be different for each type. No of fields vary for each type also.
4) I cannot serialize the data too (as I need search kind of facility)

Req
With Screen Id, I should be able to fetch the content in single query. Please give me some suggestions.
Thanks In advance

Thanks
Venu

  • 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-21T07:50:23+00:00Added an answer on May 21, 2026 at 7:50 am

    Your Home_screen and Aboutus_screen tables are exactly the same. You could try it like this:

    //screens\\
    screen_id (PK)
    language (PK)
    type_id (FK)
    content1
    content2
    
    //screen_types\\
    screen_type_id (PK)
    screen_type_name
    

    As you see there is a double Primary Key on the screens table and you keep track of the type of page by the Foreign key to the screen_types, if that’s necessary.

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

Sidebar

Related Questions

I am planning to generate the UI from database. The platfrom will be ASP.net.
i have a split front-end and back-end access database. i am planning to move
I'm planing to build a software in client-server-design. Technology should be Java. Server should
I am planning a relational database to store poker game data (like what would
We (a group of 4 students) are planning to create a web-app on Ruby
I have recently come across SCALA while going through the designs of twitter and
I'm planning to use Ogre3d for 3d rendering to make a game prototype. Wanted
I’m after some thoughts on how people go about calculating database load for the
As a programmer my first instinct is to start coding, but then again chapter
#include<iostream> using namespace std; class Abs { public: virtual void hi()=0; }; class B:public

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.