Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Notes de cours

concepts of database management system

Note
-
Vendu
-
Pages
8
Publié le
13-08-2024
Écrit en
2024/2025

it gives a details of sql

Établissement
Cours

Aperçu du contenu

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

École, étude et sujet

Cours

Infos sur le Document

Publié le
13 août 2024
Nombre de pages
8
Écrit en
2024/2025
Type
Notes de cours
Professeur(s)
Abraham silberschatz, henry f. korth, s. sudharsha
Contient
Toutes les classes

Sujets

€7,63
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
sathishelumalaie67

Faites connaissance avec le vendeur

Seller avatar
sathishelumalaie67 Loyola-icam college of engineering and technology
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
-
Membre depuis
1 année
Nombre de followers
0
Documents
10
Dernière vente
-

0,0

0 revues

5
0
4
0
3
0
2
0
1
0

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions