dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16859
Re: Attribute and AttributeValue
On 10 April 2012 05:40, Hieu Dang Duy <hieu.hispvietnam@xxxxxxxxx> wrote:
> 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.
>
> Please help me make this issue clearly !
>
> --
> "Expert By Chance"
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
References