Test
data
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (50)
1Which symbol do you use if you need to choose all the columns from the table to the result query?
- A*
- B+
- CAll
- D%
2Which is right order of the following clauses?
- ASELECT … FROM … GROUP BY … ORDER BY … WHERE
- BSELECT … WHERE … ORDER BY … GROUP BY
- CSELECT … FROM … WHERE … GROUP BY … ORDER BY
- DSELECT … FROM … WHERE … ORDER BY … GROUP BY
3Which symbol is used to create a substitution variable?
- A*
- B&
- C_
- D%
4Which keyword is used to provide an alias to a column?
- ACOLUMN
- BALIAS
- CIS
- DAS
5Which command is used to view the structure of the table LOCATIONS?
- ADESCRIBE LOCATIONS
- BSELECT * FROM LOCATIONS
- CSHOW STRUCTURE LOCATIONS
- DPRINT LOCATIONS
6Which of the following is a concatenation operator?
- A*
- B+
- C&
- D||
7Which keyword is used to eliminate duplicate rows in the result?
- ADESCRIBE
- BGROUP BY
- CHAVING
- DDISTINCT
8Which of the following operations is an analogue to the CONCAT function?
- A||
- B+
- CLIKE
- DIN
9When using LIKE conditions which symbol is used to denote zero or many characters?
- A*
- B+
- C_
- D%
10When using LIKE conditions which symbol is used to denote one character?
- A*
- B+
- C_
- D%
11Which of the following clauses is used to limit the rows that are retrieved by the query?
- AWHERE
- BFROM
- CORDER BY
- DGROUP BY
12Which of the following clauses is used to sort the rows that are retrieved by the query?
- AWHERE
- BFROM
- CORDER BY
- DGROUP BY
13Which of the following functions extracts a string of determined length?
- ASUBSTR
- BINSTR
- CCONCAT
- DTRIM
14Which of the following functions finds the numeric position of a named character?
- ASUBSTR
- BINSTR
- CCONCAT
- DTRIM
15Which of the following functions joins two strings together?
- ACONCAT
- BTRIM
- CSUBSTR
- DINSTR
16Which of the following functions is not single-row function?
- ASUM
- BUPPER
- CCONCAT
- DROUND
17Which of the following functions is not multiple-row function?
- ATRUNC
- BSUM
- CAVG
- DCOUNT
18FULL OUTER JOIN is used when
- Aeach row of one table must be join with each row of another table
- Beach row of one table must be join with each row of another table even if the tables do not have any columns in common
- Cthe rows from both tables must be displayed even if they do not satisfy the JOIN condition
- Da Cartesian product of the two tables must be displayed
19Queries that return only one row from the inner SELECT statement are called
- ASingle-column subqueries
- BMultiple-column subqueries
- CMultiple-row subqueries
- DSingle-row subqueries
20Queries that return more than one row from the inner SELECT statement are called
- AMultiple-row subqueries
- BSingle-row subqueries
- CMultiple-column subqueries
- DSingle-column subqueries
21The _______operator compares a value to each value returned by a subquery.
- AANY
- BALL
- CNOT
- DSOME
22The ________operator compares a value to every value returned by a subquery.
- AALL
- BANY
- CNOT
- DSOME
23Subqueries 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- AI and III
- BI, II, and III
- CI and II
- DI only
24A SELECT statement that is embedded in a clause of another SELECT statement is called
- Asubquery
- Binner query
- Couter query
- Dmain query
25You can place the subquery in a number of SQL clauses, including the following:
I. WHERE clause
II. HAVING clause
III. FROM clause- AI and III
- BI, II and III
- CI and II
- DI only
26Comparison conditions fall into two classes:
- Asingle-row operators (>, =, >=, <, <>, <=) and multiple-column operators (IN, ANY, ALL)
- Bsingle-column operators (>, =, >=, <, <>, <=) and multiple-column operators (IN, ANY, ALL)
- Cmultiple-row operators (>, =, >=, <, <>, <=) and single-row operators (IN, ANY, ALL)
- Dsingle-row operators (>, =, >=, <, <>, <=) and multiple-row operators (IN, ANY, ALL)
27The subquery generally executes_________, and its output is used to complete the query condition for the main (or_________) query.
- Alast, outer
- Bfirst, inner
- Clast, inner
- Dfirst, outer
28A subquery must be enclosed in_________________.
- Acurly braces
- Bdouble quotes
- Csingle quotes
- Dparentheses
29_________ clause can be used and is required in the subquery to perform Top-N analysis.
- AORDER BY
- BHAVING
- CWHERE
- DGROUP BY
30Which of the following operators is equivalent to the IN operator?
- A< ANY
- B= ALL
- C= ANY
- D> ANY
31Queries containing set operators are called______________.
- Aouter queries
- Bcompound queries
- Csubqueries
- Dinner queries
32The _____________operator returns all rows that are selected by either query eliminating duplicates.
- AINTERSECT
- BUNION
- CMINUS
- DUNION ALL
33Use the ________________operator to return all rows from multiple tables and eliminate any duplicate rows.
- AUNION ALL
- BUNION
- CMINUS
- DINTERSECT
34_______________ returns all rows selected by either query, including all duplicates.
- ANTERSECT
- BMINUS
- CUNION
- DUNION ALL
35Use the __________________operator to return all rows that are common to multiple queries.
- AUNION
- BUNION ALL
- CMINUS
- DINTERSECT
36Use the ______________operator to return rows returned by the first query that are not present in the second query.
- AMINUS
- BINTERSECT
- CUNION
- DUNION ALL
37Which statement discards all pending data changes
- ADISCARD
- BSAVEPOINT
- CROLLBACK
- DCOMMIT
38Which of the following commands removes rows and a table structure?
- AREMOVE TABLE
- BALTER TABLE
- CDROP TABLE
- DDELETE TABLE
39Which of the following commands is a part of the Data Manipulation Language?
- ATRUNCATE
- BDROP
- CALTER
- DSELECT
40Which of the following commands is a part of the Data Definition Language?
- ADELETE
- BUPDATE
- CSELECT
- DCREATE
41Which of the following constraints does not exist?
- AUNIQUE
- BCHECK
- CNOT NULL
- DDEFAULT
42Consider 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)?
- ASELECT last_name AS 'Employee', hire_date AS 'Hire Date' FROM employees;
- BSELECT last_name "Employee", hire_date "Hire Date" FROM employees;
- CSELECT last_name Employee, hire_date Hire Date FROM employees;
- DSELECT last_name AS Employee, hire_date AS Hire Date FROM employees;
43Consider 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?
- ASELECT last_name || ' has been working since ' || hire_date Employee Information FROM employees;
- BSELECT last_name || ' has been working since ' || hire_date 'Employee Information' FROM employees;
- CSELECT last_name || " has been working since " || hire_date "Employee Information" FROM employees;
- DSELECT last_name || ' has been working since ' || hire_date "Employee Information" FROM employees;
44What will be the result of the following SQL statement?
- Ahe number of employees within each department will be displayed
- BAn error will occur since the GROUP BY clause is missing
- CThe unique department ids will be displayed
- DThe number of departments will be displayed
45Which of the following SQL statements will not generate an error?
- ASELECT department_id Dep, COUNT(last_name) Num FROM employees GROUP BY department_id HAVING Num > 5
- BSELECT department_id Dep, COUNT(last_name) FROM employees GROUP BY Dep
- CSELECT last_name Name FROM employees WHERE Name like 'K%'
- DSELECT last_name Name FROM employees ORDER BY Name
46Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those whose salary is greater than 5000 but less than 18000?
- AWHERE salary > 5000 AND salary > 18000
- BWHERE salary > 5000 AND salary < 18000
- CWHERE salary < 5000 AND salary > 18000
- DWHERE salary > 5000 OR salary < 18000
47Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to IT programmers with salary greater than 5000?
- AWHERE salary > 5000 AND job_id = 'IT_PROG'
- BWHERE salary > 5000 OR job_id = 'IT_PROG'
- CWHERE salary > 5000 AND job_id = "IT_PROG"
- DWHERE salary > 5000 AND job_id = IT_PROG
48Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who work in the departments 90 and 60?
- AWHERE department_id BETWEEN 60 AND 90
- BWHERE department_id BETWEEN 90 AND 60
- CWHERE department_id = 90 OR department_id = 60
- DWHERE department_id = 90 AND department_id = 60
49Consider the EMPLOYEES table. Which condition in the WHERE clause limit the employees to those who do not work in the departments 90 and 60?
- AWHERE department_id = 90 OR department_id = 60
- BWHERE department_id NOT IN (90, 60)
- CWHERE department_id = 90 AND department_id = 60
- DWHERE department_id IN (90, 60)
50Consider 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’?
- AWHERE last_name LIKE 'K%' and first_name LIKE 'K%'
- BWHERE last_name LIKE 'K_' and first_name LIKE 'K_'
- CWHERE last_name = 'K%' and first_name = 'K%'
- DWHERE last_name and first_name = 'K%'
Información
- Descripción
- test
- Autor
- Алмат Мейржан
- Idioma
- English
- Visitas
- 242
- Valoración
- Aún sin valoraciones Valora este test