100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Databases

Rating
5.0
(1)
Sold
10
Pages
29
Uploaded on
11-06-2015
Written in
2014/2015

Samenvatting en uitgebreidere informatie over de onderwerpen Databases, ER diagram, ER models, SQL, DDL, queries, relational algebra, scheme refinement uit de colleges voor het vak Databases

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
June 11, 2015
Number of pages
29
Written in
2014/2015
Type
Class notes
Professor(s)
M. emmerich
Contains
All classes

Subjects

Content preview

Samenvatting

Databases
11 juni 2015




Inhoudsopgave
1 Entity - Relationship Models 2

2 Logical Database Design - SQL/DDL 6

3 Database queries 10

4 Database Application Development 17

5 Relational Algebra 17

6 Schema refinement 23




Pagina 1 van 29

, Samenvatting
Databases



1 Entity - Relationship Models
De Architectuur

De architectuur van een relationele database bestaat uit de drie verschillende compo-
nenten verspreid over verschillende lagen. Van boven naar onder:
- Views: beschrijven hoe de gebruiker de data ziet.
- Conceptual Schema: beschrijft de logisch structuur, oftewel de tabel structuur.
- Physical Schema: beschrijft de bestanden en datastructuren voor snelle data-
access.


Voorbeeld




De architectuur van de bovenstaande relationele database is:
De Conceptual Schema:
- Students(sid: string, name: string, login: string, age:integer)
- Courses(cid: string, cname: string, credits: interger)
- Enrolled(sid: string, cid: string, grade: string)
Physical Schema:
- De relaties worden opgeslagen als ongesorteerde bestanden.
- B+ tree index op de eerste kolom van de Students tabel.
views:
- een extern schema, enkel voor de docenten, die niet is opgeslagen in de data-
base, maar afgeleid wordt uit de andere data.
- Courseinfo(cid: string, numberOfStudents: integer, bestGrade: integer)
Databases opbouwen

Het opbouwen van een databases gebeurd in een aantal stappen, dat zijn er altijd ten
minsten 5:

Pagina 2 van 29

Reviews from verified buyers

Showing all reviews
4 year ago

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Stuvian95 Universiteit Leiden
Follow You need to be logged in order to follow users or courses
Sold
150
Member since
11 year
Number of followers
118
Documents
4
Last sold
1 year ago

4.0

27 reviews

5
11
4
11
3
1
2
2
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions