Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Database Management Systems - 1 CS561 Midterm Exam

Puntuación
-
Vendido
-
Páginas
5
Grado
A+
Subido en
31-03-2023
Escrito en
2022/2023

Database Management Systems - 1 CS561 Midterm Exam 1. a) (3 points) Construct an instance of the skill table that contains a violation of the table's key constraint - or explain why it is impos sible to construct such an instance. b) (3 points) Construct an instance of the product table that contains a violation of the table's key constraint - or explain why it is impossible to construct such an instance c) (4 points) Construct instances of both the skill and product tables that contain violations of all the relevant foreign key reference constraints -- or explain why it is impossible to construct such instances 2. (10 points) Write the following query in the pseudo-code used in the lectures: Find every division (of any company) that has at least two subdivisions 3. (10 points) Write the following query in unextended relational algebra: Find every person who works for at least two different divisions of the same company 4. (10 points) Write the following query in extended relational algebra: Find the number of products manufactured by the company with govt_id . (10 points) Write the following query in SQL without any embedded subqueries: Find every person who works for a company that has at least two divisions each of which has at least two sites. 6. Consider the following query: Find every company that employs at least one person who has no skills at any of the products that the company manufactures. a) (10 points) Write the query in SQL using an embedded query, but without using any of the embedding operators (IN, NOT IN, EXISTS, NOT EXISTS). b) (10 points) Write the query in SQL with an embedded query that uses either IN or NOT IN, whichever is appropriate. (You may not use EXISTS or NOT EXISTS). c) (10 points) Write the query in SQL using an embedded query that uses either EXISTS or NOT EXISTS, whichever is appropriate. (You may not use IN or NOT IN). 7. (10 points) Write the following query in SQL using both a GROUP BY and a HAVING clause. (You may not use any of the following operators: IN, NOT IN, EXISTS, NOT EXISTS, rel op ALL, rel op ANY, rel op SOME) 8. (10 points) Write the query of Question 7 in SQL using a GROUP BY but no HAVING clause. (You may not use any of the following operators: IN, NOT IN, EXISTS, NOT EXISTS, rel op ALL, rel op ANY, rel op SOME)

Mostrar más Leer menos
Institución
Database Management Systems - 1 CS561
Grado
Database Management Systems - 1 CS561









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Database Management Systems - 1 CS561
Grado
Database Management Systems - 1 CS561

Información del documento

Subido en
31 de marzo de 2023
Número de páginas
5
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$13.49
Accede al documento completo:

¿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

Conoce al vendedor

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.
AllAcademic Other
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
67
Miembro desde
6 año
Número de seguidores
39
Documentos
548
Última venta
1 mes hace
All the academic resources you need.

All the academic resources you need.

3.7

7 reseñas

5
3
4
1
3
2
2
0
1
1

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