69 views
0 votes
0 votes

Let's take an example of student entity type

  • Name
  • Class
  • Section
  • Address (Line1, Line2, City, State, Country, PinCode)

Since composite attribute holds multiple atomic attributes, such that the group is treated as single attribute. It is similar to how we perceive structures in C programming. If I add a constraint key on Address field, will it be called composite key?

Or the composite key must have two or more attributes for example (ignoring the semantics) the combinations like

  • {Class, Section}
  • {Class, Address}
  • {Name, Class, Section}

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
1
dhairya asked Jun 3, 2016
277 views
4 votes
4 votes
2 answers
2
debanjan sarkar asked Oct 1, 2016
2,709 views
Can we allow NULL value in some attribute of primary key, if primary key contains more than one attribute?
1 votes
1 votes
1 answer
3
radha gogia asked Jul 30, 2015
1,150 views
Since candidate key is a minimal key and it is a proper subset of a super-key , then how is it that for a candidate key ,its proper subset is not a super key ?