Introduction to Databases, ER Modeling, Relational Algebra

5.0(1)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/39

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.

40 Terms

1
New cards
What is a database?
An organized collection of data.
2
New cards
What is the importance of a database?
To provide efficient storage and retrieval of data.
3
New cards
What are the different types of databases?
Relational, NoSQL, object-oriented, etc.
4
New cards
What are the components of a database?
Data, schema, DBMS, users, and hardware.
5
New cards
What are some advantages of using a database?
Data consistency, security, and scalability.
6
New cards
What are some disadvantages of using a database?
Complexity, cost, and maintenance.
7
New cards
What is ER modeling?
A graphical representation of entities and relationships used to design and understand the structure of a database.
8
New cards
What is the purpose of ER modeling?
To design and understand the structure of a database.
9
New cards
What are entities in ER modeling?
Objects with distinct properties.
10
New cards
What are attributes in ER modeling?
Characteristics of entities.
11
New cards
What are relationships in ER modeling?
Connections between entities.
12
New cards
What is cardinality in ER modeling?
The number of entities involved in a relationship.
13
New cards
What are ER diagrams?
A visual representation of entities and relationships.
14
New cards
What is relational algebra?
A mathematical operation used for manipulating and retrieving data from relational databases.
15
New cards
What is the purpose of relational algebra?
To manipulate and retrieve data from databases.
16
New cards
What are the basic operations in relational algebra?
Selection, projection, union, intersection, difference, and Cartesian product.
17
New cards
What is selection in relational algebra?
Filtering data based on a condition.
18
New cards
What is projection in relational algebra?
Selecting specific attributes from a relation.
19
New cards
What is union in relational algebra?
Combining data from two relations, keeping only distinct tuples.
20
New cards
What is intersection in relational algebra?
Combining data from two relations, keeping only common tuples.
21
New cards
What is difference in relational algebra?
Finding tuples that are in one relation but not the other.
22
New cards
What is Cartesian product in relational algebra?
Combining data from two relations, creating all possible pairs.
23
New cards
What are join operations in relational algebra?
Inner join, outer join, and natural join.
24
New cards
What is inner join in relational algebra?
Combining data from two relations, keeping only the common tuples.
25
New cards
What is outer join in relational algebra?
Combining data from two relations, keeping all tuples from one relation and matching tuples from the other relation.
26
New cards
What is natural join in relational algebra?
Combining data from two relations, keeping only the common tuples and eliminating the duplicate columns.
27
New cards
What is division operation in relational algebra?
Retrieving data that matches a set of conditions.
28
New cards
What is a primary key in a database?
A unique identifier for a row in a table.
29
New cards
What is a foreign key in a database?
A key in one table that refers to the primary key of another table.
30
New cards
What is normalization in a database?
The process of organizing data in a database to minimize redundancy and dependency.
31
New cards
What is denormalization in a database?
The process of adding redundant data to a database to improve performance.
32
New cards
What is a transaction in a database?
A unit of work performed by a user that involves one or more database operations.
33
New cards
What is a rollback in a database?
Undoing the changes made in a transaction.
34
New cards
What is a commit in a database?
Saving the changes made in a transaction.
35
New cards
What is the purpose of ER modeling?
The purpose of ER modeling is to design and understand database structure.
36
New cards
What are the components of an ER diagram?
The components of an ER diagram are entities, attributes, and relationships.
37
New cards
What is the difference between a left outer join and a right outer join?
A left outer join returns all the rows from the left table and matching rows from the right table, while a right outer join returns all the rows from the right table and matching rows from the left table.
38
New cards
What is the purpose of the selection operation in relational algebra?
The purpose of the selection operation is to filter data based on a condition.
39
New cards
What is the difference between a NoSQL database and a relational database?
A NoSQL database is a non-relational database that does not use a fixed schema, while a relational database is a structured database that uses tables with predefined relationships between them.
40
New cards
What is a Cartesian product in relational algebra?
A Cartesian product is a binary operation that returns a table containing all possible combinations of rows from two input tables.