d426

30 flashcardsby SAHIRR
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is a database application?
A database application is software that helps business users interact with database systems.
2
What is the role of the query processor in a database system?
The query processor interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application.
3
What does the storage manager do in a database system?
The storage manager translates the query processor instructions into low-level file-system commands that modify or retrieve data.
4
What is the function of the transaction manager in a database system?
The transaction manager ensures transactions are properly executed and prevents conflicts between concurrent transactions.
5
What is the purpose of the SQL CREATE TABLE statement?
The CREATE TABLE statement creates a new table by specifying the table and column names along with their data types.
6
What is an entity in database analysis?
An entity is a person, place, activity, or thing.
7
What is the difference between logical design and physical design in database systems?
Logical design implements database requirements in a specific system, while physical design adds indexes and organizes how tables are stored on media.
8
What is a tuple in the context of databases?
A tuple is an ordered collection of elements enclosed in parentheses.
9
What is data independence?
Data independence allows database administrators to improve query performance by changing the organization of data without affecting query results.
10
What is a primary key in a database?
A primary key is a column, or group of columns, used to uniquely identify a row in a table.
11
What is a foreign key?
A foreign key is a column or group of columns that refer to a primary key in another table.
12
What does the SQL UPDATE statement do?
The UPDATE statement modifies existing rows in a table.
13
What is the difference between DELETE and TRUNCATE in SQL?
DELETE removes specific rows based on a condition, while TRUNCATE removes all rows from a table.
14
What is the purpose of the MERGE statement in SQL?
The MERGE statement selects data from one table (source) and inserts it into another table (target).
15
What is a candidate key?
A candidate key is a column or set of columns that uniquely identifies a row in a table.
16
What is Boyce-Codd normal form?
Boyce-Codd normal form ensures that every non-key column is functionally dependent on a superkey.
17
What is the difference between an INNER JOIN and a LEFT JOIN?
An INNER JOIN selects only matching rows from both tables, while a LEFT JOIN selects all rows from the left table and matching rows from the right table.
18
What is a self-join?
A self-join is a join where a table is joined with itself.
19
What is the purpose of the GROUP BY clause in SQL?
The GROUP BY clause is used to group rows that have the same values in specified columns, often used with aggregate functions.
20
What is referential integrity in a database?
Referential integrity ensures that foreign keys in a table accurately refer to primary keys in another table.
21
What is the BETWEEN operator in SQL?
The BETWEEN operator is used to filter the result set within a certain range, inclusive of the boundary values.
22
What does the LIKE operator do in SQL?
The LIKE operator matches text against a pattern using wildcard characters, such as % and _.
23
What is an entity-relationship diagram (ERD)?
An ERD is a schematic picture that represents entities, relationships, and attributes in a database system.
24
What is normalization in database design?
Normalization is the process of eliminating redundancy by decomposing tables into higher normal forms.
25
What is denormalization?
Denormalization is the process of intentionally introducing redundancy by merging tables.
26
What is a heap table?
A heap table is a table where no order is imposed on rows, and it is optimized for insert operations.
27
What is an index in a database?
An index is a data structure that improves the speed of data retrieval operations on a table.
28
What is a hash index?
A hash index is an index where entries are assigned to buckets based on a hash function.
29
What is a bitmap index?
A bitmap index is a grid of bits where each bit represents the existence of a particular value in the indexed column.
30
What does the SQL CREATE INDEX statement do?
The CREATE INDEX statement creates an index on specified columns of a table to speed up data retrieval.
Study all 30 cards for free