• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 5 páginas
Notas de lectura

College aantekeningen Databases Week 2 (X_401008)

Document preview thumbnail
Vista previa 2 fuera de 5 páginas

Databases voor 2e jaar Artificial Intelligence en Computer Science. Week 2 aantekeningen

Vista previa del contenido

Databases week 2 – Translating conceptual to
relational models


From conceptual to relational model
Basic idea: entity sets and r4elationship sets are represented as
tables.
Roughly:
 One table for each entity set (name table = name entity set)
 One table for each relationship set (name table = name
relationship set)
 Columns roughly corresponding to attributes
A strong entity set becomes a table with:
 Columns for attributes
Weak entity set becomes table that includes:
 Columns for attributes and
 Columns for the primary keys of the identifying entity
A many-to-many relationship set becomes table with:
 Columns for the attributes of the relationship set and
 For the primary keys of the participating entity sets




Eliminating tables
Many-to-(zero or)one relations can be represented by:
- Adding an extra attribute/column to the many-side with the
primary key of the one-side

, If participation is partial (0..1) then replacing the yable by an
attribute will result in null values for the entities that don’t
participate in the relationship set
- If participation is total (0..1 or 1..1) declare foreign key not null
- For one-to-one (0..1 or 1..1) relationship sets either side can be
extended with the key of the other
- Tables for relationship sets linking weak entity sets to the
identifying entity set can always be eliminated
o No extra table is needed! Table of weak ES already
contains the key of identifying ES




Cardinalites and constraints
When translating ES and
relationship sets to tables:
- Every table should have
a primary key (if
possible)
- Declared foreign key
constraints for each relation
Foreign keys should be declared:
- Not null, or not,
- Unique, or not
To model the cardinality
limits as good as possible
All columns in tables from RS
are not nullable
Attributes should be declared
not null and/or unique if
appropriate



2

Información del documento

Estudio
Subido en
30 de mayo de 2023
Número de páginas
5
Escrito en
2021/2022
Tipo
Notas de lectura
Profesor(es)
J. endrullis (jörg)
Contiene
Week 2
$4.60

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
simonvanrens
4.0
(1)
Vendido
11
Seguidores
9
Artículos
10
Última venta
2 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes