Midterm Flashcards

(64 cards)

1
Q

database design has 2 levels - logical and discrete

A

false

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

OLAP focuses on analytical processing

A

True

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

relational DBs leading advantage is speed of processing

A

false

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

SQL is a DB that helps user create, modify, maintain and query data

A

false

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

a field is represented as a row in a table

A

false

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

the primary key value must be unique in each row of a table

A

true

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

information is data that is processed in a way that is meaningful to a user

A

true

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

NULL is a value in a DB that can also be described as 0

A

false

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

lowest level structure in a relational table is the ________

A

field

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

a view is a virtual table composed of fields from one or more tables

A

true

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

a many to many relationship is not a valid table relationship

A

false

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

SELECT cust_number, cust_name

FROM customer;

This is a valid SQL statement that will return output composed of one column showing all customer numbers in a DB

A

false

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

SELECT cust_number, cust_name

FROM customer;

above SQL statement output will be in ascending order by cust-name

A

fasle

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

looking for subjects is a good technique for identifying your table list

A

true

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

calculated fields should be stored in a values table for easy access

A

false

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

field level integrity ensures no duplicate records in a table

A

false

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

relationship level integrity is also known as referential integrity

A

true

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

mission statements need to make it clear how your database will work

A

false

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

The collection of data used for modeling processes is the:

a. Database

b. RDBMS

c. OSI layers

d. OLTP

e. none of these

A

a

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

2 main DB types are:

a. operational & analytical

b. logical & discrete

c. analytical & logical

d. all valid types

A

a

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

The advantages of a relational database include:

a. data integrity at multiple levels

b. data accuracy

c. ease of access

d. all of these

e. “b” and “c”

A

d

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

The most common SQL statement to pull information from a DB uses the syntax:

a. PULL

b. PICK

c. SELECT

d. GET

e. EXTRACT

A

c

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

Set of rules that decomposes data tables to minimize redundancy, minimize dependency, and enforce relationship integrity is known as:

a. Abstraction

b. Normalization

c. Data modeling

d. 3 Tiered Architecture

A

b

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

In order to store acceptable values that a program can use for reference checks, one creates a:

a. Data table

b. Normalization table

c. Reference check table

d. Validation table

A

