Infoman Midterms Flashcards

1
Q

Each table in a relational database must have a primary key. [T/F]

A

True

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

A data dictionary contains metadata—data about data.[T/F]

A

True? (Google answer) (canvas answer =False)

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

A proper understanding of the concept and use of keys in a relational database model is very important. [T/F]

A

True

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

You can think of a table as a persistent representation of a logical relation.[T/F]

A

True

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

There is never a good reason to use null values in a database.[T/F]

A

False? (Google answer) (canvas answer =True)

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

Numeric data are data on which you can perform meaningful arithmetic procedures.[T/F]

A

True

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

All RDBMSs enforce integrity rules automatically[T/F]

A

False (Many RDBMS not all)

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

Character data can contain any character or symbol intended for mathematical manipulation. [T/F]

A

False

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

A data dictionary is sometimes described as “the database designer’s database” because it records the
design decisions about tables and their structures. [T/F]

A

True

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

The order of the rows and columns is important to the DBMS.[T/F]

A

False

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

Depending on the sophistication of the application development software with DBMS, nulls can create problems
when functions such as COUNT, AVERAGE, and SUM are used.[T/F]

A

True

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

Because the relational model uses attribute values to establish relationships among tables, many
database users correctly assume that the term relation refers to such relationships. .[T/F]

A

False

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

The practical significance of taking the logical view of a database is that it serves as a reminder of the
simple file concept of data storage. [T/F]

A

True

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

Referential and entity integrity are two names for the same thing. [T/F]

A

False

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

DBMSs use indexes for many different purposes.

A

True

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

The relational database model enables you to view data ____ rather than ____.

A

logically, phisically

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

____ data can have only a true or false (yes or no) values.

A

Logical

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

A ____ key can be described as a superkey without nnecessary attributes, that is, a minimal superkey.

A

candidate

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

Any attribute that is part of a key is known as a ____.

A

key attribute

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

Referential ____ means that if the foreign key contains a value, that value refers to an existing valid
tuple (row) in another relation.

A

Integrity

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

Controlled ____ makes a relational database work

A

redundancy

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

A ____ is any key that uniquely identifies each row

A

superkey

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

A(n) ____ is perceived as a two-dimensional structure composed of rows and columns.

A

table

24
Q

The relational model’s creator, E. F. Codd, used the term relation as a synonym for ____.

A

table

25
Q

A ____ key is defined as a key that is used strictly for data retrieval purposes.

A

secondary

26
Q

In the relational model, ____ are important because they are used to ensure that each row in a table is
uniquely identifiable

A

keys

27
Q

All primary key entries are unique, and no part of a primary key may be ____.

A

null

28
Q

A CUSTOMER table’s primary key is CUS_CODE. The CUSTOMER primary key column has no
null entries, and all entries are unique. This is an example of ____ integrity.

A

entity

29
Q

No data entry at all is known as a(n) ____.

A

null

30
Q

In the following table description, ____ is the primary key.
PRODUCT (PROD_CODE, PROD_DESCRIPT, PROD_PRICE, PROD_ON_HAND,
VEND_CODE)

A

PROD_CODE

31
Q

If one department chair—a professor—can chair only one department and one department can have
only one department chair, then the entities PROFESSOR and DEPARTMENT exhibit a(n)
____________________ relationship.

A

1:1

32
Q

The ____________________ catalog can be described as a detailed system data dictionary that
describes all objects within the database, including data about table names, the table’s creator and
creation date, the number of columns in each table, the data type corresponding to each column,
index filenames, index creators, authorized users, and access privileges.

A

system

33
Q

A(n) ____________________provides a detailed description of all tables found within the
user/designer-created database.

A

data dictionary

34
Q

In a relational table, each column has a specific range of values known as the
____________________ domain.

A

attribute

35
Q

The following example exhibits ____________________ integrity:
The CUSTOMER table’s primary key is CUS_CODE. The CUSTOMER primary key column has no
null entries, and all entries are unique. Similarly, the AGENT table’s primary key is AGENT_CODE,
and this primary key column also is free of null entries.

A

entity

36
Q

The purpose of the MAX function in SQL is to select a specific number of rows from a table. [T/F]

A

False

37
Q

The purpose of the MIN function in SQL is to return the maximum in a column of data. [T/F]

A

False

38
Q

The BETWEEN keyword is used in conjunction with the Order By clause to limit the number of rows returned in a query. [T/F]

A

False

39
Q

The purpose of the IN function in SQL is to select data that matches a set of values. [T/F]

A

True

40
Q

You cannot use aggregate functions in the WHERE clause of a SQL query because aggregate functions can only be used in the SELECT clause. [T/F]

A

True

41
Q

Functions that perform calculations on multiple rows of data and return a single result are called aggregate functions. [T/F]

A

True

42
Q

A nested query is a query that is contained within another query. [T/F]

A

True

43
Q

SELECT column1 FROM table1 WHERE column2 IN (SELECT column2 FROM table2) is a valid syntax. [T/F]

A

True

44
Q

The more important field in sorting two columns is called major sort key.[T/F]

A

True

45
Q

SELECT * FROM table ORDER BY column1 LIMIT 5, 10;
is a valid syntax for using the LIMIT clause in SQL [T/F]

A

True

46
Q

The WHERE keyword is used to create a nested query in SQL. [T/F]

A

True

47
Q

The purpose of DISTINCT function is to to return all unique values from a column. [T/F]

A

True

48
Q

The purpose of the COUNT function is too count the number of rows in a table or the number of non-null values in a column. [T/F]

A

True

49
Q

Basic Join is a type of join can be used in a nested query in SQL. [T/F]

A

True

50
Q

The GROUP BY statement comes after any WHERE statements, but before ORDER BY or LIMIT. [T/F]

A

True

51
Q

This function will display the current year:
EXTRACT(YEAR FROM curdate()); [T/F]

A

True

52
Q

The query statement below returns the average number of downloads for an app in our database.

SELECT AVE(DOWNLOADS)

FROM APPS; [T/F]

A

True

53
Q

The SUM aggregate function will you use when you include the asterisk(*) to represent all columns. [T/F]

A

False

54
Q

%M date formats will display the month name? [T/F]

A

True

55
Q

Comma (,) operators can be used in conjunction with the Order By clause to sort by multiple columns. [T/F]

A

True