Attribute and AttributeValue

Hi,

I’m touching in Attribute + AttributeValue and getting be confused when checked the database structure for “attributevalue” table that why a certain attribute can have many attribute-values as the same value. What is the main purpose for using this technique ? Why don’t we reuse the existence attribute value for the other meta-data instead of saving the same attribute value but belongs to one attribute ???

Please help me make this issue clearly !

···


Expert By Chance

Hi,

I'm touching in Attribute + AttributeValue and getting be confused when
checked the database structure for "attributevalue" table that why a certain
attribute can have many attribute-values as the same value. What is the main
purpose for using this technique ? Why don't we reuse the existence
attribute value for the other meta-data instead of saving the same attribute
value but belongs to one attribute ???

I guess you could do this but I think it could get complicated. If
there is an orgunit attribute "Number of fridges" and 3 orgunits each
with 3 fridges then they would all share the same attributevalue (3).
But if one of them buys a new fridge it is no longer so simple to just
change the value to 4.

···

On 10 April 2012 05:40, Hieu Dang Duy <hieu.hispvietnam@gmail.com> wrote:

Please help me make this issue clearly !

--
"Expert By Chance"

_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help