d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
In order to establish a relationship between 2 tables, one would take the primary key of one subject table and set up a ________ in the other table. a. cross reference key b. secondary key c.foreign key d. index
c
26
1:1, M:M, and 1:M are known as: a. table types b. cardinality c. normalization d. participation
b
27
The standard wild card symbol used in SQL is: a. * b. /* c. W d. # e. none of these
a
28
The first step in the design process of a good database should be: a. Analyze current DB b. Define table c. Define business rules d. Define the mission statement
d
29
The characteristics list will eventually be used to: a. define views b. define rows c. define fields d. define tables e. all of these
c
30
Which of the following is contributing to data explosion and need for advanced database capabilities? a. smart phones b. internet c. broad band d. computer availability e. all of these
e
31
Which of the following best describes an example of an RDBMS? a. Oracle b. SQL c. DB2 d. "a" and "b" e. "a" and "c" f. "b" and "c"
e
32
When analyzing the current DB, what should you do?. a. retrieve current DB structure b. pull available reports c. look at programs d. "a" and "c" e. all of these
e
33
1 subject = 1 _______ 1 characteristic = 1 _____________
table, field
34
table that contains fields (with sensitive information) that are related to a particular parent table(s) clue is that a table exists where certain fields often don't have values
subset table
35
a table with typically static date; important for data integrity
validation/look-up table
36
Table descriptions need:
what: kind of info is contained, people, places, etc. why: the data contained is important AVOID saying how the data is used
37
When is it okay to have duplicate fields?
1. needed to relate tables together (this is the reason most of the time) 2. show multiple occurrences of a value (ex: supervisor_no is an alias of the supervisor's employee_no b/c supervisor is an employee too) 3. perceived need for supplemental value
38
Type of key: a field or set of fields that uniquely identifies a single instance of the table's subject. Each table must have at least one. Elements: - It cannot be a multipart field. - It must contain unique values. - It cannot contain null values - Its value cannot cause a breach of the organization's security or privacy rules. - Its value is not optional in whole or in part. - Its values must uniquely and exclusively identify each record in the table. - Its value can be modified only in rare or extreme cases.
Candidate key
39
Type of key: -Picked from the list of candidate keys -exclusively identifies the table -uniquely identifies each record in a table -table name should be included in its name (i.e. employee number) - there must only be ONE per table - 2 tables can't share one unless it's a subset table
primary key
40
What is the proper SQL order with everything we've learned so far?
SELECT (column name) FROM (table name) WHERE (column name = value/'character string') ORDER BY (column name ASC/DESC);
41
What makes a field name a character and not a decimal?
When you will never do mathematical equations with it (such as address number)
42
What can be used after a WHERE clause? (5 answers)
AND, OR, BETWEEN AND, IN (), LIKE
43
Field Specification -- General Elements, Physical Elements, or Logical Elements: Field Name, Parent Table, Label, Specification Type, Source Specification, Shared By, Alias(es), Description
General Elements (pertains to the basic attributes of the field)
44
Field Specification -- General Elements, Physical Elements, or Logical Elements: Data Type, Length, Decimal Places, Character Support, Input Mask, Display Format
Physical Elements (pertains to the structure of the field)
45
Field Specification -- General Elements, Physical Elements, or Logical Elements: Key Type, Key Structure (e.g PK), Uniqueness, Accepts Nulls or Doesn't, Values Entered By (User or System), Required Value, Default Value, Range of Values, Edit Rule, Comparisons Allowed (<, >=, etc.), Operations Allowed (+ x - /)
Logical Elements (pertains to values within the field)
46
What SQL input would you type if you want the output to show all product names (prod_name) that start with "folder" in their name
WHERE prod_name LIKE 'folder%'
47
What SQL input would you type if you want the output to show all product names (prod_name) that have "folder" anywere in their name
WHERE prod_name LIKE '%folder%'
48
True or false: WHERE prod_name LIKE '%' The output of this line would include 0, blanks/spaces, but not NULL values
true
49
What SQL input would you type to get a list of all the product names (prod_name) for each number of pencils (e.g. No2 Pencil, No3 Pencil, No4 Pencil...)
WHERE prod_name LIKE 'No_ Pencil'
50
SQL input to get all products (prod_name) that start with P or F (pencils, paper, folder, etc.)
WHERE prod_name LIKE '[P F]%'
51
SQL input to get all products (prod_name) that start with ANYTHING BUT P or F
WHERE prod_name LIKE '[^ P F]%'
52
What WHERE clause searches text fields that contain a certain part of a value
LIKE
53
When do you put ' ' around a typed value
when it's a character (you will never do mathematical calculations with it)
54
SQL: Make a calculated temporary field called "employee_name". Join the values employee_lastname and employee_first name. (Should look like: "Doe, Jane")
SELECT employee_lastname || ',' || employee_firstname AS employee_name
55
What is AS used for and which part does it go in?
to make an alias in SELECT
56
Types of NoSQL DB (4)
NoSQL is "not only SQL". There are no tables, primary keys, or foreign keys. Instead, they can use: wide-column, document, key-value, graph
57
Pros of NOSQL
Flexible (non-structured) Elastic
58
Cons of NoSQL
More redundancy Lack of consistency Lack of standards (b/c non-structured)
59
Types of Cloud DB
Software as a System (SaaS, ex Microsoft Offcie), Infrastructure as a System (IaaS, ex Amazon), Platform as a System (PaaS, ex Google App Engine), Database as a System (DBaaS)
60
Pros of Cloud
Elasticity (pay for what you use) Scalable/flexible Reliable
61
cons of cloud
can't be accessed without the internet, security risk
62
Big Data DB
HUGE data sets, can be unstructured, structured, or semi-structured, used to analyze big data and find trends
63
Pros of Big Data
real-time data analytics (better decision-making) efficiency personalization
64
Cons of Big Data
Costly Data cleansing needed