Deck 2: Basic SQL Select Statements

Full screen (f)
exit full mode
Question
​The DESCRIBE command is used to view data in a table.
Use Space or
up arrow
down arrow
to flip the card.
Question
SQL*Plus is an Oracle tool used to enter and edit SQL statements.​
Question
​If multiple column names are listed in the SELECT clause of a SELECT statement,the columns must be separated by a comma (,).
Question
​By default,a column alias is displayed in lower case characters in the results.
Question
Each section of a SQL command that begins with a keyword is known as a statement.​
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
​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
​Choosing specific columns to be displayed by a SELECT statement is known as selection.
Question
​The SELECT clause of the SELECT statement is used to identify which rows are to be retrieved from a specified table.
Question
Column headings may be truncated in the results of a 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 projection.​
Question
​If you assign a column alias to a column,it must be enclosed in double quotation marks (" ").
Question
SQL*Plus can only be accessed via an internet interface.
Question
The majority of operations performed on a typical database table utilize the SELECT statement.
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
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.
Question
A clause is a section within a SQL statement that begins with a keyword.​
Question
When a user asks the database a question,the user is issuing a query.​
Question
A query is accomplished by issuing a SELECT statement.​
Question
A(n)CRBMDS is a software program that can be used to create a relational database and allows you to enter,manipulate,and retrieve data._________________________
Question
A query can be executed in the SQL*Plus tool._________________________​
Question
​A double backslash (\\)is used to indicate concatenation in a SELECT statement.
Question
The ALL option can be used in the SELECT clause to indicate that all columns should be retrieved._________________________
Question
​Choosing specific columns from a database through a SELECT statement is known as projection._________________________
Question
Concatenation refers to combining the results of several SELECT statements into one result.​
Question
The syntax for a SQL statement gives the basic structure required to execute the statement.
​_________________________
Question
​The only required clauses for a SELECT statement are the WHERE and FROM clauses._________________________
Question
The SELECT clause identifies the table containing the data to be queried._________________________
Question
​In a(n)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
Each clause of a SELECT statement must be entered on a new line in SQL*Plus._________________________​
Question
​Parentheses can be used to override the order of operations in an arithmetic expression.
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 data._________________________
Question
​The optional keyword AS can be used to indicate that the subsequent string of characters is a column alias.
Question
​The DIST or UNIQ keywords can be used to suppress duplicate data in the results of a SELECT statement.
Question
​Each section of a statement that begins with a keyword is known as a(n)buffer._________________________
Question
The SELECT command can be used to display the structure of a database table._________________________​
Question
A(n)WHERE statement allows a user to retrieve data from a database table.​_________________________
Question
​When listing more than one column name in the SELECT clause of a SELECT statement,the column names must be separated by semicolons._________________________
Question
Combining the contents of two or more columns is known as projection._________________________​
Question
​The DISTINCT keyword can be used to indicate that duplicate data should be suppressed in the results of a query._________________________
Question
A string literal must be enclosed in double quotation marks._________________________​
Question
By default,data within a character or data column is right-aligned when it is displayed._________________________​
Question
Insignificant zeros are displayed for numeric columns by default to show two decimal places._________________________​
Question
When solving arithmetic expressions,Oracle 12c always resolves addition and subtraction operations first from left to right in the expression._________________________
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) ​WHERE
B) ​SELECT
C) ​HAVING
D) ​FROM
Question
​If a column alias contains a blank space,it must be enclosed in double quotation marks._________________________
Question
The use of a column alias in the SELECT clause can be designated by the keyword ALIAS._________________________
Question
Which of the following are case sensitive in Oracle 12c?​

A) ​none of the above
B) ​table names
C) ​column names
D) ​keywords
Question
Parentheses can be used to override the order of operations in an arithmetic expression._________________________​
Question
The ____ for a SQL statement gives the basic structure,or rules,required to execute the statement.​

A) ​keywords
B) ​sequence
C) ​syntax
D) ​clauses
Question
Which of the following is a mandatory clause in a SELECT statement?​

A) ​both a and b are mandatory
B) ​HAVING
C) ​WHERE
D) ​FROM
Question
Which of the following commands can be used to view the structure of a table?​

