Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

PRUEBA 2

para la 2da prueba de testing

QuestionAnswer
¿Qué es una base de datos? Un almacén organizado de información que permite guardar, consultar y manipular datos de forma eficiente.
¿Qué es un DBMS (SGBD)? Software que define, crea, mantiene y manipula bases de datos, asegurando integridad y acceso eficiente.
Ejemplos de SGBD relacionales MySQL, SQL Server, Oracle, PostgreSQL, MariaDB, SQLite, Access.
Ejemplos de bases de datos no relacionales MongoDB, Cassandra, Firebase, DynamoDB.
¿Qué es el modelo relacional? Paradigma basado en tablas con filas (tuplas) y columnas (atributos).
¿Qué es una tupla? Cada fila de una tabla, representa un registro.
¿Qué es un atributo? Cada columna de una tabla, representa una característica de la entidad.
¿Qué es el MER (Modelo Entidad-Relación)? Método gráfico para diseñar una base de datos, mostrando entidades, atributos y relaciones.
¿Qué son claves primarias (PK)? Campo único que identifica de manera exclusiva a cada registro en una tabla.
¿Qué son claves foráneas (FK)? Campo que referencia a la clave primaria de otra tabla para establecer relaciones.
¿Qué es SQL? Lenguaje estructurado de consultas para interactuar con bases de datos relacionales.
¿Qué significa DML? Data Manipulation Language: SELECT, INSERT, UPDATE, DELETE.
¿Qué significa DDL? Data Definition Language: CREATE, ALTER, DROP, TRUNCATE.
¿Qué significa DCL? Data Control Language: GRANT, REVOKE.
¿Qué significa TCL? Transaction Control Language: COMMIT, ROLLBACK, SAVEPOINT.
Sentencia SQL para seleccionar todos los datos SELECT * FROM tabla
Sentencia SQL para seleccionar columnas específicas SELECT columna1, columna2 FROM tabla;
Sentencia SQL para filtrar filas SELECT * FROM tabla WHERE condición
Sentencia SQL para ordenar filas SELECT * FROM tabla ORDER BY columna ASC|DESC
Sentencia SQL para valores distintos SELECT DISTINCT columna FROM tabla
¿Qué hace INSERT? Inserta registros en una tabla.
Ejemplo de INSERT INSERT INTO Personas (Codigo, Nombre) VALUES (1, 'Juan');
¿Qué hace UPDATE? Modifica valores de registros existentes.
Ejemplo de UPDATE UPDATE Personas SET Nombre = 'Carlos' WHERE Codigo = 1
¿Qué hace DELETE? Elimina registros de una tabla.
Ejemplo de DELETE DELETE FROM Personas WHERE Codigo = 1
¿Qué pasa si se ejecuta DELETE sin WHERE? Se eliminan todas las filas de la tabla.
¿Qué pasa si se ejecuta UPDATE sin WHERE? Se modifican todas las filas de la tabla.
¿Diferencia entre DELETE y TRUNCATE? DELETE elimina fila por fila, TRUNCATE vacía toda la tabla sin opción de filtro.
¿Qué es normalización? Proceso para organizar tablas y minimizar redundancia de datos.
Objetivo de la normalización Evitar anomalías de actualización y mejorar consistencia.
Primera Forma Normal (1FN) Todos los atributos son atómicos e indivisibles.
Segunda Forma Normal (2FN) Cumple 1FN y no hay dependencias parciales en claves compuestas.
Tercera Forma Normal (3FN) Cumple 2FN y no hay dependencias transitivas.
¿Se puede lograr 2FN sin 1FN? No.
¿Qué evita la normalización? Redundancia y anomalías (inserción, borrado, actualización).
1FN: todas las columnas tienen valores atómicos. Verdadero
Una tabla puede estar en 2FN sin estar en 1FN. Falso
Las columnas no PK deben depender entre sí para evitar transitividad. Falso
WHERE filtra filas en una consulta. Verdadero
Los operadores de comparación incluyen =, >, <, >=, <=, <>. Verdadero
DELETE FROM Laptop WHERE screen < 12 elimina laptops con pantalla < 12.
Se puede ordenar por dos columnas. Verdadero
SELECT model, speed, hd FROM PC WHERE hd < 20; obtiene solo hd=10 o hd=20. Falso
Crear tabla Productos con código, nombre, precio y fecha_alta CREATE TABLE Productos (codigo INT, nombre VARCHAR(50), precio DECIMAL(10,2), fecha_alta DATE);
Insertar 3 productos en la tabla Productos INSERT INTO Productos VALUES (1, 'Silla roja', 25, '2025-09-01'), (2, 'Mesa madera', 80, '2025-09-02'), (3, 'Silla azul', 22.5, '2025-09-03');
Consultar todos los productos SELECT * FROM Productos
Ver productos cuyo nombre empiece por 'S' SELECT * FROM Productos WHERE nombre LIKE 'S%'
Ver nombre y precio de productos con precio > 22 SELECT nombre, precio FROM Productos WHERE precio > 22;
Agregar columna categoría a la tabla ALTER TABLE Productos ADD categoria VARCHAR(30)
Dar valor 'utensilio' a todas las categorías UPDATE Productos SET categoria = 'utensilio'
Cambiar categoría a productos que empiecen por 'Silla' UPDATE Productos SET categoria = 'silla' WHERE nombre LIKE 'Silla%'
Ver categorías sin duplicados SELECT DISTINCT categoria FROM Productos
Contar productos por categoría SELECT categoria, COUNT(*) FROM Productos GROUP BY categoria;
Created by: user-1986516
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards