1What is a database application?
A database application is software that helps business users interact with database systems.
2What 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.
3What 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.
4What 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.
5What 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.
6What is an entity in database analysis?
An entity is a person, place, activity, or thing.
7What 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.
8What is a tuple in the context of databases?
A tuple is an ordered collection of elements enclosed in parentheses.
9What is data independence?
Data independence allows database administrators to improve query performance by changing the organization of data without affecting query results.
10What 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.
11What is a foreign key?
A foreign key is a column or group of columns that refer to a primary key in another table.
12What does the SQL UPDATE statement do?
The UPDATE statement modifies existing rows in a table.
13What 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.
14What 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).
15What is a candidate key?
A candidate key is a column or set of columns that uniquely identifies a row in a table.
16What is Boyce-Codd normal form?
Boyce-Codd normal form ensures that every non-key column is functionally dependent on a superkey.
17What 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.
18What is a self-join?
A self-join is a join where a table is joined with itself.
19What 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.
20What is referential integrity in a database?
Referential integrity ensures that foreign keys in a table accurately refer to primary keys in another table.
21What 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.
22What does the LIKE operator do in SQL?
The LIKE operator matches text against a pattern using wildcard characters, such as % and _.
23What is an entity-relationship diagram (ERD)?
An ERD is a schematic picture that represents entities, relationships, and attributes in a database system.
24What is normalization in database design?
Normalization is the process of eliminating redundancy by decomposing tables into higher normal forms.
25What is denormalization?
Denormalization is the process of intentionally introducing redundancy by merging tables.
26What is a heap table?
A heap table is a table where no order is imposed on rows, and it is optimized for insert operations.
27What is an index in a database?
An index is a data structure that improves the speed of data retrieval operations on a table.
28What is a hash index?
A hash index is an index where entries are assigned to buckets based on a hash function.
29What 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.
30What 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.