• ¿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 3 fuera de 30 páginas
Examen

WGU D521 2

Document preview thumbnail
Vista previa 3 fuera de 30 páginas

Exam of 30 pages for the course wgu d521 at wgu d521 (WGU D521 2)

Vista previa del contenido

1. Which SQL function is used to calculate the total number of rows in a table?

A. COUNT()

B. SUM()

C. AVG()

D. MAX()

Answer: A) COUNT()

Rationale: The COUNT() function is used to return the number of rows in a table

or a result set.




2. What is the purpose of the HAVING clause in SQL?

A. To filter records before grouping

B. To filter records after grouping

C. To limit the number of rows returned

D. To sort the result set

Answer: B) To filter records after grouping

,Rationale: The HAVING clause is used to filter groups of records created by the

GROUP BY clause, whereas the WHERE clause filters rows before grouping.




3. What is the difference between a JOIN and a UNION in SQL?

A. JOIN combines rows from two tables based on a related column; UNION

combines the result sets of two queries

B. JOIN combines columns from two tables; UNION combines rows from two

queries

C. JOIN creates a new table; UNION deletes duplicate rows

D. JOIN can only be used on primary keys; UNION can only be used on foreign

keys

Answer: A) JOIN combines rows from two tables based on a related column;

UNION combines the result sets of two queries

Rationale: A JOIN is used to combine rows from two or more tables based on a

related column, while UNION combines results from multiple queries into a single

result set.




4. Which SQL statement is used to remove a table from the database?

A. DELETE

, B. DROP

C. REMOVE

D. TRUNCATE

Answer: B) DROP

Rationale: The DROP command is used to completely remove a table from the

database, including its structure and data.




5. What is the primary purpose of an Entity-Relationship Diagram (ERD)?

A. To define the data types of fields in a database

B. To visually represent the structure of a database and relationships between

entities

C. To generate SQL queries

D. To store database configuration settings

Answer: B) To visually represent the structure of a database and relationships

between entities

Rationale: ERDs help to model the logical structure of a database, showing

entities, attributes, and the relationships between them.

Información del documento

Subido en
17 de marzo de 2025
Número de páginas
30
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.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