logo

Crowdly

BASES DE DATOS

Looking for BASES DE DATOS test answers and solutions? Browse our comprehensive collection of verified answers for BASES DE DATOS at campusvirtual.uclm.es.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Dado HUESPED_GUEST(dni_idcard,nombre_name,nacio_born,acompañar_accompany), siendo dni_idcard su primary key y acompañar_accompany una referencia al atributo dni_idcard VARCHAR(9). Así la fila ('9','Huesped_Guest9',NULL,'1') significa que el HUESPED_GUEST con dni_idcard='9' acompañó al HUESPED_GUEST con dni_idcard='1' en una fecha dada. Dadas las siguientes filas en HUESPED_GUEST,

¿Cuántas filas devolvería una sentencia que obtenga los HUESPED_GUEST que han venido al hotel con más de un HUESPED_GUEST? en la misma reserva.

Given HUESPED_GUEST(dni_idcard,nombre_name,nacio_born,acompañar_accompany) with dni_idcard being its primary key and acompañar_accompany being a reference to attribute dni_idcard. So, the row ('9','Huesped_Guest9',NULL,'1') means that the HUESPED_GUEST, with dni_idcard='9' has accompanied to the HUESPED_GUEST with dni_idcard='1' in a date. Given the above rows in HUESPED_GUEST, how many rows will an SQL statement return for  HUESPED_GUEST who has been accompanied by more than one HUESPED_GUEST? in the same reservation.

0%
View this question
Dada la tabla HAB_ROOM(planta_floor,num,tipo_type) siendo su primary key planta_floor y num con num el número de habitación. ¿cuál es la sentencia sql correcta para su creación?

Given HAB_ROOM(planta_floor,num,tipo_type) with its primary key being planta_floor and num with num being the room number. Which is the correct SQL statement for its creation?
0%
0%
View this question
Dada la tabla HAB_ROOM(planta_floor,num,tipo_type) siendo su primary key planta_floor y num, con num el número de habitación. Escribe una sentencia SQL que añada una restriccion al atributo planta_floor para que solo admita valores entre 0 y 9. Recuerda que es necesario completar todos los huecos.

Given HAB_ROOM(planta_floor,num,tipo_type) with its primary key being planta_floor and num, with num being the room number. Write a SQL statement that adds a new constraint to the attribute planta_floor to allow only values between 0 and 9. Remember to fill n all the fields.
View this question
¿qué valores generará la siguiente secuencia?

What are the values generated by the above sequence?
0%
0%
View this question
Escribe la sentencia que añade el atributo acompañar_accompany a la tabla HUESPED_GUEST, como una referencia al atributo dni_idcard VARCHAR(9). Así la fila ('9','Huesped_Guest9',NULL,'1') significa que el HUESPED_GUEST con dni_idcard='9' acompañó al HUESPED_GUEST con dni_idcard='1' en una ocasión.

Write the statement that adds the attribute acompañar_accompany to the table HUESPED_GUEST, referencing the attribute dni_idcard VARCHAR(9) of the same table HUESPED_GUEST. So, the row ('9','Huesped_Guest9',NULL,'1') means that the HUESPED_GUEST, with dni_idcard='9' has accompanied to the HUESPED_GUEST with dni_idcard='1' once.

View this question
Dada la tabla HAB_ROOM(planta_floor,num,tipo_type) siendo su primary key planta_floor y num con num el número de habitación. Escribe una consulta que devuelva el número de habitación mayor y menor por planta_floor, con el orden de los atributos devueltos planta_floor, maximo y mínimo.

Given HAB_ROOM(planta_floor,num,tipo_type) with its primary key being planta_floor and num with num being the room number. Write a statement that returns the lower and upper room number for each planta_floor. The order of the attributed selected must be: planta_floor, maximum, minimum.

View this question
Dado

¿Este usuario JUAN tiene privilegio para crear un índice en el esquema publico?

Given the above statement, does the user JUAN have privileges to create an index in the schema "public"?
0%
View this question

Español:

Indica dónde te has sentado siguiendo el formato: <aula> - <asiento>. Donde el asiento está compuesto de dos números Fila y Columna

Por ejemplo, un alumno que se examina en el aula A1.1 y se siente en la mesa ubicada en la fila 1 y columna 1 deberá escribir: A1.1 - F1:C1

English:

Indicate where you are sitting using the following format: <classroom>-<seat>. Where "seat" is composed by two numbers Row and Column.

For example, a student taking the exam in classroom A.1.1 and sitting at the table located in the first row and the first column must write: A1.1 - R1:C1

View this question
Dada HAB_ROOM(planta_floor,num,tipo_type) siendo su primary key planta_floor y num, con num el número de habitación, ¿Se podría poner por defecto una secuencia para numerar las habitaciones?

Given HAB_ROOM(planta_floor,num,tipo_type) with its primary key being planta_floor and num, with num being the room number, could you set by default a sequence for the numbering of the rooms?
0%
View this question

dado el script de sql siguiente

¿Cuántas filas se añaden a la vista MYVIEW?

Given the above SQL script, how many rows will be inserted into the view MYVIEW?
0%
0%
View this question

Want instant access to all verified answers on campusvirtual.uclm.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!