Modern Database Management SQL - Ch 6

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/65

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

66 Terms

1
New cards

Which of the following is a purpose of the SQL standard?

All of the above

2
New cards

The benefits of a standardized relational language include:

all of the above.

3
New cards

The is the structure that contains descriptions of objects such as tables and views created by users.

schema

4
New cards

is a set of commands used to control a database, which includes security.

DCL

5
New cards

is a set of commands used to update and query a database.

DML

6
New cards

DDL is typically used during which phases of the development process?

Physical design

7
New cards

The command for creating a database is:

create schema.

8
New cards

The SQL command defines a logical table from one or more tables or views.

create view

9
New cards

Any create command may be reversed by using a command.

drop

10
New cards

The first in a series of steps to follow when creating a table is to:

identify each attribute and its characteristics.

11
New cards

The SQL command adds one or more new columns to a table.

alter table

12
New cards

Which of the following is a technique for optimizing the internal performance of the relational data model?

Clustering data

13
New cards

Indexes are created in most RDBMSs to:

provide rapid random and sequential access to base-table data.

14
New cards

In an SQL statement, which of the following parts states the conditions for row selection?

Where

15
New cards

Which of the following will produce the minimum of all standard prices?

Select min(standardprice) from ProductV;

16
New cards

Which of the following is the wildcard operator in SQL statements?

*

17
New cards

To eliminate duplicate rows in a query, the qualifier is used in the SQL Select command.

distinct

18
New cards

To get all the customers from Hawaii sorted together, which of the following would be used?

Order By

19
New cards

A single value returned from an SQL query that includes an aggregate function is called a(n):

scalar aggregate.

20
New cards

Multiple values returned from an SQL query that includes an aggregate function are called:

vector aggregates.

21
New cards

Which of the following can produce scalar and vector aggregates?

Group By

22
New cards

Which of the following finds all groups meeting stated conditions?

Having

23
New cards

Which of the following is true of the order in which SQL statements are evaluated?

The SELECT clause is processed before the ORDER BY clause.

24
New cards

A view is materialized when referenced.

dynamic

25
New cards

A view may not be updated directly if it contains:

all of the above.

26
New cards

SQL is both an American and international standard for database access.

Answer: TRUE

27
New cards

SQL has been implemented only in the mainframe and midrange environments.

Answer: FALSE

28
New cards

SQL originated from a project called System-S.

Answer: FALSE

29
New cards

One of the original purposes of the SQL standard was to provide a vehicle for portability of database definition and application modules between conforming DBMSs.

Answer: TRUE

30
New cards

A major benefit of SQL as a standard is reduced training costs.

Answer: TRUE

31
New cards

Implementation of a standard can never stifle creativity and innovation.

Answer: FALSE

32
New cards

Applications can be moved from one machine to another when each machine uses SQL.

Answer: TRUE

33
New cards

A catalog is the structure that contains object descriptions created by a user.

Answer: FALSE

34
New cards

Some DBMS can handle graphic data types as well as text and numbers.

Answer: TRUE

35
New cards

DCL is used to update the database with new records.

Answer: FALSE

36
New cards

A database table is defined using the data definition language (DDL).

Answer: TRUE

37
New cards

A database is maintained and queried using the data mapping language (DML).

Answer: FALSE

38
New cards

The CREATE SCHEMA DDL command is used to create a table.

Answer: FALSE

39
New cards

When creating tables, it's important to decide which columns will allow null values before the table is created.

Answer: TRUE

40
New cards

When creating a table, it is not important to consider foreign key—primary key mates.

Answer: FALSE

41
New cards

A referential integrity constraint specifies that the existence of an attribute in one table depends upon the existence of a foreign key in the same or another table.

Answer: FALSE

42
New cards

The DELETE TABLE DDL command is used to remove a table from the database.

Answer: FALSE

43
New cards

The ALTER TABLE command is used to change a table definition.

Answer: TRUE

44
New cards

The SQL command used to populate tables is the INSERT command.

Answer: TRUE

45
New cards

An insert command does not need to have the fields listed.

Answer: TRUE

46
New cards

The DROP command deletes rows from a table individually or in groups.

Answer: FALSE

47
New cards

In order to update data in SQL, one must inform the DBMS which relation, columns, and rows are involved.

Answer: TRUE

48
New cards

Indexes generally slow down access speed in most RDMS.

Answer: FALSE

49
New cards

The WHERE clause includes the conditions for row selection within a single table or view and the conditions between tables or views for joining.

Answer: TRUE

50
New cards

Expressions are mathematical manipulations of data in a table that may be included as part of the SELECT statement.

Answer: TRUE

51
New cards

Count(*) tallies only those rows that contain a value, while Count counts all rows.

Answer: FALSE

52
New cards

The asterisk (*) wildcard designator can be used to select all fields from a table as well as in WHERE clauses when an exact match is not possible.

Answer: TRUE

53
New cards

The comparison operators = and != are used to establish a range of values.

Answer: FALSE

54
New cards

If multiple Boolean operators are used in an SQL statement, NOT is evaluated first, then AND, then OR.

Answer: TRUE

55
New cards

Adding the DISTINCT keyword to a query eliminates duplicates.

Answer: TRUE

56
New cards

The ORDER BY clause sorts the final results rows in ascending or descending order.

Answer: TRUE

57
New cards

A single value returned from an SQL query that includes an aggregate function is called a vector aggregate.

Answer: FALSE

58
New cards

When a GROUP BY clause is included in an SQL statement, only those columns with a single value for each group can be included.

Answer: TRUE

59
New cards

The HAVING clause and the WHERE clause perform the same operation.

Answer: FALSE

60
New cards

The ORDER BY clause is the first statement processed in an SQL command.

Answer: FALSE

61
New cards

The WHERE clause is always processed before the GROUP BY clause when both occur in a SELECT statement.

Answer: TRUE

62
New cards

The FROM clause is the first statement processed in an SQL command.

Answer: TRUE

63
New cards

The content of dynamic views is generated when they are referenced.

Answer: TRUE

64
New cards

Materialized views are stored on disk and are never refreshed.

Answer: FALSE

65
New cards

The views are created by executing a CREATE VIEW SQL command.

Answer: TRUE

66
New cards

When the SELECT clause in the create view statement contains the keyword DISTINCT, the view can be used to update data.

Answer: FALSE