A) ​SELECT
B) ​DESCRIBE
C) ​none of the above
D) ​CONCATENATION
Question
A(n)____ has a predefined meaning in Oracle 12c.​

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

A) ​:
B) ​;
C) ​/
D) ​*
Question
Which of the following symbols represents all the columns contained in a table?​

A) ​^
B) ​;
C) ​*
D) /
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) ​numeric
B) ​alphanumeric
C) ​character
D) ​date
Question
​Which of the following commands is used to issue a query?

A) ​QUER
B) ​FROM
C) ​SELECT
D) ​QUESTION
Question
By default,data within a numeric column is right-aligned when it is displayed._________________________​
Question
Which of the following types of columns will automatically right-align the data when it is displayed?​

A) ​numeric
B) ​character
C) ​alphanumeric
D) ​date
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
Which of the following keywords can be used to indicate that a column alias should be included in the results?​

A) ​ALIAS
B) ​AS
C) ​SELECT
D) ​FROM
Question
Combining the contents of two or more columns is known as ____.​

A) ​selection
B) ​concatenation
C) ​suppression
D) ​projection
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 name,publisherID FROM publishers; C) ​SELECT pubid,contact FROM publisher; 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 name,publisherID FROM publishers;
C) ​SELECT pubid,contact FROM publisher;
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 SQL statements will display only two columns in the results?</strong> A) ​SELECT * FROM publisher; B) ​none of the above C) ​SELECT contact name FROM publisher; D) ​SELECT contact person,name FROM publisher; <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) ​none of the above
C) ​SELECT contact name FROM publisher;
D) ​SELECT contact person,name FROM publisher;
Question
Which of the following types of columns will automatically left-align the column heading when it is displayed?​

A) ​date
B) ​character
C) ​both a and c
D) ​numeric
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 contact; B) ​SELECT * FROM publisher; C) ​SELECT * FROM pubid; D) ​SELECT * FROM name; <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 contact;
B) ​SELECT * FROM publisher;
C) ​SELECT * FROM pubid;
D) ​SELECT * FROM name;
Question
What is the correct solution for the arithmetic expression (2+8)/2*9/3 using the order of operations employed by Oracle 12c when solving equations?​

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

A) ​13
B) ​10
C) ​12
D) ​31
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 publisherID FROM publisher; C) ​SELECT contact,name 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 publisherID
FROM publisher;
C) ​SELECT contact,name
FROM publisher;
D) ​SELECT name
FROM publishers;
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
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 name,phone ​FROM publisher B) SELECT * FROM publisher;​ C) ​SELECT name,contact 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 name,phone ​FROM publisher
B) SELECT *
FROM publisher;​
C) ​SELECT name,contact FROM publisher/
D) ​SELECT * FROM publisher;
Question
What is the correct answer for the arithmetic expression 9+2*(3-4)using the order of operations employed by Oracle 12c when solving equations?​

A) ​7
B) ​-18
C) ​9
D) ​-11
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
Which of the following statements is correct?​

A) ​The columns will be listed in the results in the same order they are listed in the SELECT clause of the SELECT statement.
B) ​The columns will be listed in the results in the same order they are stored in the database table.
C) ​Numeric columns are listed first in the output,followed by character columns.
D) ​Character columns are listed first in the output,followed by numeric columns.
Question
If a column alias contains a blank space,it must be enclosed in ____.​

A) ​single quotation marks (' ')
B) ​asterisks (* *)
C) ​double quotation marks (" ")
D) ​percent signs (% %)
Question
Which of the following keywords can be included in a SELECT statement to suppress duplicate data?​

A) ​UNIQ
B) ​SUPPRESS
C) ​all of the above
D) ​DISTINCT
Question
​What is the correct solution for the arithmetic expression 2+8/2*9/3 using the order of operations employed by Oracle 12c when solving equations?

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

