D426 Study Guide

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/74

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

75 Terms

1
New cards

What is a database application?

Software that helps business users interact with database systems.

2
New cards

Who is a database administrator (DBA)?

A person responsible for securing, maintaining, and controlling user access to a database system.

3
New cards

What is authorization in databases?

Limiting user access to specific tables, columns, or rows based on permissions.

4
New cards

What does the query processor do?

Interprets and optimizes SQL queries and returns results to applications.

5
New cards

What does the storage manager do?

Translates database instructions into file-system commands to retrieve or modify data.

6
New cards

What is the transaction manager's role?

Ensures transactions are properly executed and restores consistency after failures.

7
New cards

What type of database is MongoDB?

A NoSQL, open-source database.

8
New cards

What does the SQL INSERT command do?

Adds new rows to a table. Example: INSERT INTO Students VALUES (1, 'John');

9
New cards

What does the SQL SELECT command do?

Retrieves data from a table. Example: SELECT * FROM Students;

10
New cards

What does the SQL UPDATE command do?

Modifies existing data in a table. Example: UPDATE Students SET Name='Jane' WHERE ID=1;

11
New cards

What does the SQL DELETE command do?

Deletes rows from a table. Example: DELETE FROM Students WHERE ID=1;

12
New cards

What does CREATE TABLE do?

Creates a new table and defines columns and data types.

13
New cards

What does DROP TABLE do?

Deletes a table and all of its rows from a database.

14
New cards

What does ALTER TABLE do?

Adds, modifies, or deletes columns in an existing table.

15
New cards

What is data independence?

The principle that physical design changes don't affect query results.

16
New cards

What are the SQL sublanguages?

DDL (structure), DQL (retrieve), DML (manipulate), DCL (access), DTL (transactions).

17
New cards

What is a primary key?

A column or group of columns that uniquely identifies a row.

18
New cards

What is a composite primary key?

A primary key made up of multiple columns.

19
New cards

What is a foreign key?

A column that references a primary key in another table to enforce relationships.

20
New cards

What is referential integrity?

Rules ensuring foreign keys match existing primary keys.

21
New cards

Name the referential integrity actions.

RESTRICT, SET NULL, SET DEFAULT, CASCADE.

22
New cards

What is a constraint?

A rule that defines valid data (e.g., PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK).

23
New cards

What does BETWEEN do in SQL?

Checks if a value is between two other values. Example: WHERE Age BETWEEN 18 AND 30.

24
New cards

What does LIKE do in SQL?

Searches for patterns in text using % (many chars) and _ (single char).

25
New cards

What does ORDER BY do?

Sorts query results by one or more columns (ASC or DESC).

26
New cards

What does GROUP BY do?

Groups rows with the same values in specified columns.

27
New cards

What is the HAVING clause?

Filters groups created by GROUP BY (used with aggregate functions).

28
New cards

What are aggregate functions?

Functions like COUNT, SUM, AVG, MIN, MAX that summarize data.

29
New cards

What is an INNER JOIN?

Combines only matching rows from two tables.

30
New cards

What is a LEFT JOIN?

Returns all rows from the left table and matching rows from the right table.

31
New cards

What is a RIGHT JOIN?

Returns all rows from the right table and matching rows from the left table.

32
New cards

What is a FULL JOIN?

Combines all rows from both tables, with NULLs for unmatched rows.

33
New cards

What is a cross-join?

Combines every row of one table with every row of another (Cartesian product).

34
New cards

What is an equijoin?

A join where columns are compared using '='.

35
New cards

What is a self-join?

A table joined to itself to compare rows within the same table.

36
New cards

What is a subquery?

A query inside another SQL query.

37
New cards

What is an alias in SQL?

A temporary name for a table or column using the AS keyword.

38
New cards

What is a view?

A virtual table created by a query. Doesn't store data itself.

39
New cards

What is a materialized view?

A view that stores data physically and must be refreshed when base data changes.

40
New cards

