Module 1 - Introduction to Databases Flashcards

(22 cards)

1
Q

Simply describe the word DATA…

A

Numeric, textual, visual, or audio information that describes real world systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DATA can vary in several important ways, describe 3 of these ways…

A
  1. Scope - the amount of data produced and collected can vary depending on the business
  2. Format - data may be produced as numbers, text, video, or audio
  3. Access - some data sources are private where others are publicly available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A collection of data stored in a structured format is known as a?

A

Database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A software that reads or writes data in a database is known as a?

A

Database management system or DBMS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a query?

A

A request to retrieve or change data in a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Who is responsible for ensuring security in the database against unauthorized users?

A

Database administrator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Who determines the format of each data element and the overall database structure?

A

Database designer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Who develops programs that utilize a database?

A

Database programmer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a group of queries that must be either completed or rejected as a whole?

A

A transaction - execution of some but not all may result in incorrect or inconsistent data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Most leading databases are relational, what does this mean?

A

This is a database that stores data in tables columns and rows, similar to a spreadsheet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SQL or structured query language, includes programming statements that do what?

A
  1. Read and write data
  2. Create and delete tables
  3. Administer the database system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the four common queries known as the CRUD operations…

A
  1. CREATE
  2. READ
  3. UPDATE
  4. DELETE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are other most common SQL commands?

A
  1. INSERT
  2. SELECT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Write a basic insert statement into a table called “account”, with values of (290, ‘Ethan Carr’, 5000) …

A

INSERT INTO Account
VALUES (290, ‘Ethan Carr’, 5000);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Write a basic select statement that selects the names from the account table where their balance is over 3000…

A

SELECT Name
FROM Account
WHERE Balance > 3000;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Write a basic update statement that changes Raul’s balance from 3300 to 4500 …

A

UPDATE Account
SET Balance = 4500
WHERE ID = 831;

17
Q

Write a basic delete statement that deletes Raul from the database

A

DELETE FROM Account
WHERE ID = 831;

18
Q

Simply explain the create table statement with an example…

A

The create table statement creates a new table by specifying the table and column names. Each column is given a data type that indicates the format of the column values

Example:
CREATE TABLE Employee (
ID INT,
Name VARCHAR (60),
BirthDate DATE,
Salary Decimal(7,2)
);

19
Q

Database design typically has 3 phases of planning, name 3 in order …

A
  1. Conceptual design
  2. Logical design
  3. Physical design
19
Q

Which design phase specifies database requirements without regard to a specific database system?

A

Conceptual design - requirements are represented as attributes, entities, and relationships

20
Q

Explain logical design

A

Logical design implements database requirements into a specific database system, in relational databases this is converting into tables, keys, and columns