Search Header Logo

MySQL1

Authored by Albert Luna

Computers

University

Used 3+ times

MySQL1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Con que comando se ingresa a una base de datos existente?

USE

USE DATABASE

SHOW DATABASES

NINGUNA DE LAS ANTERIORES

2.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Para crear una tabla es necesario el comando...

CREAR TABLA

CREATE COMMAND

CREATE TABLE

NINGUNA DE LAS ANTERIORES

3.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Según la imagen como se crea esta tabla...

CREATE TABLE DEPOSITO(deposito varchar(30) primary key, ubicacion varchar(15) primary key);

CREATE TABLE DEPOSITO(deposito varchar(30) , ubicacion varchar(15) primary key);

CREATE TABLE DEPOSITO(deposito varchar(30) , ubicacion varchar(15) );

CREATE TABLE DEPOSITO(deposito varchar(30) primary key, ubicacion varchar(15));

4.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Según la imagen como podemos ingresar datos a la tabla...

INSERT INTO UNIDAD_ALMACENAMIENTO(N_CONS, N_CORR, DES_UBIC) VALUES(12, 34, "caja");

INSERT INTO UNIDAD_ALMACENAMIENTO VALUES(12, 34, "caja");

INSERT INTO UNIDAD_ALMACENAMIENTO(N_CONS, N_CORR, DES_UBIC) VALUES(12, 34, caja);

INSERT INTO UNIDAD_ALMACENAMIENTO(COD_UA, N_CONS, N_CORR, DES_UBIC) VALUES(1, 12, 34, "caja");

5.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Se crearon las tablas Estudiantes y Tipo pero olvidamos relacionarlas; como podemos relacionarlas después de creadas las tablas?

ALTER TABLE TIPO ADD FOREIGN KEY(tipo_estudiante) REFERENCES ESTUDIANTES(tipo_estudiante);

ALTER TABLE ESTUDIANTES ADD FOREIGN KEY(tipo_estudiante) REFERENCES TIPO(tipo_estudiante);

ALTER TABLE ESTUDIANTES MODIFY FOREIGN KEY(tipo_estudiante) REFERENCES TIPO(tipo_estudiante);

ALTER TABLE ESTUDIANTES ADD FOREIGN KEY(id_estudiante) REFERENCES TIPO(tipo_estudiante);

6.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Para eliminar la tabla Cliente debemos realizar el siguiente comando:

ALTER TABLE DROP CLIENTE

DROP TABLE CLIENTE

ALTER TABLE CREATE CLIENTE

CREATE TABLE CLIENTE

7.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Necesitamos agregar el campo fechNacimiento a la tabla Cliente, cual es el comando correcto?

ALTER TABLE CLIENTE ADD fechNacimiento date;

ALTER TABLE CLIENTE ADD fechNacimiento date primary Key;

ALTER TABLE CLIENTE MODIFY fechNacimiento date;

ALTER TABLE CLIENTE ADD fechNacimiento;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers