Bd
Which of the following are true? (Choose Two)
Character values are not case-sensitive
Date values are format-sensitive
Date values are enclosed in single quotation marks
Character strings are enclosed in double quotation marks
Which of the following would be returned by this SELECT statement SELECT last_name, salary FROM employees WHERE salary < 3500;
LAST_NAME SALARY King 5000
LAST_NAME SALARY Rajas 3500
LAST_NAME SALARY Davies 3100
All of the above
How can you write "not equal to" in the WHERE-clause?
!=
^=
<>
All of the above
Which query would give the following result? LAST_NAME FIRST_NAME DEPARTMENT_ID King Steven 90
SELECT last_name, first_name, department_id FROM employees WHERE last_name LIKE 'k%';
SELECT last_name, first_name, department_id FROM employees WHERE last_name LIKE 'KING';
SELECT last_name, first_name, department_id FROM employees WHERE last_name = 'King';
SELECT last_name, first_name, department_id FROM employees C WHERE last_name = 'KING';
Which SELECT statement will display both unique and non-unique combinations of the MANAGER_ID and DEPARTMENT_ID values from the EMPLOYEES table?
SELECT DISTINCT manager_id, department_id FROM employees;
SELECT manager_id, DISTINCT department_id FROM employees;
SELECT manager_id, department_id FROM employees;
SELECT manager_id, department_id DISTINCT FROM employees;
Where in a SQL statement can you not use arithmetic operators?
WHERE
SELECT
NONE
FROM
Which clause would you include in a SELECT statement to restrict the data returned to only the employees in department 10?
WHERE
FROM
SELECT
IS
The concatenation operator ...
Brings together columns or character strings into other columns
Creates a resultant column that is a character expression
Is represented by two vertical bars ( || )
All of the above
You need to display employees whose salary is in the range of 30000 and 50000. Which comparison operator should you use?
LIKE
BETWEEN...AND...
IN
IS NULL
Which comparison condition would you use to select rows that match a character pattern?
LIKE
IN
ALMOST
SIMILAR
Which of the following WHERE clauses would not select the number 10?
WHERE hours <= 10
WHERE hours IN (8,9,10)
WHERE hours <>10
WHERE hours BETWEEN 10 AND 20
When using the "LIKE" operator, the % and _ symbols can be used to do a pattern-matching, wild card search. True or False?
True
False
Which of the following are examples of comparison operators used in the WHERE clause?
=, >, <, <=, >=, <>
Between ___ and ___
In (..,..,.. )
Like
Is null
All of the above
If you write queries using the BETWEEN operator, it does not matter in what order you enter the values, I.e. BETWEEN low value AND high value will give the same result as BETWEEN high value and low value. True or False?
True
False
The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) EMAIL VARCHAR2(50) You are writing a SELECT statement to retrieve the names of employees that have an email address. SELECT last_name||', '||first_name "Employee Name" FROM employees; Which WHERE clause should you use to complete this statement?
WHERE email != NULL;
WHERE email IS NOT NULL;
WHERE email = NULL;
WHERE email IS NULL;
You need write a SELECT statement that should only return rows that contain 34, 46, or 48 for the DEPARTMENT_ID column. Which operator should you use in the WHERE clause to compare the DEPARTMENT_ID column to this specific list of values?
BETWEEN..AND..
!=
=
IN
You want to retrieve a list of customers whose last names begin with the letters 'Fr' . Which keyword should you include in the WHERE clause of your SELECT statement to achieve the desired result?
IN
BETWEEN
AND
LIKE
Evaluate this SELECT statement: SELECT * FROM employees WHERE department_id IN(10, 20, 30) AND salary > 20000; Which values would cause the logical condition to return TRUE?
DEPARTMENT_ID = 20 and SALARY = 20000
DEPARTMENT_ID = 10 and SALARY = 20000
DEPARTMENT_ID = 10 and SALARY = 20001
DEPARTMENT_ID = null and SALARY = 20001
How can you write "not equal to" in the WHERE-clause?
!=
^=
<>
All of the above
Which of the following are true? (Choose Two)
Date values are enclosed in single quotation marks
Character strings are enclosed in double quotation marks
Date values are format-sensitive
Character values are not case-sensitive
If you write queries using the BETWEEN operator, it does not matter in what order you enter the values, I.e. BETWEEN low value AND high value will give the same result as BETWEEN high value and low value. True or False?
True
False
The EMPLOYEES table contains these columns: LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) EMAIL VARCHAR2(50) You are writing a SELECT statement to retrieve the names of employees that have an email address. SELECT last_name||', '||first_name "Employee Name" FROM employees; Which WHERE clause should you use to complete this statement?
WHERE email IS NOT NULL;
WHERE email IS NULL;
WHERE email = NULL;
WHERE email != NULL;
When using the "LIKE" operator, the % and _ symbols can be used to do a pattern-matching, wild card search. True or False?
True
False
Which of the following WHERE clauses would not select the number 10?
WHERE hours <= 10
WHERE hours <>10
WHERE hours BETWEEN 10 AND 20
WHERE hours IN (8,9,10)
Which two statements would select salaries that are greater than or equal to 2500 and less than or equal to 3500? (Choose two)
WHERE salary BETWEEN 3500 AND 2500
WHERE salary BETWEEN 2500 AND 3500
WHERE salary <=2500 AND salary >= 3500
WHERE salary >= 2500 AND salary <= 3500
You need to display employees with salaries that are at least 30000 or higher. Which comparison operator should you use?
"=>"
!=
>
>=
The concatenation operator ...
Brings together columns or character strings into other columns
Creates a resultant column that is a character expression
Is represented by two vertical bars ( || )
All of the above
You need to display employees whose salary is in the range of 30000 and 50000. Which comparison operator should you use?
BETWEEN...AND...
IN
IS NULL
LIKE
You need to display only unique combinations of the LAST_NAME and MANAGER_ID columns in the EMPLOYEES table. Which keyword should you include in the SELECT clause?
DISTINCTROW
ONLY
UNIQUEONE
DISTINCT
You need to display employees whose salary is in the range of 10000 through 25000 for employees in department 50 . What does the WHERE clause look like?
WHERE department_id < 50 AND salary BETWEEN 10000 AND 25000
WHERE department_id = 50 AND salary BETWEEN 25001 AND 10001
WHERE department_id = 50 AND salary BETWEEN 10000 AND 25000
WHERE department_id > 50 AND salary BETWEEN 10000 AND 25000
{"name":"Bd", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which of the following are true? (Choose Two), Which of the following would be returned by this SELECT statement SELECT last_name, salary FROM employees WHERE salary < 3500;, How can you write \"not equal to\" in the WHERE-clause?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}