Daniel A
Quiz by , created more than 1 year ago

Quiz on CUESTIONARIO DEL SEMESTRE, created by Daniel A on 29/04/2016.

16
0
0
No tags specified
Daniel A
Created by Daniel A about 8 years ago
Close

CUESTIONARIO DEL SEMESTRE

Question 1 of 20

1

Se pretende crear la tabla alumno con los atributos id y nombre con que sintaxis se completa correctamente el siguiente Query?
CREATE TABLE ________ (id_alumno INT _____________ NOT NULL, ________ VARCHAR(50) NOT NULL );

Select one of the following:

  • alumnos, PRIMARY KEY, nombre

  • PRIMARY KEY, alumnos, nombre

  • nombre, PRIMARY KEY, alumnos

Explanation

Question 2 of 20

1

Que es una consulta?

Select one of the following:

  • Una pregunta

  • Una consulta es una solicitud de datos almacenados

  • Una forma de administrar SQL

Explanation

Question 3 of 20

1

Son algunas de las funciones agregadas?

Select one of the following:

  • SELECT, UPDATE, DROP

  • ALTER TABLE

  • GROUP BY,AVG,COUNT,MAX,MIN

Explanation

Question 4 of 20

1

Cual es la sintaxis correcta para eliminar la tabla alumno?

Select one of the following:

  • DROP TABLE alumno;

  • DROP TABLE alumno

  • DROP alumno;

Explanation

Question 5 of 20

1

Que es una transacción?

Select one of the following:

  • Es la forma de sacar información de la base.

  • Método mediante el cual mandamos llamar funciones en la base de datos.

  • Una transacción es una unidad de trabajo compuesta por diversas tareas, cuyo resultado final debe ser que se ejecuten todas o ninguna de ellas.

Explanation

Question 6 of 20

1

Cuales de estos comandos se refieren a transacciones?

Select one of the following:

  • INIT,STARTER,CHANGE

  • BEGIN,COMMIT,ROLLBACK.

  • AVG,COUNT,MAX

Explanation

Question 7 of 20

1

En una transacción para que podemos utilizar un SAVEPOINT?

Select one of the following:

  • Es un respaldo que se realiza en todas las bases de datos de POSTGRESQL

  • Es un punto clave en la referencia de la base de datos nos sirve para tener ubicación de determinada tabla

  • Es un punto de recuperación sin afectar las transacciones realizadas antes de aplicarlo en caso de restaurar.

Explanation

Question 8 of 20

1

Con que instrucción podemos restaurar un SAVEPOINT?

Select one of the following:

  • ROLLBACK

  • BEGIN

  • COMMIT

Explanation

Question 9 of 20

1

Si creamos un SAVEPOINT llamado “recuperacion” cual seria el metodo para resgresar a ese punto?

Select one of the following:

  • ROLLBACK TO recuperacion;

  • ROLLBACK recuperacion;

  • RROLLBACK recuperacion

Explanation

Question 10 of 20

1

Como se llama al encargado de la base de datos?

Select one of the following:

  • Administrador de Base de datos (DBA)

  • Supervisor

  • Administrador

Explanation

Question 11 of 20

1

Cual es la sintaxis correcta para crear el usuario supervisor con contraseña supervisoren la base de datos?

Select one of the following:

  • CREATE USER SUPERVISOR PASSWORD ‘SUPERVISOR’

  • CREATE USER SUPERVISOR PASSWORD ‘SUPERVISOR’;

  • CREATE USER SUPERVISOR;

Explanation

Question 12 of 20

1

Completa la sintaxis para cambiar la contraseña al usuario supervisor por la contraseña “instala”. ALTER ROLE ___________ WITH PASSWORD __________;

Select one of the following:

  • instala,SUPERVISOR

  • SUPERVISOR,instala

  • SUPERVISOR,SUPERVISOR

Explanation

Question 13 of 20

1

Cual es la sintaxis correcta para borrar al usuario SUPERVISOR

Select one of the following:

  • DROP USER SUPERVISOR;

  • DROP SUPERVISOR;

  • DROP USER SUPERVISOR

Explanation

Question 14 of 20

1

Cual es la sintaxis correcta para crear un grupo llamado administradores?

Select one of the following:

  • CREATE ADMINISTRADORES;

  • CREATE GROUP ADMINISTRADORES

  • CREATE GROUP ADMINISTRADORES;

Explanation

Question 15 of 20

1

Cual es el comando para listar los usuarios registrados en la base de datos?

Select one of the following:

  • SELECT * FROM pg_user;

  • SELECT * FROM user;

  • SELECT * FROM pg_user

Explanation

Question 16 of 20

1

Completa la sintaxis correcta para dar privilegios al usuario SUPERVISOR en la tabla clientes
GRANT ALL ___________ ON TABLE _________ to SUPERVISOR;

Select one of the following:

  • cliente, PRIVILEGES

  • SCHEMA, PRIVILEGES

  • PRIVILEGES,cliente

Explanation

Question 17 of 20

1

Cual es la sintaxis para crear un lenguaje en una funcion para trigger?

Select one of the following:

  • LANGUAGE psql;

  • LANGUAGE plpgsql;

  • LANGUAGE sql;

Explanation

Question 18 of 20

1

Son objetos que se asocian con tablas y se lamacenan en la base de datos?

Select one of the following:

  • QUERY

  • Herencia

  • Triggers

Explanation

Question 19 of 20

1

Son eventos que ejecuta un Trigger?

Select one of the following:

  • COUNT,MAX,AVG

  • INSERT,UPDATE,DELETE

  • ALTER,DROP,CREATE

Explanation

Question 20 of 20

1

COMPLETA LA SINTAXIS DEL SIGUIENTE TRIGGER:
CREATE ________ insertar_auditoria AFTER DELETE
ON clientes FOR _________
EXECUTE ____________ insertar_trigger();

Select one of the following:

  • EACH ROW, TRIGGER, PROCEDURE

  • TRIGGER, EACH ROW, PROCEDURE

  • PROCEDURE, EACH ROW, TRIGGER

Explanation