AN 324 Exam 1

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

Foreign Keys must be composite keys (T/F)

1 / 24

encourage image

There's no tags or description

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

25 Terms

1

Foreign Keys must be composite keys (T/F)

False

New cards
2

Consider a relational database used by hospital to manage patients and primary care physicians. What is the likely cardinality of the relationship between patients and PCP?

1 to many
many to many
1 to 1

1 to many

New cards
3

A ________ is a big data store that can house data from multiple sources in its original format

Data Lake

New cards
4

_________ data is easily stored in a relational database management system.

Structured

New cards
5

which of the following is not part of the data deluge (big data)?

volume
variance
variety
velocity

Variance

New cards
6

the SELECT statement is an example of which of following?

Data definition language
data manipulation language
data control language
data dictionary language

Data manipulation language

New cards
7

which sql clause filters the results based on the group meeting a certain condition?

where
limit
having
order by

having

New cards
8

SQL SELECT clauses are written in a specific order, but the database processes the clauses in a different order. What is the first clause processed in a SELECT query?

FROM

New cards
9

What SQL key word is similar to an IF function in Excel or IF, THEN, ELSE in other coding languages?

Case

New cards
10

Which logical operator checks for patterns in a string?

IN
HAVING
LIKE
BETWEEN

LIKE

New cards
11

Which of these is NOT a mathematical function available in MySQL?

Median
STD
AVG
MAX

Median

New cards
12

A _______ allows you to combine tables horizontally.

JOIN

New cards
13

which type of join creates every combination of values from the left table and the right table and should be used with caution?

CROSS JOIN

New cards
14

Which kind of SQL clause could result in some NULL fields if there is not an exact match between the two tables being combined?

LEFT JOIN

New cards
15

JOINS always require linking primary keys and foreign keys between tables. (T/F)

False

New cards
16

Which of the following are required for a UNION query to work?

must include the same columns in both queries being combined

columns must have the same data type in both queries being combined

must include table or query alias

must include an ON clause

must include the same columns in both queries being combined

columns must have the same data type in both queries being combined

New cards
17

A subquery in the WHERE clause acts like a derived table. (T/F)

False

New cards
18

Parentheses are required around the inner query. (t/f)

true

New cards
19

in a _________ subquery, the inner query depends on the information from the outer query.

CORRELATED

New cards
20

Joins and subqueries can never be used interchangeably to answer questions. (t/f)

false

New cards
21

Subqueries can display data from the inner most query. (t/f)

False

New cards
22

a ______ acts like a virtual table that stores SQL statements so that you can run it on-demand.

VIEW

New cards
23

Which of the following is an example of Data Definition Language?

CREATE

New cards
24

Which of the following should be avoided when possible?

left joins, due to potential unexpected results

natural joins, due to potential unexpected results

correlated subqueries, due to efficiency

unions, due to efficiency

natural joins

correlated subqueries

New cards
25

which of the following keywords is used to delete objects, such as tables, from a database?

DROP

New cards

Explore top notes

note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
4.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 69 people
... ago
5.0(3)
note Note
studied byStudied by 18 people
... ago
4.5(2)

Explore top flashcards

flashcards Flashcard (80)
studied byStudied by 13 people
... ago
4.0(1)
flashcards Flashcard (73)
studied byStudied by 15 people
... ago
4.5(2)
flashcards Flashcard (65)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 242 people
... ago
5.0(5)
flashcards Flashcard (79)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (80)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 228 people
... ago
5.0(4)
robot