Exam 7: SQL for Database Construction and Application Processing

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

SQL triggers are used for providing default values,validity checking,updating views,and performing referential integrity actions.

(True/False)
5.0/5
(65)

Given the SQL statement CREATE TABLE SALESREP ( SalesRepNo int NOT NULL, RepName char(35) NOT NULL, HireDate date NOT NULL, CONSTRAINT SalesRepPK PRIMARY KEY (SalesRepNo), CONSTRAINT SalesRepAK1 UNIQUE (RepName) ); We know that ________.

(Multiple Choice)
5.0/5
(79)

A stored program that is attached to a table or view is called a stored procedure.

(True/False)
4.8/5
(84)

One advantage of using the CONSTRAINT phrase to define a primary key is that the database designer controls the ________.

(Multiple Choice)
4.9/5
(74)

When the correct SQL command is used to delete a table's structure,what happens to the data in the table?

(Multiple Choice)
4.7/5
(82)

According to the SQL-92 standard,statements used to construct views cannot contain the WHERE clause.

(True/False)
4.9/5
(83)

If a trigger is being written to enforce referential integrity actions,you cannot use an INSTEAD OF trigger.

(True/False)
4.9/5
(68)

SQL triggers are created using ________.

(Multiple Choice)
4.8/5
(85)

Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales account by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales account by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER  CUSTOMER Based on the tables below,which of the following SQL statements would increase the balance of the Gonzales account by $100 to a total of $450? GENERAL SALES DATABASE: SALESREP   CUSTOMER

(Multiple Choice)
4.8/5
(86)

One advantage of using the CONSTRAINT command to define a primary key is that the database designer controls the name of the constraint.

(True/False)
4.9/5
(93)

What are SQL triggers and how are they used?

(Essay)
4.9/5
(78)

To set a column value to an initial value that is selected according to some business logic,you would use ________.

(Multiple Choice)
4.8/5
(79)

SQL triggers use the ANSI SQL keywords BEFORE,INSTEAD OF,and AFTER.

(True/False)
4.8/5
(66)

The values in an SQL view are not always changeable through the view itself.

(True/False)
4.7/5
(64)

SQL views can be used to provide a level of insulation between data processed by applications and the data actually stored in the database tables.

(True/False)
4.8/5
(71)

A set of SQL statements stored in an application written in a standard programming language is called ________.

(Multiple Choice)
4.8/5
(88)

Because SQL statements are table-oriented,whereas programs are variable-oriented,the results of SQL statements used in programs are accessed using an SQL cursor.

(True/False)
4.8/5
(85)

The SQL CREATE TABLE statement is used to name a new table and describe the table's columns.

(True/False)
4.8/5
(73)

A set of SQL statements stored in an application written in a standard programming language is called embedded SQL.

(True/False)
4.9/5
(89)

Which keyword is used to remove one or more rows from a table?

(Multiple Choice)
5.0/5
(91)
Showing 61 - 80 of 104
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)