Quiz
QUIZ 2
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (15)
1The concatenation operator ...
- AAll of the above
- BBrings together columns or character strings into other columns
- CCreates a resultant column that is a character expression
- DIs represented by two vertical bars ( || )
2The following is a valid SQL SELECT statement. True or False?
SELECT first_name || ' ' || last_name alias AS Employee_Name
FROM employees:- ATrue
- BFalse
3Which comparison condition would you use to select rows that match a character pattern?
- ALIKE
- BSIMILAR
- CIN
- DALMOST
4Which statement best describes how column headings are displayed by default in Oracle Application Express:
- AColumn headings are displayed left-justified and in lowercase.
- BColumn headings are displayed centered and in uppercase.
- CColumn headings are displayed left-justified and in uppercase.
- DColumn headings are displayed centered and in mixed case.
5You 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?
- ADISTINCT
- BONLY
- CUNIQUEONE
- DDISTINCTROW
6You 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?
- AAND
- BLIKE
- CIN
- DBETWEEN
7If the EMPLOYEES table has the following columns, and you want to write a SELECT statement to return the employee last name and department number for employee number 176, which of the following SQL statements should you use?

- ASELECT last_name, department_id
FROM employees
WHERE employee_id = 176;
(*) - BSELECT first_name, employee_id
FROM employees
WHERE employee_id = 176; - CSELECT last_name, department_id
FROM employees
WHERE employee_id equals 176;
SELECT last_name, department_id
FROM employees
WHERE employee_id equals 176;
;
SELECT last_name, department_id
FROM employees
WHERE employee_id equals 176;
SELECT last_name, employee_id
FROM employees
WHERE employee_id equals 176; - DSELECT last_name, employee_id
FROM employees
WHERE employee_id equals 176;
- ASELECT last_name, department_id
8Which example would limit the number of rows returned?
- ASELECT title FROM d_songs WHERE type_code = 88;
- BSELECT title FROM d_songs WHEN type_code = = 88;
- CSELECT title FROM d_songs WHERE type_code = = 88;
- DSELECT title FROM d_songs WHEN type_code = 88;
9You want to retrieve a list of customers whose last names begin with the letters 'Fr' . Which symbol should you include in the WHERE clause of your SELECT statement to achieve the desired result?
- A*
- B#
- C%
- D~
10Evaluate 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?- ADEPARTMENT_ID = 10 and SALARY = 20001
- BDEPARTMENT_ID = null and SALARY = 20001
- CDEPARTMENT_ID = 10 and SALARY = 20000
- DDEPARTMENT_ID = 20 and SALARY = 20000
11Which two statements would select salaries that are greater than or equal to 2500 and less than or equal to 3500? (Choose two)
- AWHERE salary BETWEEN 2500 AND 3500
- BWHERE salary >= 2500 AND salary <= 3500
- CWHERE salary <=2500 AND salary >= 3500
- DWHERE salary BETWEEN 3500 AND 2500
12The EMPLOYEES table includes these columns:
EMPLOYEE_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(15) NOT NULL
FIRST_NAME VARCHAR2(10) NOT NULL
HIRE_DATE DATE NOT NULL
You want to produce a report that provides the last names, first names, and hire dates of those employees who were hired between March 1, 2000, and August 30, 2000. Which statements can you issue to accomplish this task?- ASELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN '01-Mar-2000' AND '30-Aug-2000'; - BSELECT last_name, first_name, hire_date
FROM employees
AND hire_date >= '01-Mar-2000' and hire_date <= '30-Aug-2000'; - CSELECT last_name, first_name, hire_date
FROM employees
GROUP BY hire_date >= '01-Mar-2000' and hire_date <= '30- Aug-2000'; - DSELECT last_name, first_name, hire_date
FROM employees
WHERE hire_date BETWEEN '30-Aug-2000' AND '01-Mar-2000';
- ASELECT last_name, first_name, hire_date
13If 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?
- ATrue
- BFalse
14Which of the following are examples of comparison operators used in the WHERE clause?
- AAll of the above
- B=, >, <, <=, >=, <>
- Cbetween ___ and ___
- Dis null
- Elike
- Fin (..,..,.. )
15Which of the following WHERE clauses would not select the number 10?
- AWHERE hours IN (8,9,10)
- BWHERE hours <>10
- CWHERE hours BETWEEN 10 AND 20
- DWHERE hours <= 10
Information
- Description
- Quiz on QUIZ 2, created by Claudia Piscociu on 14/01/2017.
- Author
- Claudia Piscociu
- Language
- English
- Views
- 12
- History
- Created on 14 Jan 2017 · updated on 17 Jan 2017
- Rating
- No ratings yet Rate this quiz