• ¿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 13 páginas
Examen

Snhu Dad 220 Test Paper Questions And Solutions 2025/2026 Rated A+

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

SNHU DAD 220 TEST PAPER QUESTIONS AND SOLUTIONS 2025/2026 RATED A+

Vista previa del contenido

SNHU DAD 220 TEST PAPER QUESTIONS AND SOLUTIONS
2025/2026 RATED A+
✔✔What does the WHERE command do? - ✔✔Is a command used to specify a
condition for a selecting row.

Ex:
SELECT Expression1, Expression2
FROM TableName,
WHERE Condition;

✔✔What is a primary key? - ✔✔A column or group there of to identify a row.

Usually the first column on the left or is indicated by a solid dot.

✔✔True or False: Can a primary key be UNIQUE or NOT NULL? - ✔✔True.

✔✔What are the two types of primary keys? - ✔✔Simple primary keys and Composite
primary keys.

✔✔What is a simple primary key? - ✔✔Consist of one single column.

Ex:
CREATE TABLE Employee (
ID SMALLINT UNSIGNED,
Name VARCHAR(60),
Salary DECIMAL(7,2),
PRIMARY KEY (ID)
);

✔✔What is the composite primary key? - ✔✔Consists of multiple different columns.
Usually denoted by parenthesis (ColumnA, ColumnB)

Ex:
CREATE TABLE Employee (
ID SMALLINT UNSIGNED,
Name VARCHAR(60),
Salary DECIMAL(7,2),
PRIMARY KEY (ID, Number)
);

✔✔What are the 3 rules that a composite primary key must follow? - ✔✔1. UNIQUE (No
values can be repeated)

2. NOT NULL (No column of a composite key can contain a null value)

, 3. Minimal (Primary keys are already unique, but once deleted the simple or composite
is no longer unique)

✔✔What is an auto-increment column? - ✔✔A numeric column automatically assigned
a number when the row is created.

Ex:
CREATE TABLE Employee (
ID SMALLINT UNSIGNED AUTO_INCREMENT,
Name VARCHAR(60),
Salary DECIMAL(7,2),
PRIMARY KEY (ID)
);

✔✔What is a foreign key? - ✔✔A column or group of columns that refer to a primary
key.

Ex:
CREATE TABLE Employee (
ID SMALLINT UNSIGNED,
Name VARCHAR(60),
Salary DECIMAL(7,2),
PRIMARY KEY (ID)
FOREIGN KEY (Salary) REFERENCES Department(Salary);
);

✔✔What is referential integrity? - ✔✔Requires foregin key values to be NULL or match
some value of the referenced primary key.

✔✔What is fully null? - ✔✔A foreign key, simple, or composite, in which all columns are
null.

✔✔What are the 4 ways the referential integrity can be violated? - ✔✔1. A primary Key
is updated.
2. A foreign key is updated.
3. A row containing a primary key is deleted.
4. A row containing a foreign key is inserted.

✔✔What are the 4 referential integrity actions? - ✔✔1. RESTRICT
2. SET NULL
3. SET DEFAULT
4. CASCADE

Información del documento

Subido en
30 de junio de 2025
Número de páginas
13
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.49

¿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
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
sterlingscoress
4.0
(2)
Vendido
22
Seguidores
2
Artículos
8732
Última venta
2 meses 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