Deck 2: Basic Sql Select Statements

Full screen (f)
exit full mode
Question
A user can indicate that all columns of a table should be displayed in the results of a SELECT statement by including an asterisk (*) in the SELECT clause.
Use Space or
up arrow
down arrow
to flip the card.
Question
By default, a column alias is displayed in lower case characters in the results.
Question
The columns displayed in the results of a SELECT statement will be in the same order as they are stored in the database table.
Question
A query is accomplished by issuing a SELECT statement.
Question
If you assign a column alias to a column, it must be enclosed in double quotation marks (" ").
Question
If a column name is entered in lower case in the SELECT statement, the data for the column will be displayed in lower case in the results.
Question
The asterisk symbol (*) can be used in a SELECT statement to indicate that all rows in the table should be displayed in the results.
Question
Column headings may be truncated in the results of a SELECT statement.
Question
The majority of operations performed on a typical database table utilize the SELECT statement.
Question
A script file containing SQL statements can be executed from SQL*Plus.
Question
Choosing specific columns to be displayed by a SELECT statement is known as selection.
Question
SQL*Plus can only be accessed via an internet interface.
Question
SQL*Plus is an Oracle tool used to enter and edit SQL statements.
Question
Choosing specific columns to be displayed by a SELECT statement is known as projection.
Question
If multiple column names are listed in the SELECT clause of a SELECT statement, the columns must be separated by a comma (,).
Question
A clause is a section within a SQL statement that begins with a keyword.
Question
Each section of a SQL command that begins with a keyword is known as a statement.
Question
The SELECT clause of the SELECT statement is used to identify which rows are to be retrieved from a specified table.
Question
When a user asks the database a question, the user is issuing a query.
Question
The DESCRIBE command is used to view data in a table.
Question
Choosing specific columns from a database through a SELECT statement is known as  projection \underline {\text { projection }} _________________________
Question
A double backslash (\\) is used to indicate concatenation in a SELECT statement.
Question
Each section of a statement that begins with a keyword is known as a(n)  buffer \underline { \text { buffer } } . _________________________
Question
The  SELECT \underline {\text { SELECT } } command can be used to display the structure of a database table. _________________________
Question
The  ALL \underline { \text { ALL } } option can be used in the SELECT clause to indicate that all columns should be retrieved. _________________________
Question
A column heading that is longer than the width of a column will not be truncated for a column that is defined to store  character \underline { \text { character } } data. _________________________
Question
A(n)  WHERE \underline { \text { WHERE } } statement allows a user to retrieve data from a database table. _________________________
Question
Parentheses can be used to override the order of operations in an arithmetic expression.
Question
The only required clauses for a SELECT statement are the  WHERE \underline {\text { WHERE }} and FROM clauses. _________________________
Question
A(n)  CRBMDS \underline { \text { CRBMDS } } is a software program that can be used to create a relational database and allows you to enter, manipulate, and retrieve data. _________________________
Question
In a(n)  SELECT \underline {\text { SELECT } } statement, keywords, table names, and column names are not case sensitive. _________________________
Question
The following arithmetic operations can be performed in the SELECT clause of a SELECT statement: addition (+), subtraction (-), multiplication (*), division (/), and exponential (^).
Question
Concatenation refers to combining the results of several SELECT statements into one result.
Question
The  SELECT \underline { \text { SELECT } } clause identifies the table containing the data to be queried. _________________________
Question
The optional keyword AS can be used to indicate that the subsequent string of characters is a column alias.
Question
Each clause of a SELECT statement  must \underline {\text { must } } be entered on a new line in SQL*Plus. _________________________
Question
The DIST or UNIQ keywords can be used to suppress duplicate data in the results of a SELECT statement.
Question
When listing more than one column name in the SELECT clause of a SELECT statement, the column names must be separated by  semicolons \underline {\text { semicolons }} . _________________________
Question
The  syntax \underline { \text { syntax } } for a SQL statement gives the basic structure required to execute the statement. _________________________
Question
A query can be executed in the SQL Plus \underline{\mathrm{SQL}^{*} \text { Plus }} tool. _________________________
Question
Combining the contents of two or more columns is known as  projection \underline {\text { projection } } . _________________________
Question
By default, data within a character or data column is  right \underline { \text { right } } -aligned when it is displayed. _________________________
Question
The use of a column alias in the SELECT clause can be designated by the keyword  ALIAS \underline { \text { ALIAS } } . _________________________
Question
Which of the following are case sensitive in Oracle11g?

