Introduction to Databases, ER Modeling, Relational Algebra

studied byStudied by 3 people
5.0(1)
Get a hint
Hint

What is a database?

1 / 39

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

40 Terms

1

What is a database?

An organized collection of data.

New cards
2

What is the importance of a database?

To provide efficient storage and retrieval of data.

New cards
3

What are the different types of databases?

Relational, NoSQL, object-oriented, etc.

New cards
4

What are the components of a database?

Data, schema, DBMS, users, and hardware.

New cards
5

What are some advantages of using a database?

Data consistency, security, and scalability.

New cards
6

What are some disadvantages of using a database?

Complexity, cost, and maintenance.

New cards
7

What is ER modeling?

A graphical representation of entities and relationships used to design and understand the structure of a database.

New cards
8

What is the purpose of ER modeling?

To design and understand the structure of a database.

New cards
9

What are entities in ER modeling?

Objects with distinct properties.

New cards
10

What are attributes in ER modeling?

Characteristics of entities.

New cards
11

What are relationships in ER modeling?

Connections between entities.

New cards
12

What is cardinality in ER modeling?

The number of entities involved in a relationship.

New cards
13

What are ER diagrams?

A visual representation of entities and relationships.

New cards
14

What is relational algebra?

A mathematical operation used for manipulating and retrieving data from relational databases.

New cards
15

What is the purpose of relational algebra?

To manipulate and retrieve data from databases.

New cards
16

What are the basic operations in relational algebra?

Selection, projection, union, intersection, difference, and Cartesian product.

New cards
17

What is selection in relational algebra?

Filtering data based on a condition.

New cards
18

What is projection in relational algebra?

Selecting specific attributes from a relation.

New cards
19

What is union in relational algebra?

Combining data from two relations, keeping only distinct tuples.

New cards
20

What is intersection in relational algebra?

Combining data from two relations, keeping only common tuples.

New cards
21

What is difference in relational algebra?

Finding tuples that are in one relation but not the other.

New cards
22

What is Cartesian product in relational algebra?

Combining data from two relations, creating all possible pairs.

New cards
23

What are join operations in relational algebra?

Inner join, outer join, and natural join.

New cards
24

What is inner join in relational algebra?

Combining data from two relations, keeping only the common tuples.

New cards
25

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.

New cards
26

What is natural join in relational algebra?

Combining data from two relations, keeping only the common tuples and eliminating the duplicate columns.

New cards
27

What is division operation in relational algebra?

Retrieving data that matches a set of conditions.

New cards
28

What is a primary key in a database?

A unique identifier for a row in a table.

New cards
29

What is a foreign key in a database?

A key in one table that refers to the primary key of another table.

New cards
30

What is normalization in a database?

The process of organizing data in a database to minimize redundancy and dependency.

New cards
31

What is denormalization in a database?

The process of adding redundant data to a database to improve performance.

New cards
32

What is a transaction in a database?

A unit of work performed by a user that involves one or more database operations.

New cards
33

What is a rollback in a database?

Undoing the changes made in a transaction.

New cards
34

What is a commit in a database?

Saving the changes made in a transaction.

New cards
35

What is the purpose of ER modeling?

The purpose of ER modeling is to design and understand database structure.

New cards
36

What are the components of an ER diagram?

The components of an ER diagram are entities, attributes, and relationships.

New cards
37

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.

New cards
38

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.

New cards
39

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.

New cards
40

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.

New cards

Explore top notes

note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 56 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 134 people
... ago
5.0(2)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
4.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (71)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 27 people
... ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 11 people
... ago
5.0(2)
flashcards Flashcard (62)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 28 people
... ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (67)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 3 people
... ago
5.0(1)
robot