100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
College aantekeningen

concepts of database management system

Beoordeling
-
Verkocht
-
Pagina's
8
Geüpload op
13-08-2024
Geschreven in
2024/2025

it gives a details of sql

Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Vak

Documentinformatie

Geüpload op
13 augustus 2024
Aantal pagina's
8
Geschreven in
2024/2025
Type
College aantekeningen
Docent(en)
Abraham silberschatz, henry f. korth, s. sudharsha
Bevat
Alle colleges

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
sathishelumalaie67

Maak kennis met de verkoper

Seller avatar
sathishelumalaie67 Loyola-icam college of engineering and technology
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 jaar
Aantal volgers
0
Documenten
10
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen