Docsity

Basic SQL Select Statements 2026/2027 LATEST EXAM, Exams of Health sciences

Toggle sidebar
bg1
Basic SQL Select Statements
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? - ANSWER-1.336
When resolving arithmetic expressions, Oracle 12c always performs the
operations by starting on the ____________________ side of the
expression. - ANSWER-left
Contents of the BOOKS table
Based upon the contents of the BOOKS table, which of the following
columns will be displayed with a right-aligned column heading? -
ANSWER-pubid
A query is accomplished by issuing a SELECT statement. - ANSWER-true
When a user asks the database a question, the user is issuing a query. -
ANSWER-true
The DISTINCT keyword can be used to indicate that duplicate data
should be suppressed in the results of a query.
_________________________ - ANSWER-true
Choosing specific columns to be displayed by a SELECT statement is
known as projection. - ANSWER-true
Contents of the PUBLISHER table
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Basic SQL Select Statements 2026/2027 LATEST EXAM and more Exams Health sciences in PDF only on Docsity!

Basic SQL Select Statements

What is the correct solution for the arithmetic expression (2+8)/2*9/ using the order of operations employed by Oracle 12c when solving equations? - ANSWER-1. When resolving arithmetic expressions, Oracle 12c always performs the operations by starting on the ____________________ side of the expression. - ANSWER-left Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following columns will be displayed with a right-aligned column heading? - ANSWER-pubid A query is accomplished by issuing a SELECT statement. - ANSWER-true When a user asks the database a question, the user is issuing a query. - ANSWER-true The DISTINCT keyword can be used to indicate that duplicate data should be suppressed in the results of a query. _________________________ - ANSWER-true Choosing specific columns to be displayed by a SELECT statement is known as projection. - ANSWER-true 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? - ANSWER- SELECT contact person, name FROM publisher; 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? - ANSWER-none of the above Which of the following symbols represents all the columns contained in a table? - ANSWER-* A ____________________ is used to end a SQL statement. - ANSWER-; The optional keyword AS can be used to indicate that the subsequent string of characters is a column alias. - ANSWER-true 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?

  • ANSWER- The majority of operations performed on a typical database table utilize the SELECT statement. - ANSWER-true A clause is a section within a SQL statement that begins with a keyword.
  • ANSWER-true If a column alias contains a blank space, it must be enclosed in double quotation marks. _________________________ - ANSWER-true Parentheses can be used to override the order of operations in an arithmetic expression. - ANSWER-true Which of the following keywords can be included in a SELECT statement to suppress duplicate data? - ANSWER-DISTINCT

The only required clauses for a SELECT statement are the WHERE and FROM clauses. _________________________ - ANSWER-false By default, the data for a numeric column is ____________________ aligned when it is displayed. - ANSWER-right Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following SQL statements will display the retail price for two copies of each book currently in inventory? - ANSWER-SELECT title, retail+retail FROM books; Combining the contents of two or more columns is known as ____________________. - ANSWER-concatenation The ____ for a SQL statement gives the basic structure, or rules, required to execute the statement. - ANSWER-syntax Structure of the ORDERS table Which of the following statements can be used to view the structure of the ORDERS table? - ANSWER-DESCRIBE ORDERS The SELECT clause identifies the table containing the data to be queried. _________________________ - ANSWER-false What is used to indicate the end of an SQL statement? - ANSWER-; The syntax for a SQL statement gives the basic structure required to execute the statement. - ANSWER-true A double backslash (\) is used to indicate concatenation in a SELECT statement. - ANSWER-false

Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following columns will be displayed with a right-aligned column heading? - ANSWER-pubid Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following SQL statements will display the retail price for two copies of each book currently in inventory? - ANSWER-SELECT title, retail+retail FROM books; If you assign a column alias to a column, it must be enclosed in double quotation marks (" "). - ANSWER-false Which of the following is a mandatory clause in a SELECT statement? - ANSWER-FROM Which of the following statements is correct? - ANSWER-The columns will be listed in the results in the same order they are listed in the SELECT clause of the SELECT statement. If a column heading is longer than the assigned width of a character column, the column heading will be ____________________. - ANSWER- truncated Contents of the BOOKS table

Based upon the structure of the ORDERS table, which of the following is a valid SQL statement? - ANSWER-SELECT order#, orderdate DateOrdered FROM orders; Each section of a statement that begins with a keyword is known as a(n) buffer. _________________________ - ANSWER-false Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following SQL statements will display five rows in its results? - ANSWER-SELECT DISTINCT pubid FROM books; 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?

  • ANSWER- If you do not want a column alias to appear in all upper case characters, the column alias must be enclosed in ____________________ marks. - ANSWER-double quotation The following arithmetic operations can be performed in the SELECT clause of a SELECT statement: addition (+), subtraction (-), multiplication (), division (/), and exponential (^). - ANSWER-false By default, data within a numeric column is right-aligned when it is displayed. _________________________ - ANSWER-true The asterisk symbol () can be used in a SELECT statement to indicate that all rows in the table should be displayed in the results. - ANSWER- false Structure of the ORDERS table

Based upon the structure of the ORDERS table, the column heading for which column will be truncated in the results? - ANSWER-shipzip By default, the data for a numeric column is ____________________ aligned when it is displayed. - ANSWER-right Contents of the BOOKS table Which of the following is a valid SQL statement? - ANSWER-SELECT title, retail-cost FROM books; Which of the following are case sensitive in Oracle 12c? - ANSWER-none of the above The SELECT command can be used to display the structure of a database table. _________________________ - ANSWER-false A string literal must be enclosed in double quotation marks. _________________________ - ANSWER-false Contents of the BOOKS table Which of the following SQL statements will display the profit generated by each book currently stored in the BOOKS table? - ANSWER-SELECT title, retail-cost FROM books; Contents of the BOOKS table

Based upon the structure of the ORDERS table, the column heading for which column will be truncated in the results? - ANSWER-shipzip A(n) WHERE statement allows a user to retrieve data from a database table. _________________________ - ANSWER-false The columns displayed in the results of a SELECT statement will be in the same order as they are stored in the database table. - ANSWER-false 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. - ANSWER-false Contents of the PUBLISHER table Based upon the contents of the PUBLISHER table, which of the following is a valid SQL statement? - ANSWER-SELECT contact, name FROM publisher; A(n) ____ has a predefined meaning in Oracle 12c. - ANSWER-keyword Structure of the ORDERS table Based upon the structure of the ORDERS table, which of the following SQL statements will return an error message upon execution? - ANSWER-SELECT order#, "order number" FROM orders; A string literal must be enclosed in ____________________ marks. - ANSWER-single quotation or ' ' You can include ____________________ to override the order of operations when solving arithmetic expressions. - ANSWER-( ) or parentheses

A script file containing SQL statements can be executed from SQLPlus. - ANSWER-true Contents of the BOOKS table Based upon the contents of the BOOKS table, which of the following SQL statements will display the retail price for two copies of each book currently in inventory? - ANSWER-SELECT title, retail+retail FROM books; Which of the following symbols can be used to combine data from different columns into one column of output? - ANSWER-|| SQLPlus is an Oracle tool used to enter and edit SQL statements. - ANSWER-true

  • ANSWER-