What is an ER diagram?

A visual model showing entities, relationships, and attributes.

41
New cards

What are entities in ER modeling?

Objects like people, places, or things represented as tables.

42
New cards

What are relationships in ER modeling?

Connections between entities (e.g., Student-EnrollsIn-Course).

43
New cards

What are attributes in ER modeling?

Properties or characteristics of an entity (e.g., Name, Age).

44
New cards

What is cardinality?

Defines how many instances of one entity relate to another (1:1, 1:N, M:N).

45
New cards

What is a subtype entity?

A subset of another entity (e.g., Manager is a subtype of Employee).

46
New cards

What is normalization?

The process of reducing redundancy and ensuring data integrity by organizing data into tables.

47
New cards

What is denormalization?

Intentionally adding redundancy for performance improvement.

48
New cards

What is a candidate key?

A unique, minimal column or set of columns that can be a primary key.

49
New cards

What is a non-key column?

A column not part of any candidate key.

50
New cards

What is a functional dependency?

When one column's value determines another's value.

51
New cards

What is a trivial dependency?

When one set of columns is a subset of another, always true.

52
New cards

What is first normal form (1NF)?

A table with atomic (indivisible) values and unique rows.

53
New cards

What is second normal form (2NF)?

1NF plus all non-key attributes depend on the whole primary key.

54
New cards

What is third normal form (3NF)?

2NF plus no transitive dependencies (non-key columns depend only on keys).

55
New cards

What is Boyce-Codd normal form (BCNF)?

Stricter than 3NF; every determinant must be a candidate key.

56
New cards

What is a heap table?

Rows stored with no particular order; optimized for inserts.

57
New cards

What is a sorted table?

Rows are physically stored in order based on a column.

58
New cards

What is a hash table in databases?

Rows assigned to buckets using a hash function for quick lookups.

59
New cards

What is an index?

A data structure that speeds up data retrieval by providing quick lookup paths.

60
New cards

What is a dense index?

Contains an entry for every row in a table.

61
New cards

What is a sparse index?

Contains entries for groups or blocks of rows, not every row.

62
New cards

What is a bitmap index?

Uses bits (0 or 1) to represent row matches for each distinct value.

63
New cards

What is a tablespace?

A storage location mapping tables to physical files.

64
New cards

What is data type INT used for?

Storing integer values.

65
New cards

What is data type VARCHAR used for?

Storing text strings up to a defined length.

66
New cards

What is data type DATE used for?

Storing date values (year, month, day).

67
New cards

What is the purpose of DECIMAL(M, D)?

Stores numbers with fixed precision (M total digits, D after decimal).

68
New cards

What does the % (modulo) operator do?

Returns the remainder of a division. Example: 5 % 2 = 1.

69
New cards

What does the ^ operator do?

Raises one number to the power of another (e.g., 5^2 = 25).

70
New cards

What does the TRUNCATE statement do?

Removes all rows from a table quickly, without deleting the table itself.

71
New cards

What is SQL syntax for creating an index?

CREATE INDEX idx_name ON table_name (column_name);

72
New cards

What is the main benefit of indexes?

Improves query performance by reducing search time.

73
New cards

What is a tuple?

An ordered collection of values (a row in a table).

74
New cards

What are synonyms for table elements?

Table=Relation, Row=Tuple, Column=Attribute.

75
New cards

What is the main difference between logical and physical design?

Logical design defines structure (tables, keys); physical design defines storage and indexes.

Explore top flashcards

Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)
Nisäkkäät
Updated 773d ago
flashcards Flashcards (47)
31-35
Updated 79d ago
flashcards Flashcards (69)
BIOL 375 Exam 2
Updated 1026d ago
flashcards Flashcards (76)
MB3
Updated 191d ago
flashcards Flashcards (37)
Tema 6: Contexto 2
Updated 970d ago
flashcards Flashcards (30)
Emotions and moods
Updated 187d ago
flashcards Flashcards (114)