Алмат Мейржан
Quiz por , criado more than 1 year ago

test

223
0
0
Sem etiquetas
Алмат Мейржан
Criado por Алмат Мейржан quase 7 anos atrás
Fechar

data

Questão 1 de 50

1

Which symbol do you use if you need to choose all the columns from the table to the result query?

Selecione uma das seguintes:

  • *

  • +

  • All

  • %

Explicação

Questão 2 de 50

1

Which is right order of the following clauses?

Selecione uma das seguintes:

  • 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

Explicação

Questão 3 de 50

1

Which symbol is used to create a substitution variable?

Selecione uma das seguintes:

  • *

  • &

  • _

  • %

Explicação

Questão 4 de 50

1

Which keyword is used to provide an alias to a column?

Selecione uma das seguintes:

  • COLUMN

  • ALIAS

  • IS

  • AS

Explicação

Questão 5 de 50

1

Which command is used to view the structure of the table LOCATIONS?

Selecione uma das seguintes:

  • DESCRIBE LOCATIONS

  • SELECT * FROM LOCATIONS

  • SHOW STRUCTURE LOCATIONS

  • PRINT LOCATIONS

Explicação

Questão 6 de 50

1

Which of the following is a concatenation operator?

Selecione uma das seguintes:

  • *

  • +

  • &

  • ||

Explicação

Questão 7 de 50

1

Which keyword is used to eliminate duplicate rows in the result?

Selecione uma das seguintes:

  • DESCRIBE

  • GROUP BY

  • HAVING

  • DISTINCT

Explicação

Questão 8 de 50

1

Which of the following operations is an analogue to the CONCAT function?

Selecione uma das seguintes:

  • ||

  • +

  • LIKE

  • IN

Explicação

Questão 9 de 50

1

When using LIKE conditions which symbol is used to denote zero or many characters?

Selecione uma das seguintes:

  • *

  • +

  • _

  • %

Explicação

Questão 10 de 50

1

When using LIKE conditions which symbol is used to denote one character?

Selecione uma das seguintes:

  • *

  • +

  • _

  • %

Explicação

Questão 11 de 50

1

Which of the following clauses is used to limit the rows that are retrieved by the query?

Selecione uma das seguintes:

  • WHERE

  • FROM

  • ORDER BY

  • GROUP BY

Explicação

Questão 12 de 50

1

Which of the following clauses is used to sort the rows that are retrieved by the query?

Selecione uma das seguintes:

  • WHERE

  • FROM

  • ORDER BY

  • GROUP BY

Explicação

Questão 13 de 50

1

Which of the following functions extracts a string of determined length?

Selecione uma das seguintes:

  • SUBSTR

  • INSTR

  • CONCAT

  • TRIM

Explicação

Questão 14 de 50

1

Which of the following functions finds the numeric position of a named character?

Selecione uma das seguintes:

  • SUBSTR

  • INSTR

  • CONCAT

  • TRIM

Explicação

Questão 15 de 50

1

Which of the following functions joins two strings together?

Selecione uma das seguintes:

  • CONCAT

  • TRIM

  • SUBSTR

  • INSTR

Explicação

Questão 16 de 50

1

Which of the following functions is not single-row function?

Selecione uma das seguintes:

  • SUM

  • UPPER

  • CONCAT

  • ROUND

Explicação

Questão 17 de 50

1

Which of the following functions is not multiple-row function?

Selecione uma das seguintes:

  • TRUNC

  • SUM

  • AVG

  • COUNT

Explicação

Questão 18 de 50

1

FULL OUTER JOIN is used when

Selecione uma das seguintes:

  • 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

Explicação

Questão 19 de 50

1

Queries that return only one row from the inner SELECT statement are called

Selecione uma das seguintes:

  • Single-column subqueries

  • Multiple-column subqueries

  • Multiple-row subqueries

  • Single-row subqueries

Explicação

Questão 20 de 50

1

Queries that return more than one row from the inner SELECT statement are called

Selecione uma das seguintes:

  • Multiple-row subqueries

  • Single-row subqueries

  • Multiple-column subqueries

  • Single-column subqueries

Explicação

Questão 21 de 50

1

The _______operator compares a value to each value returned by a subquery.

Selecione uma das seguintes:

  • ANY

  • ALL

  • NOT

  • SOME

Explicação

Questão 22 de 50

1

The ________operator compares a value to every value returned by a subquery.

Selecione uma das seguintes:

  • ALL

  • ANY

  • NOT

  • SOME

Explicação

Questão 23 de 50

1

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

Selecione uma das seguintes:

  • I and III

  • I, II, and III

  • I and II

  • I only

Explicação

Questão 24 de 50

1

A SELECT statement that is embedded in a clause of another SELECT statement is called

Selecione uma das seguintes:

  • subquery

  • inner query

  • outer query

  • main query

