Exam 2: Introduction to Structured Query Language

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

When one SQL query is embedded in another SQL query to simulate a join,the second SQL query is embedded in the ________ of the first query.

Free
(Multiple Choice)
4.9/5
(84)
Correct Answer:
Verified

C

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 of SQL keyword SELECT.Include an example based on the CUSTOMER table in the General Sales database. CUSTOMER The following database will be used in this question: GENERAL SALES DATABASE: SALESREP    CUSTOMER    Explain the use of the of SQL keyword SELECT.Include an example based on the CUSTOMER table in the General Sales database. Explain the use of the of SQL keyword SELECT.Include an example based on the CUSTOMER table in the General Sales database.

Free
(Essay)
5.0/5
(79)
Correct Answer:
Verified

The SQL keyword SELECT forms the basis for all SQL querying.Although SELECT technically specifies columns to be used in a query,it is always the first SQL keyword or command in an SQL phrase that includes at least the SQL keyword FROM and often the SQL keyword WHERE.The SQL keyword FROM is used to specify which tables are used in the query,while the SQL keyword WHERE is used to specify conditions or constraints imposed on the query.For example,
SELECT *
FROM CUSTOMER
WHERE CustNo = 8590;
is a query that returns all information in the table CUSTOMER about the customer whose customer number is 8590.

A SELECT statement used in a WHERE clause is called a subquery.

Free
(True/False)
4.9/5
(72)
Correct Answer:
Verified

True

The SQL keyword FROM is used to specify the table to be used.

(True/False)
4.8/5
(81)

Given a table with the structure: EMPLOYEE (EmpNo,Name,Salary,HireDate),which of the following would find all employees whose name begins with the letter "S" using Microsoft Access?

(Multiple Choice)
4.7/5
(73)

SQL was developed by IBM in the late 1970s.

(True/False)
4.8/5
(93)

In an SQL query,which SQL keyword is used to specify the column names to be used in a join?

(Multiple Choice)
5.0/5
(76)

When one SQL query is embedded in another SQL query,this is referred to as a ________.

(Multiple Choice)
5.0/5
(66)

In an SQL query,which SQL keyword is used with built-in functions to group together rows that have the same value in a specified column or columns?

(Multiple Choice)
4.9/5
(84)

In an SQL query,which SQL keyword is used to state the condition that specifies which rows are to be selected?

(Multiple Choice)
4.8/5
(92)

Joins that show only matching rows from the joined tables in their results are called inner joins.

(True/False)
4.8/5
(77)

The UNION of two relations A and B consists of all rows that are either in relation A or in relation B or both.

(True/False)
4.9/5
(89)

SQL,although very popular,has never become a national standard.

(True/False)
4.9/5
(86)

SQL statements end with a colon.

(True/False)
4.9/5
(72)

In an SQL query,which built-in function is used to obtain the smallest value of numeric columns?

(Multiple Choice)
4.9/5
(102)

Given a table with the structure: EMPLOYEE (EmpNo,Name,Salary,HireDate),which of the following is not a valid ANSI SQL command?

(Multiple Choice)
4.8/5
(72)

In an SQL query,which built-in function is used to total numeric columns?

(Multiple Choice)
5.0/5
(83)

Assuming the "Quantity" column of an ORDER table contains integer data,what does COUNT(Quantity)compute?

(Multiple Choice)
4.9/5
(88)

SQL can only query a single table.

(True/False)
4.8/5
(77)

The result of an SQL SELECT operation can contain duplicate rows.

(True/False)
4.7/5
(70)
Showing 1 - 20 of 114
close modal

Filters

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