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

  • Home
  • SEARCH
  • 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 283043
In Process

The Archive Base Latest Questions

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

A long time ago I took over maintenance of a web based content management

  • 0

A long time ago I took over maintenance of a web based content management system that had a pretty clever database table in it.

The table structure was like:

TABLE: tPage (PK on PageID, Version, Status)

PageID, PageTitle, Version, Status
1,      Homepage,  1,       Archived
1,      Homepage,  2,       Live
1,      New Home,  3,       Draft

TABLE: tElements (PK on PageID, Version, ElementName)

PageID, Version, ElementName, ElementValue (nText)
1,      1,       IntroText,   Hi, this is our first version.
1,      2,       IntroText,   This is the current version,
1,      2,       MainBody,    We sell sprockets.
1,      3,       IntroText,   Welcome text here
1,      3,       MainBody,    We sell sprockets and widgets.

To get the main body text of the current homepage you’d write a query like:

Query:

SELECT ElementValue
FROM   tElements, tPage
WHERE  PageID        = 100
       ElementName   = 'MainBody'
AND    tPage.PageID  = tElements.PageID
AND    tPage.Version = tElements.Version
AND    tPage.Status  = 'Live'

Result:

We sell sprockets.

The beauty of this table structure, (to me at least) was that I didn’t need to add new columns to a table when I wanted to add new types of data. I just created a new ElementName. But functionally it was like a new column.

I’ve since used this arrangement in a few other projects where I needed a database that would change easily as new features/content types would be added. For example, in my above CMS example, we started with just IntroText, and MainBody, but by a few years later we ended up with CoursePrice, ContactPerson, RelatedCourses, SetupFee, and I found this way of organising our data to be very flexible.

My question is, what is this type of table structure called? I’m not really sure what keywords I should be googling for more information.

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

    It’s called “entity-attribute-value” or “EAV”.

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

Sidebar

Related Questions

So we already have a web service that was develop a long time ago.
Long time ago I made a socket based server application using the principle of
So i created a web site a long time ago using a designer alot
I remember that I've seen this effect long time ago on a website. It
I remember reading somewhere (a long time ago) that sprites - or at least
I had a website made for me a long time ago, and the programmer
I read a long time ago about a rule that using an object we
I had this problem a long time ago and recently I got some clues
I'm reconfiguring a build server that someone else setup a long time ago to
I've learnt from somewhere a long time ago that specifying width and height 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.