BFH Databases BTI1311pq
Datenbank Modul an der Berner/Bieler Fachhochschule für Informatik
Datenbank Modul an der Berner/Bieler Fachhochschule für Informatik
Set of flashcards Details
Flashcards | 21 |
---|---|
Language | Deutsch |
Category | Computer Science |
Level | University |
Created / Updated | 14.06.2021 / 15.07.2021 |
Weblink |
https://card2brain.ch/box/20210614_bfh_databases_bti1311pq
|
Embed |
<iframe src="https://card2brain.ch/box/20210614_bfh_databases_bti1311pq/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
Create or copy sets of flashcards
With an upgrade you can create or copy an unlimited number of sets and use many more additional features.
Log in to see all the cards.
Rationale Algebra:
\(\sigma\) entrpicht welcher operation( in englisch)
select operation
Rationale Algebra:
\(\Pi \) entrpicht welcher operation( in englisch)
project operation
Duplicated rows are removed from the result!!! since relations are sets
composition of relations
{(1,2)}.{(2,3)} = ?
{(1,3)}
Rationale Algebra:
"v" entrpicht welcher operation( in englisch)
union operation
set difference operator: difference of set r and s:
r-s
must have same arity (same type size), the attributes must match
What ist the notation of cardinality of A
|A|
What is an unordered collection of ojects, which are all different?
a set
\(A \cup B\) means
In relational algebra \(\rho\) is which operatior:
rename operator
wie kann man \(r \cap s\) auch noch ausdrücken?
r-(r-s)
r \(\Join\)s beschreibt was ?
r natural join s
\(r \sqsupset\Join s\)
Wieviele Teilmengen hat eine Menge S
\(2^{|S|}\)Einte Teilmenge ist dadurch definiert, welche Elemente in ihr vorkommen. Für jedes Element S ist das eine ja/nein Entscheidung.
Wieviele Relationen gibt es zwischen zwei Mengen A und B
\(2^{m*n}\)
Welche zwei Voraussetzungen muss ein Key haben um als Primary Key zu gelten?
- candiate key
- stable values
wenn keine stabilen values möglich sind -> surrogate key einführen (z.B. id)
Wie heisst der SQL Befehl um zwei SELECT sets zu verbinden?
The UNION operator is used to combine the result-set of two or more SELECT statements.
- Every SELECT statement within UNION must have the same number of columns
- The columns must also have similar data types
- The columns in every SELECT statement must also be in the same order
How to compare a agregation like count()?
select count(*) as number from ...
group by name
having number > 10
ER-Diagramm: Welche Bedingung muss eine Entität erlüllen?
Die Entität muss durch ihre Attribute eindeutig identifizierbar sein
Welche Voraussetzung muss erfüllt dein für eine Relationship in einem ER-Diagram?
Die Relationship muss durch die teilnehmenden Entitäten eindeutig identifizierbar sein.
Was ist die definition der 1.NF
A relational schema is in First Normal Form (1NF) if the domains of all its attributes are atomic
-
- 1 / 21
-