A) keywords
B) column names
C) table names
D) none of the above
Question
The entire column heading for a column will be displayed, regardless of the assigned width of the column, if the column is defined as a(n) ____ column.

A) character
B) alphanumeric
C) date
D) numeric
Question
When solving arithmetic expressions, Oracle11g always resolves addition and subtraction operations  first \underline {\text { first } } from left to right in the expression. _________________________
Question
The  DISTINCT \underline {\text { DISTINCT } } keyword can be used to indicate that duplicate data should be suppressed in the results of a query. _________________________
Question
Which of the following commands can be used to view the structure of a table?

A) CONCATENATION
B) DESCRIBE
C) SELECT
D) none of the above
Question
To indicate which database table contains the data to be selected by a query, the table name should be listed in the ____ clause.

A) SELECT
B) FROM
C) WHERE
D) HAVING
Question
The ____ for a SQL statement gives the basic structure, or rules, required to execute the statement.

A) clauses
B) keywords
C) sequence
D) syntax
Question
Which of the following symbols represents all the columns contained in a table?

A) /
B) ;
C) *
D) ^
Question
 Parentheses \underline{\text { Parentheses }} can be used to override the order of operations in an arithmetic expression. _________________________
Question
Insignificant zeros  are \underline { \text { are } } displayed for numeric columns by default to show two decimal places. _________________________
Question
By default, data within a numeric column is  right \underline {\text { right } } -aligned when it is displayed. _________________________
Question
A(n) ____ has a predefined meaning in Oracle11g.

A) keyword
B) statement
C) syntax
D) clause
Question
What is used to indicate the end of an SQL statement?

A) /
B) :
C) ;
D) *
Question
Which of the following is a mandatory clause in a SELECT statement?

A) FROM
B) WHERE
C) HAVING
D) both a and b are mandatory
Question
Which of the following commands is used to issue a query?

A) QUER
B) FROM
C) SELECT
D) QUESTION
Question
A string literal must be enclosed in  double \underline { \text { double } } quotation marks. _________________________
Question
If a column alias contains a blank space, it must be enclosed in  double \underline {\text { double } } quotation marks. _________________________
Question
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following SELECT statements will display the publisher's name first in the results?</strong> A) SELECT * FROM publisher; B) SELECT pubid, contact FROM publisher; C) SELECT name, publisherID FROM publishers; D) none of the above <div style=padding-top: 35px>
Based upon the contents of the PUBLISHER table, which of the following SELECT statements will display the publisher's name first in the results?

A) SELECT * FROM publisher;
B) SELECT pubid, contact FROM publisher;
C) SELECT name, publisherID FROM publishers;
D) none of the above
Question
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?</strong> A) SELECT * FROM pubid; B) SELECT * FROM name; C) SELECT * FROM contact; D) SELECT * FROM publisher; <div style=padding-top: 35px>
Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?

A) SELECT * FROM pubid;
B) SELECT * FROM name;
C) SELECT * FROM contact;
D) SELECT * FROM publisher;
Question
What is the correct solution for the arithmetic expression (2+8)/2*9/3 using the order of operations employed by Oracle10g when solving equations?

A) 1.336
B) 4.8
C) 15
D) 14
Question
What is the correct answer for the arithmetic expression 9+2*(3-4) using the order of operations employed by Oracle10g when solving equations?

A) -11
B) -18
C) 9
D) 7
Question
Which of the following types of columns will automatically right-align the data when it is displayed?

A) character
B) date
C) alphanumeric
D) numeric
Question
Combining the contents of two or more columns is known as ____.

A) projection
B) concatenation
C) selection
D) suppression
Question
If a column alias contains a blank space, it must be enclosed in ____.

A) single quotation marks (' ')
B) double quotation marks (" ")
C) asterisks (* *)
D) percent signs (% %)
Question
If the results of a SELECT statement include more than one column of data, the column names must be separated in the SELECT clause by which of the following symbols?

A) ,
B) " "
C) ' '
D) *
Question
A column alias must be contained within double quotation marks (" ") if it contains which of the following?

A) blank spaces
B) special symbols
C) characters that should be displayed in lower or mixed case
D) all of the above
Question
Which of the following keywords can be used to indicate that a column alias should be included in the results?

A) AS
B) FROM
C) SELECT
D) ALIAS
Question
What is the correct solution for the arithmetic expression 2+8/2*9/3 using the order of operations employed by Oracle10g when solving equations?

A) 0.1
B) 4.8
C) 15
D) 14
Question
A string literal must be enclosed in ____.

