100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Notas de lectura

concepts of database management system

Puntuación
-
Vendido
-
Páginas
8
Subido en
13-08-2024
Escrito en
2024/2025

it gives a details of sql

Institución
Grado

Vista previa del contenido

Outline

 Structure of Relational Databases
 Database Schema
 Keys
 Schema Diagrams
 Relational Query Languages
 The Relational Algebra
Chapter 2: Intro to Relational Model




Database System Concepts, 7th Ed.


LICET, CSE 2.2 ©Silberschatz, Korth, Sudarshan and GK




Example of a Instructor Relation Relation Schema and Instance

 A1, A2, …, An are attributes
attributes  R = (A1, A2, …, An ) is a relation schema
(or columns)
Example:
instructor = (ID, name, dept_name, salary)
tuples  A relation instance r defined over schema R is denoted by r (R).
(or rows)
 The current values a relation are specified by a table
 An element t of relation r is called a tuple and is represented by
a row in a table




LICET, CSE 2.3 ©Silberschatz, Korth, Sudarshan and GK LICET, CSE 2.4 ©Silberschatz, Korth, Sudarshan and GK

, Attributes Relations are Unordered

 The set of allowed values for each attribute is called the domain of the  Order of tuples is irrelevant (tuples may be stored in an arbitrary order)
attribute  Example: instructor relation with unordered tuples
 Attribute values are (normally) required to be atomic; that is, indivisible
 The special value null is a member of every domain. Indicated that the
value is “unknown”
 The null value causes complications in the definition of many operations




LICET, CSE 2.5 ©Silberschatz, Korth, Sudarshan and GK LICET, CSE 2.6 ©Silberschatz, Korth, Sudarshan and GK




Database Schema Keys

 Database schema -- is the logical structure of the database.  Let K  R
 Database instance -- is a snapshot of the data in the database at a given  K is a superkey of R if values for K are sufficient to identify a unique tuple
instant in time. of each possible relation r(R)
 Example: • Example: {ID} and {ID,name} are both superkeys of instructor.
• schema: instructor (ID, name, dept_name, salary)  Superkey K is a candidate key if K is minimal
• Instance: Example: {ID} is a candidate key for Instructor
 One of the candidate keys is selected to be the primary key.
• Which one?
 Foreign key constraint: Value in one relation must appear in another
• Referencing relation
• Referenced relation
• Example: dept_name in instructor is a foreign key from instructor
referencing department




LICET, CSE 2.7 ©Silberschatz, Korth, Sudarshan and GK LICET, CSE 2.8 ©Silberschatz, Korth, Sudarshan and GK

Escuela, estudio y materia

Grado

Información del documento

Subido en
13 de agosto de 2024
Número de páginas
8
Escrito en
2024/2025
Tipo
NOTAS DE LECTURA
Profesor(es)
Abraham silberschatz, henry f. korth, s. sudharsha
Contiene
Todas las clases

Temas

7,63 €
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
sathishelumalaie67

Conoce al vendedor

Seller avatar
sathishelumalaie67 Loyola-icam college of engineering and technology
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
-
Miembro desde
1 año
Número de seguidores
0
Documentos
10
Última venta
-

0,0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

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