Class Participation Questions Flashcards

(19 cards)

1
Q

To display data retrieved using an SQL SELECT in ascending order, use the option:

A

ORDER BY

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

The SQL option HAVING can only be used with the option:

A

GROUP BY

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

Which of the following is NOT one of the standard parts of an SQL trigger?

A

condition

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

In SQL, when creating a view, columns of the original table can be:

A

Renamed and reordered

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

The SQL command to create a table is ____

A

CREATE TABLE

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

To have Oracle diplay the structure of a table named Employee, write:

A

DESCRIBE Employee;

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

In the relational model, a view can be used

A

in the INTO line in an SQL INSERT command,
as the basis of a derived view,
in the FROM line of an SQL query

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

The problem caused by the difference between the set-oriented SQL SELECT statement and the host language record-at-time capabilities is referred to as

A

An impedance mismatch

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

The SQL command to advance the cursor and obtain the next row or results is

A

FETCH

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

The SQL ALTER TABLE command can be used to do all of the following except

A

drop the table….It can add new columns, drop columns, and add constraints

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

Given an Employee table with columns for salary and dept, to raise the salaries of all employees in the sales
department by 10%, we could write

A

Update Employee SET salary = salary * 1.10 WHERE dept = ‘sales’;

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

To erase all records in the Employee table, while keeping the structure of the table, we could write the SQL
command

A

DELETE FROM Employee;

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

All of the following are SQL DDL commands except

A

ADD TABLE

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

The specification in the SQL CREATE TABLE command that enforces referential integrity is the

A

FOREIGN KEY

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

Languages such as JScript that can be used to embed code in HTML are called

A

Scripting languages

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

ODBC works on the ____ operating system.

A

Windows, Linux, mainframe, and UNIX

17
Q

XML Schema is used to define the structure and contents of documents T/F

18
Q

The basic SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____

19
Q

The most common type of subquery uses an inner SELECT subquery on the right side of a ____ comparison expression