From: | "David Johnston" <polobo(at)yahoo(dot)com> |
---|---|
To: | "'Alpha Beta'" <dzjitaru(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: subset of attributes |
Date: | 2011-02-16 00:14:04 |
Message-ID: | 037301cbcd6e$6bf7a700$43e6f500$@yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Some context would help but some (possibly relevant) possibilities:
1: If you have relation with 5 attributes you can generate tuples with all 5
attributes OR you can generate tuples with a subset of those attributes.
Seems obvious but often these kinds of definitions are.
2: When looking at a relation you want to consider whether any subset of the
attributes are dependent upon another attribute that is not a key for the
relation. If so then that subset can likely be broken out into its own
relation with the attribute that the subset relates to acting as a foreign
key on the original relation.
Without further context as to where and why the definition is being given
further conclusions are tough to draw. My first point is simply an obvious
property of how relations and attributes and the second relates to
normalization of a relation schema.
My $0.03 (inflation ya know)
David J
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Alpha Beta
Sent: Tuesday, February 15, 2011 5:01 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] subset of attributes
Hi,
while reading about databases, I didn't understand what can be subset of
attributes, see the following :
Let Ri (Xi) be a relation sheme, where Xi is a set of attributes. and if t
is a tuple for Ri (Xi) and Y is a subset of Xi, then t[Y] denote the
subtuple of t corresponding to Y.
does a subset of attributes just means the instances that exist in each
tuple?
Best,
From | Date | Subject | |
---|---|---|---|
Next Message | AI Rumman | 2011-02-16 06:36:36 | question regarding full_page_write |
Previous Message | Tom Lane | 2011-02-15 23:23:44 | Re: help understanding explain output |