Introduction to logical design & creating conceptual tables Flashcards
What do we do In the second database design phase (i.e., logical design)?
In the second database design phase (i.e., logical design) we translate
the ER model to a set of conceptual relational tables called schemas
(In the logical database design phase, our focus turns to conceptually
designing these tables in the most optimal way, before creating them in
our database during phase 3 (physical design))
What is a similarity between OOP and Database design?
§ Each table has a distinct name. E.g., we cannot have two tables called “Student”,
much like we cannot have two classes named “Student” in OOP (at least not in the
same namespace)
What does each cell in a table contain?
Each cell in a table contains exactly one value, be it single- or multi-valued
Can we mix numerical and textual values in a column?
§ The values of a column/attribute are all from the same domain
§ For example, we cannot mix numerical and textual values in a column
Does the order of columns/attributes or rows/values havy any significance?
The order of columns/attributes or rows/values has no significance
Is it important that each row in a table is distinct?
it is important that each row is distinct. I.e., we cannot allow a unique
identifier to be common
What is a set, in Set theory?
A set is any collection of objects, which are referred to as
elements/members of a set
§ For example, the set of all the registered students taking this course
What is Set theory?
Set theory is a branch of mathematical logic that studies sets
What will learning to apply set theory help with?
Learning to apply set theory will help with your understanding of relational
database tables, as well as relational algebra and SQL
What is one way of describing a set with a small number of elements?
§ One way of describing a set with a small number of elements is by listing
them. E.g., the set of all positive integers that are less than 4 can be
written as: {1, 2, 3}
Does it matter in which order the elements of a set occurs?
The order in which the elements of a set occurs does not matter
§ Much like how the columns in a spreadsheet table does not matter
What do you do with repeated elements in a set?
Repeated elements are ignored
§ E.g., the set {1,1,2} is the same as {1,2}
What can we do to visualize sets and elements?
To visualize sets, we can use uppercase letters (e.g., A,B,C) and to
visualize elements of sets, we can use lowercase letters (e.g., a,b,c)
we can indicate that the element x is a member
of the set A by writing:
x € A
we can indicate that x is not a member of the set A by writing:
x /€ A (sträcket är över E märket)