Explicação

Questão 25 de 50

1

You can place the subquery in a number of SQL clauses, including the following:
I. WHERE clause
II. HAVING clause
III. FROM clause

Selecione uma das seguintes:

  • I and III

  • I, II and III

  • I and II

  • I only

Explicação

Questão 26 de 50

1

Comparison conditions fall into two classes:

Selecione uma das seguintes:

  • 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)

Explicação

Questão 27 de 50

1

The subquery generally executes_________, and its output is used to complete the query condition for the main (or_________) query.

Selecione uma das seguintes:

  • last, outer

  • first, inner

  • last, inner

  • first, outer

Explicação

Questão 28 de 50

1

A subquery must be enclosed in_________________.

Selecione uma das seguintes:

  • curly braces

  • double quotes

  • single quotes

  • parentheses

Explicação

Questão 29 de 50

1

_________ clause can be used and is required in the subquery to perform Top-N analysis.

Selecione uma das seguintes:

  • ORDER BY

  • HAVING

  • WHERE

  • GROUP BY

Explicação

Questão 30 de 50

1

Which of the following operators is equivalent to the IN operator?

Selecione uma das seguintes:

  • < ANY

  • = ALL

  • = ANY

  • > ANY

Explicação

Questão 31 de 50

1

Queries containing set operators are called______________.

Selecione uma das seguintes:

  • outer queries

  • compound queries

  • subqueries

  • inner queries

Explicação

Questão 32 de 50

1

The _____________operator returns all rows that are selected by either query eliminating duplicates.

Selecione uma das seguintes:

  • INTERSECT

  • UNION

  • MINUS

  • UNION ALL

Explicação

Questão 33 de 50

1

Use the ________________operator to return all rows from multiple tables and eliminate any duplicate rows.

Selecione uma das seguintes:

  • UNION ALL

  • UNION

  • MINUS

  • INTERSECT

Explicação

Questão 34 de 50

1

_______________ returns all rows selected by either query, including all duplicates.

Selecione uma das seguintes:

  • NTERSECT

  • MINUS

  • UNION

  • UNION ALL

Explicação

Questão 35 de 50

1

Use the __________________operator to return all rows that are common to multiple queries.

Selecione uma das seguintes:

  • UNION

  • UNION ALL

  • MINUS

  • INTERSECT

Explicação

Questão 36 de 50

1

Use the ______________operator to return rows returned by the first query that are not present in the second query.

Selecione uma das seguintes:

  • MINUS

  • INTERSECT

  • UNION

  • UNION ALL

Explicação

Questão 37 de 50

1

Which statement discards all pending data changes

Selecione uma das seguintes:

  • DISCARD

  • SAVEPOINT

  • ROLLBACK

  • COMMIT

Explicação

Questão 38 de 50

1

Which of the following commands removes rows and a table structure?

Selecione uma das seguintes:

  • REMOVE TABLE

  • ALTER TABLE

  • DROP TABLE

  • DELETE TABLE

Explicação

Questão 39 de 50

1

Which of the following commands is a part of the Data Manipulation Language?

Selecione uma das seguintes:

  • TRUNCATE

  • DROP

  • ALTER

  • SELECT

Explicação

Questão 40 de 50

1

Which of the following commands is a part of the Data Definition Language?

Selecione uma das seguintes:

  • DELETE

  • UPDATE

  • SELECT

  • CREATE

Explicação

Questão 41 de 50

1

Which of the following constraints does not exist?

Selecione uma das seguintes:

  • UNIQUE

  • CHECK

  • NOT NULL

  • DEFAULT

Explicação

Questão 42 de 50

1

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)?

Selecione uma das seguintes:

  • 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;

Explicação

Questão 43 de 50

1

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?

Selecione uma das seguintes:

  • 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;

Explicação

Questão 44 de 50

1

What will be the result of the following SQL statement?

Selecione uma das seguintes:

  • 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

Explicação

Questão 45 de 50

1

Which of the following SQL statements will not generate an error?

Selecione uma das seguintes:

  • 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

Explicação

Questão 46 de 50

1

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?

Selecione uma das seguintes:

  • WHERE salary > 5000 AND salary > 18000

  • WHERE salary > 5000 AND salary < 18000

  • WHERE salary < 5000 AND salary > 18000

  • WHERE salary > 5000 OR salary < 18000

Explicação

Questão 47 de 50

1

Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to IT programmers with salary greater than 5000?

Selecione uma das seguintes:

  • 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

Explicação

Questão 48 de 50

1

Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who work in the departments 90 and 60?

Selecione uma das seguintes:

  • 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

Explicação

Questão 49 de 50

1

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?

Selecione uma das seguintes:

  • 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)

Explicação

Questão 50 de 50

1

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’?

Selecione uma das seguintes:

  • 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%'

Explicação