Database Concepts and SQL - L3

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/47

flashcard set

Earn XP

Description and Tags

Flashcards covering key vocabulary and concepts related to database design, the relational model, and SQL, based on lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

48 Terms

1
New cards

Data vs. Information

Data is raw, unorganized facts that need to be processed. Information is data that has been processed and organized in a meaningful way.

2
New cards

Database Management System (DBMS)

Software for managing and organizing databases.

3
New cards

Entity-Relationship Modeling (ERM)

A technique for visually representing the structure of a database.

4
New cards

Entity Type

A category of objects or concepts with similar properties.

5
New cards

Entity Instance

A specific occurrence of an entity type.

6
New cards

Attribute

A characteristic or property of an entity.

7
New cards

Value

A specific data point for an attribute.

8
New cards

Logical Model

A detailed representation of the database structure, converted from a conceptual model, ready for database implementation.

9
New cards

Relational Model

A database model that organizes data into tables (relations) with rows (tuples) and columns (attributes).

10
New cards

Normalization

The process of organizing data in a database to reduce redundancy and improve data integrity.

11
New cards

SQL (Structured Query Language)

A standard language for accessing and manipulating databases.

12
New cards

Data Definition Language (DDL)

The subset of SQL commands used to define database schemas, such as creating, altering, and dropping tables.

13
New cards

Data Manipulation Language (DML)

The subset of SQL commands used to manipulate data, such as selecting, inserting, updating, and deleting data.

14
New cards

Entity Clustering

Grouping related entities together in an ER diagram to simplify the model.

15
New cards

Relation

A two-dimensional table in a relational database.

16
New cards

Tuple

A row in a relation, representing a single instance of the entity.

17
New cards

Attribute

A column in a relation, representing a characteristic of the entity.

18
New cards

Key

An identifier for a row of data in a relation.

19
New cards

Schema

The structure of a relation, including the name of the relation and its attributes.

20
New cards

Database Schema

The set of schemas for all relations in a database.

21
New cards

Data Dictionary (Metadata)

A repository of information about the database, including table purposes, column data types, constraints, and indexes.

22
New cards

Primary Key

A unique identifier for each row in a table.

23
New cards

Candidate Key

Any set of one or more columns whose combined values are unique among all occurrences in a table.

24
New cards

Alternate (Secondary) Key

A candidate key that is not chosen as the primary key.

25
New cards

Foreign Key

A set of one or more columns in a table that refers to the primary key of another table.

26
New cards

Entity Integrity

A rule ensuring that all primary key entries are unique and no part of a primary key may be NULL.

27
New cards

Referential Integrity

A rule ensuring that a foreign key value either matches an existing primary key value in the referenced table or is NULL.

28
New cards

Domain Integrity

A rule ensuring that data values conform to the column's predefined data type and constraints.

29
New cards

DDL (Data Definition Language)

SQL commands that define and modify database structures (e.g., CREATE, ALTER, DROP).

30
New cards

DML (Data Manipulation Language)

SQL commands used to retrieve, insert, update, and delete data (e.g., SELECT, INSERT, UPDATE, DELETE).

31
New cards

TCL (Transaction Control Language)

SQL commands that manage transaction consistency within the database (e.g., COMMIT, ROLLBACK, SAVEPOINT).

32
New cards

Transaction

A logical unit of work that consists of one or more SQL statements.

33
New cards

CREATE SCHEMA

SQL command to create a new database schema.

34
New cards

CREATE TABLE

SQL command to create a new table in a database.

35
New cards

SELECT

SQL command to retrieve data from one or more tables.

36
New cards

FROM

Specifies the table(s) from which to retrieve data in a SELECT statement.

37
New cards

WHERE

Filters the rows of data based on provided criteria in a SELECT statement.

38
New cards

ORDER BY

Sorts the final query result rows in ascending or descending order based on the values of one or more columns in a SELECT statement.

39
New cards

GROUP BY

Groups the rows of data into collections based on sharing the same values in one or more columns in a SELECT statement.

40
New cards

HAVING

Filters the groups formed in the GROUP BY clause based on provided criteria in a SELECT statement.

41
New cards

Relationship Degree

The number of entities involved in an association.

42
New cards

Relationship Connectivity

The types of association between entities.

43
New cards

Relationship Cardinality

The numerical constraints of the relationship between entities.

44
New cards

BETWEEN

Defines a range of values for a WHERE clause condition.

45
New cards

IS NULL

Checks for NULL values in a column for a WHERE clause condition.

46
New cards

LIKE

Matches a specified pattern in a WHERE clause condition.

47
New cards

IN

Specifies multiple possible values for a column in a WHERE clause.

48
New cards

EXISTS

Checks for the existence of rows in a subquery.