A) single quotation marks (' ')
B) double quotation marks (" ")
C) asterisks (* *)
D) percent signs (% %)
Question
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?</strong> A) SELECT contact Contact's Name FROM publisher; B) SELECT contact, name FROM publisher; C) SELECT publisherID FROM publisher; D) SELECT name FROM publishers; <div style=padding-top: 35px>
Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?

A) SELECT contact Contact's Name
FROM publisher;
B) SELECT contact, name
FROM publisher;
C) SELECT publisherID
FROM publisher;
D) SELECT name
FROM publishers;
Question
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following SQL statements will display only two columns in the results?</strong> A) SELECT * FROM publisher; B) SELECT contact name FROM publisher; C) SELECT contact person, name FROM publisher; D) none of the above <div style=padding-top: 35px>
Based upon the contents of the PUBLISHER table, which of the following SQL statements will display only two columns in the results?

A) SELECT * FROM publisher;
B) SELECT contact name FROM publisher;
C) SELECT contact person, name FROM publisher;
D) none of the above
Question
What is the correct answer for the arithmetic expression 9+2*3-2 using the order of operations employed by Oracle10g when solving equations?

A) 13
B) 31
C) 10
D) 12
Question
Which of the following keywords can be included in a SELECT statement to suppress duplicate data?

A) UNIQ
B) DISTINCT
C) SUPPRESS
D) all of the above
Question
Which of the following statements is correct?

A) The columns will be listed in the results in the same order they are stored in the database table.
B) Character columns are listed first in the output, followed by numeric columns.
C) The columns will be listed in the results in the same order they are listed in the SELECT clause of the SELECT statement.
D) Numeric columns are listed first in the output, followed by character columns.
Question
Which of the following symbols can be used to combine data from different columns into one column of output?

A) ||
B) ^
C) %
D) *
Question
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is not a valid SQL statement?</strong> A) SELECT * FROM publisher; B) SELECT name, contact FROM publisher/ C) SELECT name, phone FROM publisher / D) SELECT * FROM publisher; <div style=padding-top: 35px>
Based upon the contents of the PUBLISHER table, which of the following is not a valid SQL statement?

A) SELECT * FROM publisher;
B) SELECT name, contact FROM publisher/
C) SELECT name, phone
FROM publisher
/
D) SELECT *
FROM publisher;
Question
Which of the following types of columns will automatically left-align the column heading when it is displayed?

A) character
B) numeric
C) date
D) both a and c
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/122
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Basic Sql Select Statements
1
A user can indicate that all columns of a table should be displayed in the results of a SELECT statement by including an asterisk (*) in the SELECT clause.
True
2
By default, a column alias is displayed in lower case characters in the results.
False
3
The columns displayed in the results of a SELECT statement will be in the same order as they are stored in the database table.
False
4
A query is accomplished by issuing a SELECT statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
5
If you assign a column alias to a column, it must be enclosed in double quotation marks (" ").
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
6
If a column name is entered in lower case in the SELECT statement, the data for the column will be displayed in lower case in the results.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
7
The asterisk symbol (*) can be used in a SELECT statement to indicate that all rows in the table should be displayed in the results.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
8
Column headings may be truncated in the results of a SELECT statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
9
The majority of operations performed on a typical database table utilize the SELECT statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
10
A script file containing SQL statements can be executed from SQL*Plus.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
11
Choosing specific columns to be displayed by a SELECT statement is known as selection.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
12
SQL*Plus can only be accessed via an internet interface.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
13
SQL*Plus is an Oracle tool used to enter and edit SQL statements.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
14
Choosing specific columns to be displayed by a SELECT statement is known as projection.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
15
If multiple column names are listed in the SELECT clause of a SELECT statement, the columns must be separated by a comma (,).
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
16
A clause is a section within a SQL statement that begins with a keyword.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
17
Each section of a SQL command that begins with a keyword is known as a statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
18
The SELECT clause of the SELECT statement is used to identify which rows are to be retrieved from a specified table.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
19
When a user asks the database a question, the user is issuing a query.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
20
The DESCRIBE command is used to view data in a table.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
21
Choosing specific columns from a database through a SELECT statement is known as  projection \underline {\text { projection }} _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
22
A double backslash (\\) is used to indicate concatenation in a SELECT statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
23
Each section of a statement that begins with a keyword is known as a(n)  buffer \underline { \text { buffer } } . _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
24
The  SELECT \underline {\text { SELECT } } command can be used to display the structure of a database table. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
25
The  ALL \underline { \text { ALL } } option can be used in the SELECT clause to indicate that all columns should be retrieved. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
26
A column heading that is longer than the width of a column will not be truncated for a column that is defined to store  character \underline { \text { character } } data. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
27
A(n)  WHERE \underline { \text { WHERE } } statement allows a user to retrieve data from a database table. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
28
Parentheses can be used to override the order of operations in an arithmetic expression.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
29
The only required clauses for a SELECT statement are the  WHERE \underline {\text { WHERE }} and FROM clauses. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
30
A(n)  CRBMDS \underline { \text { CRBMDS } } is a software program that can be used to create a relational database and allows you to enter, manipulate, and retrieve data. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
31
In a(n)  SELECT \underline {\text { SELECT } } statement, keywords, table names, and column names are not case sensitive. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
32
The following arithmetic operations can be performed in the SELECT clause of a SELECT statement: addition (+), subtraction (-), multiplication (*), division (/), and exponential (^).
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
33
Concatenation refers to combining the results of several SELECT statements into one result.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
34
The  SELECT \underline { \text { SELECT } } clause identifies the table containing the data to be queried. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
35
The optional keyword AS can be used to indicate that the subsequent string of characters is a column alias.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
36
Each clause of a SELECT statement  must \underline {\text { must } } be entered on a new line in SQL*Plus. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
37
The DIST or UNIQ keywords can be used to suppress duplicate data in the results of a SELECT statement.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
38
When listing more than one column name in the SELECT clause of a SELECT statement, the column names must be separated by  semicolons \underline {\text { semicolons }} . _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
39
The  syntax \underline { \text { syntax } } for a SQL statement gives the basic structure required to execute the statement. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
40
A query can be executed in the SQL Plus \underline{\mathrm{SQL}^{*} \text { Plus }} tool. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
41
Combining the contents of two or more columns is known as  projection \underline {\text { projection } } . _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
42
By default, data within a character or data column is  right \underline { \text { right } } -aligned when it is displayed. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
43
The use of a column alias in the SELECT clause can be designated by the keyword  ALIAS \underline { \text { ALIAS } } . _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following are case sensitive in Oracle11g?

