Exam 2: Introduction to Structured Query Language

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

SQL is only a data manipulation language (DML).

(True/False)
4.8/5
(38)

In an SQL query,which SQL keyword is used to specify the names of tables to be joined?

(Multiple Choice)
4.8/5
(25)

The SQL keyword LIKE is used in SQL expressions to select partial string values.

(True/False)
4.7/5
(34)

In an SQL query,which SQL keyword must be used to remove duplicate rows from the result table?

(Multiple Choice)
4.8/5
(41)

The American National Standards Institute (ANSI)maintains the standards for SQL.

(True/False)
4.9/5
(39)

An ad-hoc query is ________.

(Multiple Choice)
4.8/5
(35)

The SQL built-in function MIN obtains the smallest value in a numeric column.

(True/False)
4.8/5
(32)

In an SQL query,which SQL keyword is used to determine if a column value is equal to any one of a set of values?

(Multiple Choice)
4.8/5
(35)

The following database will be used in this question: GENERAL SALES DATABASE: SALESREP The following database will be used in this question: GENERAL SALES DATABASE: SALESREP    CUSTOMER    Explain the use of the GROUP BY keyword.Include an example based on the CUSTOMER table from the General Sales database. CUSTOMER The following database will be used in this question: GENERAL SALES DATABASE: SALESREP    CUSTOMER    Explain the use of the GROUP BY keyword.Include an example based on the CUSTOMER table from the General Sales database. Explain the use of the GROUP BY keyword.Include an example based on the CUSTOMER table from the General Sales database.

(Essay)
4.9/5
(44)

The SQL keyword GROUP BY instructs the DBMS to group together those rows that have the same value in a column.

(True/False)
4.7/5
(34)

SQL commands can be embedded in application programs.

(True/False)
4.8/5
(32)

Two or more tables are joined by giving the table names in the WHERE clause and specifying the equality of the respective column names as a condition in the GROUP BY clause.

(True/False)
4.8/5
(32)

The SQL keyword WHERE is used to specify the table(s)that contain(s)the data to be retrieved.

(True/False)
4.9/5
(35)

To exclude one or more values using a condition,the SQL OUT keyword must be used.

(True/False)
4.7/5
(27)

Briefly describe subqueries and joins.Explain when each is not an acceptable alternative for the other.

(Essay)
5.0/5
(29)

Based on the tables below,which of the following commands in ANSI SQL would return only the name of the sales representative and the name of the customer for each customer that has a balance greater than 400? GENERAL SALES DATABASE: SALESREP Based on the tables below,which of the following commands in ANSI SQL would return only the name of the sales representative and the name of the customer for each customer that has a balance greater than 400? GENERAL SALES DATABASE: SALESREP   CUSTOMER  CUSTOMER Based on the tables below,which of the following commands in ANSI SQL would return only the name of the sales representative and the name of the customer for each customer that has a balance greater than 400? GENERAL SALES DATABASE: SALESREP   CUSTOMER

(Multiple Choice)
4.8/5
(37)

A nested SELECT statement (one that appears within the WHERE clause of another SQL statement)is called a subquery and must be enclosed in parentheses.

(True/False)
4.8/5
(35)

The columns to be obtained by an SQL command are listed after the FROM keyword.

(True/False)
4.9/5
(39)

In an SQL query of two tables,which SQL keyword indicates that we want data from all the rows of one table to be included in the result,even if the row does not correspond to any data in the other table?

(Multiple Choice)
4.7/5
(33)

A database extracted from the operational database for BI purposes typically ________.

(Multiple Choice)
4.8/5
(29)
Showing 61 - 80 of 114
close modal

Filters

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