Chapter 5: Creating And Managing Tables Using Proc SQL

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Moxleyv
M
Moxleyv
Community Contributor
Quizzes Created: 38 | Total Attempts: 21,992
| Attempts: 104 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Which of the following PROC SQL steps creates a table that contains rows for the level-1 flight attendants only?

Explanation

The CREATE TABLE statement that includes the AS keyword and query clauses creates a table and loads the results of the query into the new table. The WHERE clause selects only the rows for the level-1 flight attendants.

Submit
Please wait...
About This Quiz
Chapter 5: Creating And Managing Tables Using Proc SQL - Quiz

Explore the essentials of managing tables in PROC SQL with this quiz from Chapter 5. It covers table creation, row and data manipulation, and understanding integrity constraints. This quiz is ideal for learners aiming to enhance their SQL table management skills.

Personalize your quiz and earn a certificate with your name on it!
2. Which of the following statements is used to add new rows to a table?

Explanation

The INSERT statement is used to insert new rows into a new or existing table. There is no LOAD statement in PROC SQL, VALUES is a clause, and the CREATE TABLE statement is used to create a table.

Submit
3. Which of the following creates an empty table that contains the 2 columns FullName and Age?

Explanation

The CREATE TABLE statement can include column specifications to create an empty table. The entire group of column specifications must be enclosed in a single set of parentheses. You must list each column's name, data type, and (for character columns) length. The length is specified as an integer in parentheses. Multiple column specifications must be separated by commas.

Submit
4. Which of the following statements is true regarding the UNDO_POLICY=REQUIRED option?

Explanation

UNDO POLICY=REQUIRED is the default setting for PROC SQL. This setting undoes all inserts or updates if 1 or more rows violate the integrity constraint criteria, and restores the table to its original state before the inserts or updates.

Submit
5. Which of the following is not a type of integrity constraint?

Explanation

The NOT NULL integrity constraint specifies that data is required and cannot have a null (missing) value.

Submit
6. Which of the following displays the structure of a table in the SAS log?

Explanation

The DESCRIBE TABLE statement lists the column attributes for a specified table.

Submit
7. Which of the following PROC SQL steps creates a new table by copying only the column structure (but not the rows) of an existing table?

Explanation

The CREATE TABLE statement that includes a LIKE clause copies the column names and attributes from an existing table into a new table. No rows of data are inserted.

Submit
8. Which of the following PROC SQL steps gives bonuses (in points) to frequent-flyer program members as follows:
  • a 50% bonus for members who traveled less than 10,000 miles
  • a 100% bonus for members who traveled 10,000 miles or more?

Explanation

The UPDATE statement that includes a SET clause is used to modify rows in a table. WHEN-THEN clauses in the CASE expression enable you to update a column value based on specified criteria.

Submit
9. Which of the following statements regarding the ALTER TABLE statement is false?

Explanation

The ALTER TABLE statement is used to modify attributes of existing columns (include the MODIFY clause), add new column definitions (include the ADD clause), or delete existing columns (include the DROP clause).

Submit
10. Which of the following PROC SQL steps deletes rows for all frequent-flyer program members who traveled less than 10,000 miles?

Explanation

The DELETE statement deletes rows that are specified in the WHERE clause from the table. If no WHERE clause is specified, all rows are deleted. The DROP TABLE statement drops (deletes) an entire table; the syntax shown in option c is not valid.

Submit
View My Results

Quiz Review Timeline (Updated): Dec 5, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Dec 05, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 11, 2013
    Quiz Created by
    Moxleyv
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following PROC SQL steps creates a table that contains...
Which of the following statements is used to add new rows to a table?
Which of the following creates an empty table that contains the 2...
Which of the following statements is true regarding the...
Which of the following is not a type of integrity...
Which of the following displays the structure of a table in the SAS...
Which of the following PROC SQL steps creates a new table by copying...
Which of the following PROC SQL steps gives bonuses (in points) to...
Which of the following statements regarding the ALTER TABLE statement...
Which of the following PROC SQL steps deletes rows for all...
Alert!

Advertisement