database ch.1

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

What is a database?

1 / 124

encourage image

There's no tags or description

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

125 Terms

1

What is a database?

A database is a structured collection of data stored in a computer system, organized in rows and columns, which allows efficient storage, retrieval, and management of information.

New cards
2

Imagine a database like a ______, but instead of books, it stores information in neat rows and shelves.

library

New cards
3

What did databases replace for data storage?

Databases replaced traditional pen-and-paper methods for data storage, which were prone to errors and inefficiency.

New cards
4

What were early types of databases?

Early databases included hierarchical and network databases.

New cards
5

Databases are commonly used in sectors such as ______, ______, and more.

banking; customer management

New cards
6

What is a Database Management System (DBMS)?

A DBMS is software that provides a systematic way to create, retrieve, update, and manage data in databases, ensuring data integrity and security.

New cards
7

Think of a DBMS like a ______ who helps you find the right book and ensures everything is in order.

librarian

New cards
8

What are the primary functions of a DBMS?

A DBMS allows for data manipulation, access control, concurrent access support, and ensures data consistency and integrity through transaction management.

New cards
9

How does a DBMS prevent unauthorized changes?

A DBMS provides access control to prevent unauthorized changes.

New cards
10

What does concurrent access in a DBMS allow?

Concurrent access allows multiple users to access the database simultaneously.

New cards
11

What is data redundancy?

Data redundancy occurs when the same piece of data is stored in multiple places within a database, leading to inefficiency and potential inconsistencies.

New cards
12

Data redundancy leads to ______ and can increase costs.

unnecessary storage usage

New cards
13

Why is data redundancy problematic?

Data redundancy can lead to errors, reliability issues, and increased costs due to inconsistent data across multiple storage locations.

New cards
14

What is data accuracy?

Data accuracy refers to the correctness and reliability of the data stored in a database.

New cards
15

Maintaining data accuracy is like ensuring all the pieces in a ______ fit perfectly.

puzzle

New cards
16

Why is data accuracy important?

Inaccurate data can result in unreliable decision-making and operations.

New cards
17

What is the difference between a file processing system and a database system?

A file processing system stores and manages data in flat files, while a database system uses a DBMS for more organized and efficient handling of large datasets.

New cards
18

A file processing system is like a stack of random papers, whereas a database system is like a well-organized ______.

filing cabinet

New cards
19

What are the limitations of file processing systems?

File processing systems have limitations such as data redundancy, lack of data integrity, and security issues.

New cards
20

What advantages do databases provide over traditional file systems?

Databases provide improved efficiency, versatility, and multi-user access.

New cards
21

Databases handle large amounts of data ______, supporting businesses in decision-making processes.

efficiently

New cards
22

How do databases provide versatility?

Databases can be accessed from various devices like desktops, laptops, tablets, and mobile phones.

New cards
23

What is one key benefit of databases in terms of user access?

Databases allow multiple users to access the same data concurrently without conflicts.

New cards
24

What are some costs and risks associated with using databases?

High initial setup costs, maintenance, and organizational conflicts.

New cards
25

Setting up a database is like building a fancy new ______.

playground

New cards
26

What additional costs are involved in maintaining a database system?

Backup and recovery systems to protect data from loss, and hiring skilled personnel for management.

New cards
27

What are the components of a database environment?

People, hardware, software, data, and procedures.

New cards
28

A database environment is like a restaurant; it needs ______, kitchen tools (hardware), recipes (software), ingredients (data), and rules on how to cook (procedures).

chefs (people)

New cards
29

What roles do people play in a database environment?

Roles like system administrators, database administrators, designers, programmers, analysts, and end-users.

New cards
30

What hardware is included in a database environment?

Computers, networking components, and storage devices.

New cards
31

What is the software component of a database environment?

Operating systems and database management programs.

New cards
32

What is the data component of a database environment?

The actual data stored in the database.

New cards
33

What are procedures in a database environment?

Rules and guidelines for data management and access.

New cards
34

What is the Database Systems Development Life Cycle (DBLC)?

The DBLC is a structured approach to developing and maintaining a database system, consisting of multiple phases from planning to maintenance.

New cards
35

The DBLC is like building and taking care of a ______.

garden

New cards
36

What are the phases of the Database Systems Development Life Cycle (DBLC)?

Primary study planning, analysis and design, implementation, testing and evaluation, operation and maintenance, and evolution.

New cards
37

What happens during the primary study planning phase of the DBLC?

Examining the current system and defining objectives, scope, and constraints.

New cards
38

What happens during the analysis and design phase of the DBLC?

Understanding system requirements and designing the database structure.

New cards
39

What is done in the implementation phase of the DBLC?

Developing and installing the database.

New cards
40

What is the purpose of the testing and evaluation phase in the DBLC?

Ensuring the system functions correctly and meets requirements.

New cards
41

What is involved in the operation and maintenance phase of the DBLC?

Regular updates and fixing any issues that arise.

New cards
42

What does the evolution phase of the DBLC focus on?

Making improvements based on user feedback and changing needs.

New cards
43

