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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:37:03+00:00 2026-06-12T15:37:03+00:00

What is the main difference between Row Modelling and EAV (Entity-Atribute-Value)? I think EAV

  • 0

What is the main difference between Row Modelling and EAV (Entity-Atribute-Value)?

I think EAV is a subset of Row Modelling but I cant state the main differences.

If possible, please use references in your answers.

  • 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-06-12T15:37:05+00:00Added an answer on June 12, 2026 at 3:37 pm

    Good question.

    According to the Wikipedia article,

    The differences between row modeling and EAV are:

    • A row-modeled table is homogeneous in the facts that it describes: a Line Items table describes only products sold. By contrast, an EAV table contains almost any type of fact.
    • The data type of the value column/s in a row-modeled table is pre-determined by the nature of the facts it records. By contrast, in an EAV table, the conceptual data type of a value in a particular row depend on the attribute in that row.

    So here’s my take on that:

    • row modelling

      create table line_items (
        id int primary key,
        sale_id int,
        foreign key sale_id references sale(id),
        product_name varchar(50), -- this could also be a foreign key 
        price decimal(10, 2)
      );
      
      • this has some type safety: price can’t be some junk string

      • the only things that we put in this table are line items

      • to me, this sounds just like a normal 1:many relationship (but I’m not sure so don’t quote me on that)

    • entity-attribute-value

      create table my_eav (
        entity_id int,
        foreign key (entity_id) references entity(id),
        attribute varchar(50),
        value varchar(50),
        primary key (entity_id, attribute)
      );
      
      • the values are stored as varchars — but they could be numbers, strings, times, etc.

      • all kinds of data can be stored — shoe size, airplane weight, the number of home runs Babe Ruth hit in 1926


    The article goes on to say:

    The circumstances where you would need to go beyond standard row-modeling to EAV are listed below:

    • The data types of individual attributes varies (as seen with clinical findings).
    • The categories of data are numerous, growing or fluctuating, but the number of instances (records/rows) within each category is very small. Here, with conventional modeling, the database’s entity–relationship diagram might have hundreds of tables: the tables that contain thousands/ millions of rows/instances are emphasized visually to the same extent as those with very few rows. The latter are candidates for conversion to an EAV representation.

    So if you have a lot of these 1:many relationships, do you want to have 1 table for each, as row modelling requires? Whereas EAV would allow you to combine (some or all of) those tables into 1.

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

Sidebar

Related Questions

I am using Java Tomcat as websocket server. I think the main difference between
What is main difference between INSERT INTO table VALUES .. and INSERT INTO table
What is the main difference between Dispatcher view and Service to work design pattern?
What is the main difference between setInterval and setTimeout in JavaScript?
I want to know the main difference between .live() vs. .bind() methods in jQuery.
Please check below screen shot. What is main difference between Master Page and MVC
Possible Duplicate: Difference between void main and int main? Why is void main() {
what is the difference between calling a mapreduce job from main() and from ToolRunner.run()
What is the difference between # and . with CSS? #main { background-color: #fff;
Why is the difference between the two addresses wrong? http://codepad.org/NGDqFWjJ #include<stdio.h> int main() {

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.