Exam 8: Advanced Sql

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

_____ words are words used by SQL to perform specific functions.

Free
(Short Answer)
4.8/5
(37)
Correct Answer:
Verified

Reserved

How can a table be deleted from the database? Provide an example.

Free
(Essay)
4.9/5
(22)
Correct Answer:
Verified

A table can be deleted from the database using the DROP TABLE command.For example, a user can delete the PART table with the following command:
DROP TABLE PART;
The user can drop a table only if it is not the "one" side of any relationship.If the user tries to drop a table otherwise, the RDBMS will generate an error message indicating that a foreign key integrity violation has occurred.

A(n) _____ view is a view that can be used to update attributes in the base table(s) that are used in the view.

Free
(Short Answer)
4.8/5
(39)
Correct Answer:
Verified

updatable

The SQL data type DATE stores date in the _____ date format.

(Short Answer)
4.8/5
(38)

Which statement describes a feature of Oracle sequences?

(Multiple Choice)
4.8/5
(37)

The _____ command permanently saves all changes-such as rows added, attributes modified, and rows deleted-made to any table in the database.

(Multiple Choice)
4.7/5
(43)

The most useful feature of PL/SQL blocks is that they let a designer create code that can be named, stored, and executed by the DBMS.

(True/False)
4.9/5
(32)

The _____ specification creates an individualindex ona respective attribute; use it to avoid having duplicated values in a column.

(Multiple Choice)
4.9/5
(33)

Which command would be used to delete the table row where the P_CODE is 'BRT-345'?

(Multiple Choice)
5.0/5
(37)

All changes in a table structure are made using the _____ TABLE command, followed by a keyword that produces the specific changes a user wants to make.

(Multiple Choice)
4.9/5
(34)

_____ is the term used to describe an environment in which the SQL statement is not known in advance and is generated at run time.

(Short Answer)
4.8/5
(39)

In Oracle, you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.

(True/False)
4.8/5
(41)

A view is a virtual table based on a SELECT query.

(True/False)
4.8/5
(32)

Summarize the hierarchy of steps involved in creating and running an executable program with embedded SQL statements.

(Essay)
5.0/5
(36)

Words used by a system that cannot be used for any other purpose are called _____ words. For example, in Oracle SQL, the word INITIAL cannot be used to name tables or columns.

(Multiple Choice)
4.9/5
(33)

In Oracle, _____ retrieves the current value of a sequence.

(Multiple Choice)
4.9/5
(36)

When a user issues the DELETE FROM tablename command without specifying a WHERE condition, _____.

(Multiple Choice)
4.9/5
(43)

What is a schema? How many schemas can be used in one database?

(Essay)
4.8/5
(29)

MySQL allows multiple triggering conditions per trigger.

(True/False)
4.7/5
(43)

A(n) _____-length character data type, like VARCHAR, is typically specified with a maximum length.

(Short Answer)
4.8/5
(36)
Showing 1 - 20 of 75
close modal

Filters

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