Frage 1
Frage
Which symbol do you use if you need to choose all the columns from the table to the result query?
Frage 2
Frage
Which is right order of the following clauses?
Antworten
-
SELECT … FROM … GROUP BY … ORDER BY … WHERE
-
SELECT … WHERE … ORDER BY … GROUP BY
-
SELECT … FROM … WHERE … GROUP BY … ORDER BY
-
SELECT … FROM … WHERE … ORDER BY … GROUP BY
Frage 3
Frage
Which symbol is used to create a substitution variable?
Frage 4
Frage
Which keyword is used to provide an alias to a column?
Frage 5
Frage
Which command is used to view the structure of the table LOCATIONS?
Antworten
-
DESCRIBE LOCATIONS
-
SELECT * FROM LOCATIONS
-
SHOW STRUCTURE LOCATIONS
-
PRINT LOCATIONS
Frage 6
Frage
Which of the following is a concatenation operator?
Frage 7
Frage
Which keyword is used to eliminate duplicate rows in the result?
Antworten
-
DESCRIBE
-
GROUP BY
-
HAVING
-
DISTINCT
Frage 8
Frage
Which of the following operations is an analogue to the CONCAT function?
Frage 9
Frage
When using LIKE conditions which symbol is used to denote zero or many characters?
Frage 10
Frage
When using LIKE conditions which symbol is used to denote one character?
Frage 11
Frage
Which of the following clauses is used to limit the rows that are retrieved by the query?
Antworten
-
WHERE
-
FROM
-
ORDER BY
-
GROUP BY
Frage 12
Frage
Which of the following clauses is used to sort the rows that are retrieved by the query?
Antworten
-
WHERE
-
FROM
-
ORDER BY
-
GROUP BY
Frage 13
Frage
Which of the following functions extracts a string of determined length?
Frage 14
Frage
Which of the following functions finds the numeric position of a named character?
Frage 15
Frage
Which of the following functions joins two strings together?
Frage 16
Frage
Which of the following functions is not single-row function?
Frage 17
Frage
Which of the following functions is not multiple-row function?
Frage 18
Frage
FULL OUTER JOIN is used when
Antworten
-
each row of one table must be join with each row of another table
-
each row of one table must be join with each row of another table even if the tables do not have any columns in common
-
the rows from both tables must be displayed even if they do not satisfy the JOIN condition
-
a Cartesian product of the two tables must be displayed
Frage 19
Frage
Queries that return only one row from the inner SELECT statement are called
Frage 20
Frage
Queries that return more than one row from the inner SELECT statement are called
Frage 21
Frage
The _______operator compares a value to each value returned by a subquery.
Frage 22
Frage
The ________operator compares a value to every value returned by a subquery.
Frage 23
Frage
Subqueries have the following characteristics:
I. Can pass one row of data to a main statement that contains a single-row operator, such as =, <>, >, >=, <, or <=
II. Can pass multiple rows of data to a main statement that contains a multiple-row operator, such as IN
III. Are processed first by the Oracle server, after which the WHERE or HAVING clause uses the results
Antworten
-
I and III
-
I, II, and III
-
I and II
-
I only
Frage 24
Frage
A SELECT statement that is embedded in a clause of another SELECT statement is called
Antworten
-
subquery
-
inner query
-
outer query
-
main query
Frage 25
Frage
You can place the subquery in a number of SQL clauses, including the following:
I. WHERE clause
II. HAVING clause
III. FROM clause
Antworten
-
I and III
-
I, II and III
-
I and II
-
I only
Frage 26
Frage
Comparison conditions fall into two classes:
Antworten
-
single-row operators (>, =, >=, <, <>, <=) and multiple-column operators (IN, ANY, ALL)
-
single-column operators (>, =, >=, <, <>, <=) and multiple-column operators (IN, ANY, ALL)
-
multiple-row operators (>, =, >=, <, <>, <=) and single-row operators (IN, ANY, ALL)
-
single-row operators (>, =, >=, <, <>, <=) and multiple-row operators (IN, ANY, ALL)
Frage 27
Frage
The subquery generally executes_________, and its output is used to complete the query condition for the main (or_________) query.
Antworten
-
last, outer
-
first, inner
-
last, inner
-
first, outer
Frage 28
Frage
A subquery must be enclosed in_________________.
Antworten
-
curly braces
-
double quotes
-
single quotes
-
parentheses
Frage 29
Frage
_________ clause can be used and is required in the subquery to perform Top-N analysis.
Antworten
-
ORDER BY
-
HAVING
-
WHERE
-
GROUP BY
Frage 30
Frage
Which of the following operators is equivalent to the IN operator?
Frage 31
Frage
Queries containing set operators are called______________.
Antworten
-
outer queries
-
compound queries
-
subqueries
-
inner queries
Frage 32
Frage
The _____________operator returns all rows that are selected by either query eliminating duplicates.
Antworten
-
INTERSECT
-
UNION
-
MINUS
-
UNION ALL
Frage 33
Frage
Use the ________________operator to return all rows from multiple tables and eliminate any duplicate rows.
Antworten
-
UNION ALL
-
UNION
-
MINUS
-
INTERSECT
Frage 34
Frage
_______________ returns all rows selected by either query, including all duplicates.
Antworten
-
NTERSECT
-
MINUS
-
UNION
-
UNION ALL
Frage 35
Frage
Use the __________________operator to return all rows that are common to multiple queries.
Antworten
-
UNION
-
UNION ALL
-
MINUS
-
INTERSECT
Frage 36
Frage
Use the ______________operator to return rows returned by the first query that are not present in the second query.
Antworten
-
MINUS
-
INTERSECT
-
UNION
-
UNION ALL
Frage 37
Frage
Which statement discards all pending data changes
Antworten
-
DISCARD
-
SAVEPOINT
-
ROLLBACK
-
COMMIT
Frage 38
Frage
Which of the following commands removes rows and a table structure?
Antworten
-
REMOVE TABLE
-
ALTER TABLE
-
DROP TABLE
-
DELETE TABLE
Frage 39
Frage
Which of the following commands is a part of the Data Manipulation Language?
Antworten
-
TRUNCATE
-
DROP
-
ALTER
-
SELECT
Frage 40
Frage
Which of the following commands is a part of the Data Definition Language?
Antworten
-
DELETE
-
UPDATE
-
SELECT
-
CREATE
Frage 41
Frage
Which of the following constraints does not exist?
Antworten
-
UNIQUE
-
CHECK
-
NOT NULL
-
DEFAULT
Frage 42
Frage
Consider the EMPLOYEES table. Which of the following SQL statements is correct to display the last name of the employee with its hire date providing the Employee and Hire Date aliases (case is important)?
Antworten
-
SELECT last_name AS 'Employee', hire_date AS 'Hire Date' FROM employees;
-
SELECT last_name "Employee", hire_date "Hire Date" FROM employees;
-
SELECT last_name Employee, hire_date Hire Date FROM employees;
-
SELECT last_name AS Employee, hire_date AS Hire Date FROM employees;
Frage 43
Frage
Consider the EMPLOYEES table. Which of the following SQL statements is correct to provide the sentence in the format "King has been working since 01.01.1987" with "Employee Information" alias?
Antworten
-
SELECT last_name || ' has been working since ' || hire_date Employee Information FROM employees;
-
SELECT last_name || ' has been working since ' || hire_date 'Employee Information' FROM employees;
-
SELECT last_name || " has been working since " || hire_date "Employee Information" FROM employees;
-
SELECT last_name || ' has been working since ' || hire_date "Employee Information" FROM employees;
Frage 44
Frage
What will be the result of the following SQL statement?
Antworten
-
he number of employees within each department will be displayed
-
An error will occur since the GROUP BY clause is missing
-
The unique department ids will be displayed
-
The number of departments will be displayed
Frage 45
Frage
Which of the following SQL statements will not generate an error?
Antworten
-
SELECT department_id Dep, COUNT(last_name) Num FROM employees GROUP BY department_id HAVING Num > 5
-
SELECT department_id Dep, COUNT(last_name) FROM employees GROUP BY Dep
-
SELECT last_name Name FROM employees WHERE Name like 'K%'
-
SELECT last_name Name FROM employees ORDER BY Name
Frage 46
Frage
Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those whose salary is greater than 5000 but less than 18000?
Antworten
-
WHERE salary > 5000 AND salary > 18000
-
WHERE salary > 5000 AND salary < 18000
-
WHERE salary < 5000 AND salary > 18000
-
WHERE salary > 5000 OR salary < 18000
Frage 47
Frage
Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to IT programmers with salary greater than 5000?
Antworten
-
WHERE salary > 5000 AND job_id = 'IT_PROG'
-
WHERE salary > 5000 OR job_id = 'IT_PROG'
-
WHERE salary > 5000 AND job_id = "IT_PROG"
-
WHERE salary > 5000 AND job_id = IT_PROG
Frage 48
Frage
Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who work in the departments 90 and 60?
Antworten
-
WHERE department_id BETWEEN 60 AND 90
-
WHERE department_id BETWEEN 90 AND 60
-
WHERE department_id = 90 OR department_id = 60
-
WHERE department_id = 90 AND department_id = 60
Frage 49
Frage
Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who do not work in the departments 90 and 60?
Antworten
-
WHERE department_id = 90 OR department_id = 60
-
WHERE department_id NOT IN (90, 60)
-
WHERE department_id = 90 AND department_id = 60
-
WHERE department_id IN (90, 60)
Frage 50
Frage
Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those whose last name and first name starts with the letter ‘K’?
Antworten
-
WHERE last_name LIKE 'K%' and first_name LIKE 'K%'
-
WHERE last_name LIKE 'K_' and first_name LIKE 'K_'
-
WHERE last_name = 'K%' and first_name = 'K%'
-
WHERE last_name and first_name = 'K%'