DDL – Data Definition Language

In the context of SQL, it is a syntax for creating and modifying database objects such as tables, indices, and users. DDL statements are similar to a computer programming language for defining data structures, especially database schemas.

New cards
44

DQL – Data Query Language

Part of the base grouping of SQL sub-languages. These sub-languages are mainly categorized into four categories

New cards
45

DML – Data Manipulation Language

A computer programming language used for adding (inserting), deleting, and modifying (updating) data in a database. A DML is often a sublanguage of a broader database language such as SQL, with the DML comprising some of the operators of the language.

New cards
46

DCL – Data Control Language

A syntax similar to a computer programming language used to control access to data stored in a database (authorization). It is a component of SQL and one of the logical groups in SQL commands.

New cards
47

TCL – Transaction Control Language

Commands used to manage transactions in the database. These are used to manage the changes made by DML statements. It also allows statements to be grouped together into logical transactions.

New cards
48

CRM – Customer Relationship Management

Combination of practices, strategies, and technologies that companies use to manage and analyze customer interactions and data throughout the customer lifecycle.

New cards
49

ERP – Enterprise Resource Planning

The ability to deliver an integrated suite of business applications. ERP tools share a common process and data materials.

New cards
50

SAP – System, Applications & Products in Data Processing

Consists of a number of fully integrated modules that cover virtually every aspect of business management.

New cards
51

DBMS – DataBase Management System

Software designed to store, retrieve, define, and manage data in a database.

New cards
52

SQL – Structured Query Language

A programming language that is typically used in relational databases or data stream management systems.

New cards
53

ER – Entity Relationship

A type of structural diagram used in database design.

New cards
54

UUID – Universally Unique Identifier

A 128-bit number used to identify information in computer systems.

New cards
55

GUID – Globally Unique Identifier

The same as UUID but used in Microsoft systems.

New cards
56

Primary Key

Contains a unique value for a record in a table. Used in OLTP schemas. Is read-only, numeric, or a string. It comes from CODD-Data rules for the 3rd normal form. Knowing the key's data value allows you to reference a specific row in the table. In data normalization, the primary key is the field or combination of fields that uniquely defines a row.

New cards
57

Natural Key

Has contextual or business meaning. Example

New cards
58

Natural Key Pros

They have business meaning and can be used as a search key when querying the table. Columns and primary key index already exist, so no extra disk space is used to create a surrogate key. Fewer table joins since columns have meaning.

New cards
59

Natural Key Cons

May need to change or rework if business requirements change (e.g., using Social Security Number but needing to adjust when going global). It is more difficult to maintain if the key requires multiple columns. Poorer performance since the key value is usually larger and/or made up of multiple columns. Cannot enter a record until the key value is known. Can be difficult to pick good keys.

New cards
60

Surrogate Key

If it takes multiple rows to uniquely identify each record, a simple number can be created to uniquely identify each record. This is what a surrogate key is. It does not have any contextual or business meaning. It is manufactured ‘artificially’ only for the purpose of data analysis.

New cards
61

Surrogate Key Pros

No business logic in the key, so no changes based on business requirements. Less code if maintaining a key strategy across all entities. Better performance since the key value is smaller. The surrogate key is guaranteed to be unique.

New cards
62

Surrogate Key Cons

Extra columns/index requires extra disk space. Will require extra I/O (Input/Output) when inserting or updating data. Requires more table joins to child tables since the data has no meaning of its own. The key value has no relation to data, so the design technically breaks the 3NF. Cannot be used as a search key.

New cards
63

Database Normalization

The process of organizing the fields and tables of a relational database to minimize redundancy.

New cards
64

What is the most common type of DBMS Model? a) Hierarchical b) Network c) Relational d) Object-Relational e) Object Oriented

c) Relational

New cards
65

A Relational Database can be seen as a) Many unrelated tables b) 10 or more tables c) Tables related to each other through a common column

c) Tables related to each other through a common column

New cards
66

Who is the creator of the Relational Model? a) Michael Stonebraker, creator of INGRES and POSTGRES b) Alan Kay and Adelle Goldberg, Xerox PARC c) William Shockley, inventor of the transistor d) Steve Wozniak and Steve Jobs, Apple Corporation e) E.F. Codd, IBM researcher

e) E.F. Codd, IBM researcher

New cards
67

DBA stands for a) The three possible grades that a student can get in CIT365 b) Data Before Analysis c) Database Administrator

c) Database Administrator

New cards
68

Which is the most popular personal DBMS in the world? a) Oracle b) DB2 c) MS-Access d) MySQL

a) Oracle

New cards
69

Which are the typical tasks of a DBA? a) Startup and Shutdown the Database b) Install new versions of the DBMS c) Participate in the Design and Redesign of the Database d) Perform Backup e) All of the Above

e) All of the Above

New cards
70

List two popular open source DBMS

______ MySQL and ______ PostgreSQL

New cards
71

List three popular enterprise DBMS

______ SQL, ______ Oracle, and ______ DB2

New cards
72

List the three biggest DBMS vendors

______ IBM, ______ Microsoft, and ______ Oracle

