Database Concepts Review

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

1/70

flashcard set

Earn XP

Description and Tags

This flashcard set covers fundamental concepts in databases, SQL, and ER modeling.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

71 Terms

1
New cards

Which of the following is NOT a characteristic of the database approach?

Flat file storage

2
New cards

What is the function of a database catalog?

To store metadata

3
New cards

What is the function of the conceptual level in the three-schema architecture?

Describes the entire database for a community of users

4
New cards

Which architecture adds a layer between client and database server to process logic?

Three-tier

5
New cards

Which relational constraint requires values in a column to be unique and not null?

Entity Integrity

6
New cards

Which SQL keyword is used to retrieve data from a table?

SELECT

7
New cards

Which SQL clause is used to filter rows based on condition?

WHERE

8
New cards

What type of relationship occurs when one entity is associated with many instances of another?

One-to-Many

9
New cards

Which ER component is used to uniquely identify an entity?

Key

10
New cards

What does the entity integrity constraint ensure?

Primary key values must be unique and not NULL

11
New cards

Which SQL clause sorts the result set in ascending or descending order?

ORDER BY

12
New cards

What is the default behavior of SQL when duplicate rows exist in SELECT results?

Display all

13
New cards

What is the role of a database administrator?

Maintains the DBMS and ensures efficient operation

14
New cards

Which schema describes how data is actually stored?

Internal schema

15
New cards

What is a superkey?

A set of attributes that uniquely identifies a tuple

16
New cards

What does the term 'metadata' refer to in databases?

Data about data

17
New cards

Which constraint ensures that a foreign key must match a primary key?

Referential Integrity

18
New cards

What is a weak entity?

An entity dependent on another entity that does not have a primary key of its own.

19
New cards

What is the purpose of the WHERE clause in SQL?

To specify conditions for selection

20
New cards

Which SQL keyword removes duplicate results?

DISTINCT

21
New cards

Which ERD shape represents a relationship?

Diamond

22
New cards

Which SQL clause groups rows sharing a property?

GROUP BY

23
New cards

What kind of attribute can be broken down into sub-parts?

Composite attribute

24
New cards

Which command defines a table in SQL?

CREATE TABLE

25
New cards

Which component optimizes a query in DBMS?

Query optimizer

26
New cards

What does VDL stand for in DBMS?

View Definition Language

27
New cards

Which architecture separates presentation, logic, and data?

Three-tier

28
New cards

Which command adds a row in SQL?

INSERT INTO

29
New cards

Which SQL command deletes a table?

DROP TABLE

30
New cards

Which component translates DML to low-level instructions?

DML Compiler

31
New cards

Which language specifies the internal schema?

Storage Definition Language

32
New cards

What is a derived attribute?

An attribute calculated from other attributes

33
New cards

Which data model uses tables?

Relational model

34
New cards

Which clause filters groups in SQL?

HAVING

35
New cards

What is the output of a SELECT statement?

A relation (table)

36
New cards

Which user interacts with the database through queries?

Naive or casual user

37
New cards

What is the domain of an attribute?

A set of allowed values

38
New cards

What is a relation in relational databases?

A table with rows and columns

39
New cards

What is tuple in relational model?

A row in a table

40
New cards

What is schema?

The structure that defines the database

41
New cards

Which DBMS property ensures all-or-nothing transactions?

Atomicity

42
New cards

What is normalization?

Process of minimizing redundancy

43
New cards

What is denormalization?

Process of improving performance by adding redundancy

44
New cards

Which SQL function returns the number of rows?

COUNT()

45
New cards

Which key links two tables?

Foreign key

46
New cards

Which clause renames output columns in SQL?

AS

47
New cards

Which clause filters results before aggregation?

WHERE

48
New cards

What is functional dependency?

Relationship between attributes in a relation

49
New cards

Which user designs the database structure?

Database designer

50
New cards

What is a candidate key?

A minimal superkey

51
New cards

Which component manages physical data storage?

File manager

52
New cards

What is transaction in DBMS?

A sequence of operations as one unit

53
New cards

Which SQL clause is used to join tables?

JOIN

54
New cards

Which model preceded the relational model?

Hierarchical model

55
New cards

Which SQL statement changes a table structure?

ALTER TABLE

56
New cards

What is a view in SQL?

A virtual table

57
New cards

Which command retrieves unique rows only?

SELECT DISTINCT

58
New cards

What does SQL stand for?

Structured Query Language

59
New cards

Which model supports inheritance in databases?

Object-oriented model

60
New cards

What is a primary key?

An attribute that uniquely identifies each tuple

61
New cards

What is a relationship set in ER modeling?

A collection of similar relationships

62
New cards

Which type of participation ensures an entity must be involved in a relationship?

Total participation

63
New cards

Hierarchical Model

Organizes data in a tree-like structure with parent-child relationships.

64
New cards

Network Model

Data is organized as records connected through multiple relationships (graphs).

65
New cards

Relational Model

Stores data in tables (relations) with rows and columns.It uses primary keys to uniquely identify records and foreign keys to establish relationships between tables.

66
New cards

Object-Oriented Model

Integrates object-oriented programming with databases (objects = data + methods).

67
New cards

Document Model

Stores semi-structured data as documents, often in JSON or XML.

68
New cards

Key-Value Model

Stores data as a collection of key-value pairs. Allows for quick retrieval using unique keys.

69
New cards

Column-Family Model

Data stored in columns grouped into families (used in wide-column stores).

70
New cards

Graph Model

Data stored as nodes and edges to represent entities and relationships.It is commonly used for exploring complex relationships in social networks or web data.

71
New cards