Class Participation Questions Flashcards
(19 cards)
To display data retrieved using an SQL SELECT in ascending order, use the option:
ORDER BY
The SQL option HAVING can only be used with the option:
GROUP BY
Which of the following is NOT one of the standard parts of an SQL trigger?
condition
In SQL, when creating a view, columns of the original table can be:
Renamed and reordered
The SQL command to create a table is ____
CREATE TABLE
To have Oracle diplay the structure of a table named Employee, write:
DESCRIBE Employee;
In the relational model, a view can be used
in the INTO line in an SQL INSERT command,
as the basis of a derived view,
in the FROM line of an SQL query
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
An impedance mismatch
The SQL command to advance the cursor and obtain the next row or results is
FETCH
The SQL ALTER TABLE command can be used to do all of the following except
drop the table….It can add new columns, drop columns, and add constraints
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
Update Employee SET salary = salary * 1.10 WHERE dept = ‘sales’;
To erase all records in the Employee table, while keeping the structure of the table, we could write the SQL
command
DELETE FROM Employee;
All of the following are SQL DDL commands except
ADD TABLE
The specification in the SQL CREATE TABLE command that enforces referential integrity is the
FOREIGN KEY
Languages such as JScript that can be used to embed code in HTML are called
Scripting languages
ODBC works on the ____ operating system.
Windows, Linux, mainframe, and UNIX
XML Schema is used to define the structure and contents of documents T/F
True
The basic SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____
SUM
The most common type of subquery uses an inner SELECT subquery on the right side of a ____ comparison expression
WHERE