A) ​single quotation marks (' ')
B) ​double quotation marks (" ")
C) ​asterisks (* *)
D) ​percent signs (% %)
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/121
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Basic SQL Select Statements
1
​The DESCRIBE command is used to view data in a table.
False
2
SQL*Plus is an Oracle tool used to enter and edit SQL statements.​
True
3
​If multiple column names are listed in the SELECT clause of a SELECT statement,the columns must be separated by a comma (,).
True
4
​By default,a column alias is displayed in lower case characters in the results.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
5
Each section of a SQL command that begins with a keyword is known as a statement.​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
6
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 121 flashcards in this deck.
Unlock Deck
k this deck
7
​The columns displayed in the results of a SELECT statement will be in the same order as they are stored in the database table.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
8
​Choosing specific columns to be displayed by a SELECT statement is known as selection.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
9
​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 121 flashcards in this deck.
Unlock Deck
k this deck
10
Column headings may be truncated in the results of a SELECT statement.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
11
A script file containing SQL statements can be executed from SQL*Plus.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
12
Choosing specific columns to be displayed by a SELECT statement is known as projection.​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
13
​If you assign a column alias to a column,it must be enclosed in double quotation marks (" ").
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
14
SQL*Plus can only be accessed via an internet interface.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
15
The majority of operations performed on a typical database table utilize the SELECT statement.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
16
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 121 flashcards in this deck.
Unlock Deck
k this deck
17
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.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
18
A clause is a section within a SQL statement that begins with a keyword.​
Unlock Deck
Unlock for access to all 121 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 121 flashcards in this deck.
Unlock Deck
k this deck
20
A query is accomplished by issuing a SELECT statement.​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
21
A(n)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 121 flashcards in this deck.
Unlock Deck
k this deck
22
A query can be executed in the SQL*Plus tool._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
23
​A double backslash (\\)is used to indicate concatenation in a SELECT statement.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
24
The ALL option can be used in the SELECT clause to indicate that all columns should be retrieved._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
25
​Choosing specific columns from a database through a SELECT statement is known as projection._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
26
Concatenation refers to combining the results of several SELECT statements into one result.​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
27
The syntax for a SQL statement gives the basic structure required to execute the statement.
​_________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
28
​The only required clauses for a SELECT statement are the WHERE and FROM clauses._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
29
The SELECT clause identifies the table containing the data to be queried._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
30
​In a(n)SELECT statement,keywords,table names,and column names are not case sensitive._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
31
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 121 flashcards in this deck.
Unlock Deck
k this deck
32
Each clause of a SELECT statement must be entered on a new line in SQL*Plus._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
33
​Parentheses can be used to override the order of operations in an arithmetic expression.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
34
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 data._________________________
Unlock Deck
Unlock for access to all 121 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 121 flashcards in this deck.
Unlock Deck
k this deck
36
​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 121 flashcards in this deck.
Unlock Deck
k this deck
37
​Each section of a statement that begins with a keyword is known as a(n)buffer._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
38
The SELECT command can be used to display the structure of a database table._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
39
A(n)WHERE statement allows a user to retrieve data from a database table.​_________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
40
​When listing more than one column name in the SELECT clause of a SELECT statement,the column names must be separated by semicolons._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
41
Combining the contents of two or more columns is known as projection._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
42
​The 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 121 flashcards in this deck.
Unlock Deck
k this deck
43
A string literal must be enclosed in double quotation marks._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
44
By default,data within a character or data column is right-aligned when it is displayed._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
45
Insignificant zeros are displayed for numeric columns by default to show two decimal places._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
46
When solving arithmetic expressions,Oracle 12c always resolves addition and subtraction operations first from left to right in the expression._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
47
To indicate which database table contains the data to be selected by a query,the table name should be listed in the ____ clause.​

A) ​WHERE
B) ​SELECT
C) ​HAVING
D) ​FROM
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
48
​If a column alias contains a blank space,it must be enclosed in double quotation marks._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
49
The use of a column alias in the SELECT clause can be designated by the keyword ALIAS._________________________
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
50
Which of the following are case sensitive in Oracle 12c?​

A) ​none of the above
B) ​table names
C) ​column names
D) ​keywords
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
51
Parentheses can be used to override the order of operations in an arithmetic expression._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
52
The ____ for a SQL statement gives the basic structure,or rules,required to execute the statement.​