A) keywords
B) column names
C) table names
D) none of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
45
The entire column heading for a column will be displayed, regardless of the assigned width of the column, if the column is defined as a(n) ____ column.

A) character
B) alphanumeric
C) date
D) numeric
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
46
When solving arithmetic expressions, Oracle11g always resolves addition and subtraction operations  first \underline {\text { first } } from left to right in the expression. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
47
The  DISTINCT \underline {\text { DISTINCT } } keyword can be used to indicate that duplicate data should be suppressed in the results of a query. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following commands can be used to view the structure of a table?

A) CONCATENATION
B) DESCRIBE
C) SELECT
D) none of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
49
To indicate which database table contains the data to be selected by a query, the table name should be listed in the ____ clause.

A) SELECT
B) FROM
C) WHERE
D) HAVING
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
50
The ____ for a SQL statement gives the basic structure, or rules, required to execute the statement.

A) clauses
B) keywords
C) sequence
D) syntax
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
51
Which of the following symbols represents all the columns contained in a table?

A) /
B) ;
C) *
D) ^
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
52
 Parentheses \underline{\text { Parentheses }} can be used to override the order of operations in an arithmetic expression. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
53
Insignificant zeros  are \underline { \text { are } } displayed for numeric columns by default to show two decimal places. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
54
By default, data within a numeric column is  right \underline {\text { right } } -aligned when it is displayed. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
55
A(n) ____ has a predefined meaning in Oracle11g.

A) keyword
B) statement
C) syntax
D) clause
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
56
What is used to indicate the end of an SQL statement?

A) /
B) :
C) ;
D) *
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following is a mandatory clause in a SELECT statement?

A) FROM
B) WHERE
C) HAVING
D) both a and b are mandatory
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following commands is used to issue a query?

A) QUER
B) FROM
C) SELECT
D) QUESTION
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
59
A string literal must be enclosed in  double \underline { \text { double } } quotation marks. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
60
If a column alias contains a blank space, it must be enclosed in  double \underline {\text { double } } quotation marks. _________________________
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
61
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following SELECT statements will display the publisher's name first in the results?</strong> A) SELECT * FROM publisher; B) SELECT pubid, contact FROM publisher; C) SELECT name, publisherID FROM publishers; D) none of the above
Based upon the contents of the PUBLISHER table, which of the following SELECT statements will display the publisher's name first in the results?