New cards
73

The capacity to have two or more users/applications accessing the database at the same time is called a) Concurrency b) Consistency c) Integrity d) Availability

a) Concurrency

New cards
74

Being able to trust that the data is correct, and that the data will continue to be correct after we modify it is called a) Concurrency b) Confidentiality c) Integrity d) Availability

c) Integrity

New cards
75

Metadata is a) Raw Data b) Any data stored in the Database c) Data about data

c) Data about data

New cards
76

Metadata is data that is inserted into the database by a) the programmer b) by the DBA c) Only by the DBMS. When we insert data into the database, the DBMS inserts the corresponding metadata

c) Only by the DBMS. When we insert data into the database, the DBMS inserts the corresponding metadata

New cards
77

Which of the following commands is to look at the META DATA? a) SELECT * FROM Customers; b) DESCRIBE Customers; c) SELECT * FROM Orders; d) INSERT INTO Customers Value (‘C006’, ‘DEWA’, ‘Dubai’, 11);

b) DESCRIBE Customers;

New cards
78

Three DDL commands

d) CREATE, ALTER, DROP

New cards
79

Four DML commands

a) CREATE, UPDATE, DELETE, SELECT b) INSERT, UPDATE, DROP, SELECT c) CREATE, ALTER, DELETE, SELECT d) INSERT, MODIFY, DELETE, SELECT e) INSERT, UPDATE, DELETE, SELECT

New cards
80

To change the value of a customer’s discount from 8 to 4, what command do we need to use? a) INSERT b) SELECT c) REDUCE d) ALTER TABLE e) UPDATE

e) UPDATE

New cards
81

To construct a new table (with no data) we use which Command? a) CREATE TABLE b) ALTER TABLE c) DROP TABLE d) INSERT e) UPDATE

a) CREATE TABLE

New cards
82

To add a column to a table we use which Command? a) CREATE TABLE b) ALTER TABLE c) DROP TABLE d) INSERT e) UPDATE

b) ALTER TABLE

New cards
83

To include a new row in a table we use which Command? a) CREATE TABLE b) ALTER TABLE c) DROP TABLE d) INSERT e) UPDATE

d) INSERT

New cards
84

To remove a table from the database we use which Command? a) CREATE TABLE b) ALTER TABLE c) DROP TABLE d) INSERT e) DELETE

c) DROP TABLE

New cards
85

For the statement SELECT x FROM y; x can be a) Columns of tables that exist in table y b) Tables c) All of the above d) None of the above

a) Columns of tables that exist in table y

New cards
86

For the statement SELECT x FROM y; y can be a) Columns of tables that exist in table y b) Tables c) All of the above d) None of the above

b) Tables

New cards
87

What does analyzing the company situation involve?

Defining the general conditions within a company, including its organizational structure and mission, understanding operation components, their functions, and interactions.

New cards
88

What is similar to figuring out how a school works in analyzing a company?

Knowing who is in charge, what each person does, and how everyone works together.

New cards
89

What are key aspects to understand in analyzing the company situation?

The company’s organizational structure, the company’s mission and objectives, how various components function and interact, and analyzing operational processes and their effectiveness.

New cards
90

What does defining problems and constraints involve?

Discovering both formal and informal issues within the company, which may appear unstructured but are interconnected.

New cards
91

What is like finding problems in a confusing game?

Fixing the problems to make the game better.

New cards
92

What are key steps in defining problems and constraints?

Identify and document formal and informal issues, recognize that problems are often linked, and develop strategies to address and resolve interconnected problems.

New cards
93

What does defining objectives refer to?

Establishing goals for a new proposed database system to address and solve the major problems previously identified.

New cards
94

What is similar to setting goals for a school project?

Defining objectives for a new proposed database system.

New cards
95

What should be ensured when defining objectives for a database system?

Objectives should align with identified problems, be clear and measurable, and ensure the database design solves major issues.

New cards
96

What does defining the scope and boundaries involve?

Recognizing the limits of the design, including scope (extent of design based on requirements) and boundaries (external limits set by hardware and software).

New cards
97

What is like knowing how big your drawing paper is and where you can and can’t draw?

Defining the scope and boundaries of a database design.

New cards
98

What are key aspects to define when setting the scope and boundaries?

Define the scope of the database design according to requirements and identify boundaries set by external hardware and software.

New cards
99

What is database design?

The second phase of the Database Life Cycle (DBLC), focusing on designing the database to support company operations and future objectives.

New cards
100

What is similar to planning how to organize your toy boxes?

Database design.

New cards

Explore top notes

note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
4.0(1)
note Note
studied byStudied by 5 people
... ago
4.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
4.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 40070 people
... ago
4.8(312)

Explore top flashcards

flashcards Flashcard (201)
studied byStudied by 32 people
... ago
5.0(1)
flashcards Flashcard (64)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 6 people
... ago
4.0(2)
flashcards Flashcard (42)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (91)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 19 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 18 people
... ago
4.0(1)
flashcards Flashcard (45)
studied byStudied by 4 people
... ago
5.0(1)
robot