Datenbank
No description yet. This curated deck is ready for daily study.
Card preview (24)
What is a Database? / Was ist eine Datenbank?
A system for efficient, durable, and consistent storage of data. / Ein System zur effizienten, dauerhaften und konsistenten Speicherung von Daten.
What is a Database Management System (DBMS)? / Was ist ein Datenbank-Managementsystem (DBMS)?
Software that manages the database structure and provides a standardized interface. / Software, die die Datenbankstruktur verwaltet und eine normierte Schnittstelle bietet.
What are the core components of an Entity-Relationship (ER) Model? / Was sind die Hauptbestandteile eines ER-Modells?
Entities, Attributes, and Relationships. / Entitäten, Attribute und Beziehungen.
What is a Primary Key? / Was ist ein Primärschlüssel?
An attribute or set of attributes that uniquely identifies a row in a table. / Ein Attribut oder eine Attributmenge, die eine eindeutige Identifikation einer Entität (Zeile) ermöglicht.
What is a Foreign Key? / Was ist ein Fremdschlüssel?
A primary key from one table placed into another table to establish a relationship. / Ein Primärschlüssel einer Tabelle, der in eine andere Tabelle aufgenommen wird, um eine Beziehung herzustellen.
How is an N:M (many-to-many) relationship implemented? / Wie wird eine N:M-Beziehung implementiert?
By creating a junction (mapping) table containing foreign keys from both related tables. / Durch die Erstellung einer Zwischentabelle (Koppeltabelle), die die Fremdschlüssel beider beteiligten Tabellen enthält.
What are the three main sub-languages of SQL? / Was sind die drei wichtigsten SQL-Teilsprachen?
DDL (Data Definition), DML (Data Manipulation), and DQL (Data Query). / DDL (Struktur verändern), DML (Daten verändern) und DQL (Daten abfragen).
What is the difference between WHERE and HAVING? / Was ist der Unterschied zwischen WHERE und HAVING?
WHERE filters individual rows; HAVING filters aggregated groups after a GROUP BY. / WHERE filtert einzelne Zeilen; HAVING filtert Gruppenzeilen nach einem GROUP BY.
What is the First Normal Form (1NF)? / Was ist die 1. Normalform (1NF)?
A table is in 1NF if it has no multi-valued properties (all values are atomic). / Ein Modell ist in der 1NF, wenn es keine multiplen Eigenschaften gibt.
What is the Second Normal Form (2NF)? / Was ist die 2. Normalform (2NF)?
1NF is met, and every non-key attribute is fully functionally dependent on the entire primary key. / 1NF ist erfüllt, und jede beschreibende Eigenschaft ist vom Gesamtschlüssel und nicht nur von einem Teilschlüssel abhängig.
What is the Third Normal Form (3NF)? / Was ist die 3. Normalform (3NF)?
2NF is met, and there are no transitive dependencies. / 2NF ist erfüllt, und es gibt keine transitiven funktionalen Abhängigkeiten vom Gesamtschlüssel.
What are the ACID principles? / Was sind die ACID-Prinzipien?
Atomicity, Consistency, Isolation, and Durability. / Atomarität, Konsistenz, Isolation und Dauerhaftigkeit.
What is the purpose of a Database Index? / Was ist der Zweck eines Datenbank-Index?
To speed up search and sort operations while minimizing disk access. / Zur Beschleunigung von Such- und Sortieroperationen bei gleichzeitiger Minimierung von Festplattenzugriffen.
What is an Inner Join? / Was ist ein Inner Join?
A join that returns only rows with a matching value in both tables. / Ein Join, der nur die Zeilen zurückgibt, die in beiden Tabellen einen Partner finden.
What is a Left Outer Join? / Was ist ein Left Outer Join?
A join returning all rows from the left table, filling missing matches on the right with NULLs. / Ein Join, der alle Zeilen der linken Tabelle zurückgibt und fehlende Werte der rechten Tabelle mit NULL auffüllt.
What is a Full Outer Join? / Was ist ein Full Outer Join?
A join returning all rows from both tables, filling missing matches with NULLs. / Ein Join, der alle Zeilen aus beiden Tabellen zurückgibt und fehlende Partner mit NULL auffüllt.
What does the SELECT statement without a FROM clause return in PostgreSQL? / Was gibt die SELECT-Anweisung ohne FROM-Klausel in PostgreSQL zurück?
A single row containing the computed function values or constants (e.g., math results or system strings). / Eine einzelne Zeile, die die berechneten Funktionswerte oder Konstanten enthält (z. B. mathematische Ergebnisse oder System-Strings).
How do you concatenate two strings together in PostgreSQL? / Wie verknüpft man zwei Zeichenketten in PostgreSQL miteinander?
By using the double pipe operator (‘||’). / Durch Verwendung des Double-Pipe-Operators (‘||’).
What is the function to determine the number of characters in a string? / Wie lautet die Funktion zur Bestimmung der Anzahl der Zeichen in einem String?
length(). / length().
Which command creates a table named ‘movies’ with a primary key? / Welcher Befehl erstellt eine Tabelle namens ‘movies’ mit einem Primärschlüssel?
CREATE TABLE movies (id INTEGER PRIMARY KEY, …);
What does ‘CHARACTER VARYING’ represent as a data type? / Was repräsentiert ‘CHARACTER VARYING’ als Datentyp?
A variable-length character string. / Eine Zeichenkette variabler Länge.
What constraint forces a column to always contain a value during inserts? / Welche Einschränkung zwingt eine Spalte dazu, beim Einfügen immer einen Wert zu enthalten?
NOT NULL. / NOT NULL.
How are multiple literal data rows added simultaneously into a table? / Wie werden mehrere Datenzeilen gleichzeitig in eine Tabelle eingefügt?
By listing the tuples separated by commas after the VALUES keyword in an INSERT INTO statement. / Durch Auflistung der durch Kommata getrennten Tupel nach dem VALUES-Schlüsselwort in einer INSERT INTO-Anweisung.
How do you fetch every column and every record from the ‘movies’ table? / Wie ruft man jede Spalte und jeden Datensatz aus der Tabelle ‘movies’ ab?
SELECT * FROM movies; / SELECT * FROM movies;