A) ​keywords
B) ​sequence
C) ​syntax
D) ​clauses
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
53
Which of the following is a mandatory clause in a SELECT statement?​

A) ​both a and b are mandatory
B) ​HAVING
C) ​WHERE
D) ​FROM
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
54
Which of the following commands can be used to view the structure of a table?​

A) ​SELECT
B) ​DESCRIBE
C) ​none of the above
D) ​CONCATENATION
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
55
A(n)____ has a predefined meaning in Oracle 12c.​

A) ​statement
B) ​clause
C) ​keyword
D) ​syntax
Unlock Deck
Unlock for access to all 121 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 121 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following symbols represents all the columns contained in a table?​

A) ​^
B) ​;
C) ​*
D) /
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
58
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) ​numeric
B) ​alphanumeric
C) ​character
D) ​date
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
59
​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 121 flashcards in this deck.
Unlock Deck
k this deck
60
By default,data within a numeric column is right-aligned when it is displayed._________________________​
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following types of columns will automatically right-align the data when it is displayed?​

A) ​numeric
B) ​character
C) ​alphanumeric
D) ​date
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
62
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 121 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following keywords can be used to indicate that a column alias should be included in the results?​

A) ​ALIAS
B) ​AS
C) ​SELECT
D) ​FROM
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
64
Combining the contents of two or more columns is known as ____.​

A) ​selection
B) ​concatenation
C) ​suppression
D) ​projection
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
65
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 name,publisherID FROM publishers; C) ​SELECT pubid,contact FROM publisher; 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 name,publisherID FROM publishers;
C) ​SELECT pubid,contact FROM publisher;
D) ​none of the above
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
66
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) ​none of the above C) ​SELECT contact name FROM publisher; D) ​SELECT contact person,name FROM publisher;
​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) ​none of the above
C) ​SELECT contact name FROM publisher;
D) ​SELECT contact person,name FROM publisher;
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following types of columns will automatically left-align the column heading when it is displayed?​

A) ​date
B) ​character
C) ​both a and c
D) ​numeric
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
68
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 contact; B) ​SELECT * FROM publisher; C) ​SELECT * FROM pubid; D) ​SELECT * FROM name;
Based upon the contents of the PUBLISHER table,which of the following is a valid SQL statement?​

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

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

A) ​13
B) ​10
C) ​12
D) ​31
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
71
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 publisherID FROM publisher; C) ​SELECT contact,name 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 publisherID
FROM publisher;
C) ​SELECT contact,name
FROM publisher;
D) ​SELECT name
FROM publishers;
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
72
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 121 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 not a valid SQL statement?​</strong> A) ​SELECT name,phone ​FROM publisher B) SELECT * FROM publisher;​ C) ​SELECT name,contact 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 name,phone ​FROM publisher
B) SELECT *
FROM publisher;​
C) ​SELECT name,contact FROM publisher/
D) ​SELECT * FROM publisher;
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
74
What is the correct answer for the arithmetic expression 9+2*(3-4)using the order of operations employed by Oracle 12c when solving equations?​

A) ​7
B) ​-18
C) ​9
D) ​-11
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
75
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 121 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following statements is correct?​

A) ​The columns will be listed in the results in the same order they are listed in the SELECT clause of the SELECT statement.
B) ​The columns will be listed in the results in the same order they are stored in the database table.
C) ​Numeric columns are listed first in the output,followed by character columns.
D) ​Character columns are listed first in the output,followed by numeric columns.
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
77
If a column alias contains a blank space,it must be enclosed in ____.​

A) ​single quotation marks (' ')
B) ​asterisks (* *)
C) ​double quotation marks (" ")
D) ​percent signs (% %)
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following keywords can be included in a SELECT statement to suppress duplicate data?​

A) ​UNIQ
B) ​SUPPRESS
C) ​all of the above
D) ​DISTINCT
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
79
​What is the correct solution for the arithmetic expression 2+8/2*9/3 using the order of operations employed by Oracle 12c when solving equations?

A) ​14
B) ​15
C) ​4.8
D) ​0.1
Unlock Deck
Unlock for access to all 121 flashcards in this deck.
Unlock Deck
k this deck
80
​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 121 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 121 flashcards in this deck.