A) SELECT * FROM publisher;
B) SELECT pubid, contact FROM publisher;
C) SELECT name, publisherID FROM publishers;
D) none of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
62
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?</strong> A) SELECT * FROM pubid; B) SELECT * FROM name; C) SELECT * FROM contact; D) SELECT * FROM publisher;
Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?

A) SELECT * FROM pubid;
B) SELECT * FROM name;
C) SELECT * FROM contact;
D) SELECT * FROM publisher;
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
63
What is the correct solution for the arithmetic expression (2+8)/2*9/3 using the order of operations employed by Oracle10g when solving equations?

A) 1.336
B) 4.8
C) 15
D) 14
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
64
What is the correct answer for the arithmetic expression 9+2*(3-4) using the order of operations employed by Oracle10g when solving equations?

A) -11
B) -18
C) 9
D) 7
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
65
Which of the following types of columns will automatically right-align the data when it is displayed?

A) character
B) date
C) alphanumeric
D) numeric
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
66
Combining the contents of two or more columns is known as ____.

A) projection
B) concatenation
C) selection
D) suppression
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
67
If a column alias contains a blank space, it must be enclosed in ____.

A) single quotation marks (' ')
B) double quotation marks (" ")
C) asterisks (* *)
D) percent signs (% %)
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
68
If the results of a SELECT statement include more than one column of data, the column names must be separated in the SELECT clause by which of the following symbols?

A) ,
B) " "
C) ' '
D) *
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
69
A column alias must be contained within double quotation marks (" ") if it contains which of the following?

A) blank spaces
B) special symbols
C) characters that should be displayed in lower or mixed case
D) all of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following keywords can be used to indicate that a column alias should be included in the results?

A) AS
B) FROM
C) SELECT
D) ALIAS
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
71
What is the correct solution for the arithmetic expression 2+8/2*9/3 using the order of operations employed by Oracle10g when solving equations?

A) 0.1
B) 4.8
C) 15
D) 14
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
72
A string literal must be enclosed in ____.

A) single quotation marks (' ')
B) double quotation marks (" ")
C) asterisks (* *)
D) percent signs (% %)
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
73
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?</strong> A) SELECT contact Contact's Name FROM publisher; B) SELECT contact, name FROM publisher; C) SELECT publisherID FROM publisher; D) SELECT name FROM publishers;
Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement?

A) SELECT contact Contact's Name
FROM publisher;
B) SELECT contact, name
FROM publisher;
C) SELECT publisherID
FROM publisher;
D) SELECT name
FROM publishers;
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
74
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following SQL statements will display only two columns in the results?</strong> A) SELECT * FROM publisher; B) SELECT contact name FROM publisher; C) SELECT contact person, name FROM publisher; D) none of the above
Based upon the contents of the PUBLISHER table, which of the following SQL statements will display only two columns in the results?

A) SELECT * FROM publisher;
B) SELECT contact name FROM publisher;
C) SELECT contact person, name FROM publisher;
D) none of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
75
What is the correct answer for the arithmetic expression 9+2*3-2 using the order of operations employed by Oracle10g when solving equations?

A) 13
B) 31
C) 10
D) 12
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following keywords can be included in a SELECT statement to suppress duplicate data?

A) UNIQ
B) DISTINCT
C) SUPPRESS
D) all of the above
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
77
Which of the following statements is correct?

A) The columns will be listed in the results in the same order they are stored in the database table.
B) Character columns are listed first in the output, followed by numeric columns.
C) The columns will be listed in the results in the same order they are listed in the SELECT clause of the SELECT statement.
D) Numeric columns are listed first in the output, followed by character columns.
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following symbols can be used to combine data from different columns into one column of output?

A) ||
B) ^
C) %
D) *
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
79
Contents of the PUBLISHER table
<strong>Contents of the PUBLISHER table   Based upon the contents of the PUBLISHER table, which of the following is not a valid SQL statement?</strong> A) SELECT * FROM publisher; B) SELECT name, contact FROM publisher/ C) SELECT name, phone FROM publisher / D) SELECT * FROM publisher;
Based upon the contents of the PUBLISHER table, which of the following is not a valid SQL statement?

A) SELECT * FROM publisher;
B) SELECT name, contact FROM publisher/
C) SELECT name, phone
FROM publisher
/
D) SELECT *
FROM publisher;
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
80
Which of the following types of columns will automatically left-align the column heading when it is displayed?

A) character
B) numeric
C) date
D) both a and c
Unlock Deck
Unlock for access to all 122 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 122 flashcards in this deck.