• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 15 páginas
Examen

Dbms130 - S09-S16

Document preview thumbnail
Vista previa 2 fuera de 15 páginas

Exam of 15 pages for the course DBMS130 - S09-S16 at DBMS130 - S09-S16 (DBMS130 - S09-S16)

Vista previa del contenido

DBMS130 - S09-S16 Q&A
How many records are returned by the following query?


SELECT SUM(SALARY), DEPARTMENT_ID FROM EMPLOYEES

GROUP BY DEPARTMENT_ID;



Assume there are 11 nonnull and 1 null unique DEPARTMENT_ID values. All records
have a nonnull SALARY value. - (correct answer)12



What value is returned after executing the following statement?



SELECT AVG(NVL(SALARY,100)) FROM EMPLOYEES;



Assume there are ten employee records and each contains a SALARY value of 100,
except for one employee, who has a null value in the SALARY field. - (correct
answer)100



What result is returned by the following statement? SELECT COUNT(*) FROM DUAL; -
(correct answer)1



How many rows of data are returned after executing the following statement?


SELECT DEPT_ID, SUM(SALARY) FROM EMP

GROUP BY DEPT_ID HAVING SUM(NVL(SALARY,100)) > 400;



Assume the EMP table has ten rows and each contains a SALARY value of 100, except
for one, which has a null value in the SALARY field. The first and second five rows have
DEPT_ID values of 10 and 20, respectively. - (correct answer)2 rows

, Which values are returned after executing the following statement?



SELECT COUNT(*), COUNT(SALARY) FROM EMPLOYEES;



Assume there are 10 employee records and each contains a SALARY value of 100,
except for 1, which has a null value in their SALARY field. - (correct answer)10 and 9



Which of the following statements are syntactically correct? - (correct answer)SELECT *
FROM EMPLOYEES E JOIN DEPARTMENTS D USING (DEPARTMENT_ID);



Choose one correct statement regarding the following query:



SELECT * FROM EMPLOYEES E

JOIN DEPARTMENTS D ON (D.DEPARTMENT_ID=E.DEPARTMENT_ID) JOIN

LOCATIONS L ON (L.LOCATION_ID =D.LOCATION_ID); - (correct answer)The
JOIN...ON clause may be used for joins between multiple tables.



If you precede the subquery by the ____ operator, the condition is true only if it satisfies
all values produced by the subquery. - (correct answer)ALL



You create an alias by typing the name of the table, pressing the ____, and then typing
the name of the alias. - (correct answer)Spacebar


What are the distinguishing characteristics of a scalar subquery? - (correct answer)A
scalar subquery returns one row.

A scalar subquery returns one column.



Which of the following statements are equivalent? - (correct answer)select employee_id
from employees where salary < all (select salary from employees where
department_id= 10);

Información del documento

Subido en
6 de noviembre de 2024
Número de páginas
15
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$9.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
douglasmugwe82
5.0
(1)
Vendido
2
Seguidores
0
Artículos
4215
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes