100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Otro

INF3707 Assignment 1 solution 2025

Puntuación
5.0
(1)
Vendido
9
Páginas
6
Subido en
15-03-2025
Escrito en
2024/2025

Question 1 First things first, before you start with your assignment, make sure that your MySQL server and MySQL Workbench are installed and working. The prescribed book provides the procedures for doing this in appendix A (Windows) and B (macOS). The appendices were uploaded to Additional Resources on myUnisa. Secondly, on myUnisa, under Additional Resources, download the folder mgs_ex_starts, it contains some script files that you need for this assignment and other assignments, 2, 3 and 4. In the mgs_ex_starts folder, use the script file create_my_guitar_ to create the My Guitar Shop database. After running the scripts, the Output window displays messages that indicate whether the script was executed successfully. Take the screenshot, and paste it on your answer sheet to show that the database is installed correctly. The screenshot should show the My Guitar Shop database schema on your Workbench. View the data contained in the Categories table. To view the Categories table data, run a select query. Take the screenshot of the query and the output, and paste it on your answer sheet. Navigate through the database objects and view the column definition for the Categories table. Take the screenshot of the column definition and paste it on your answer sheet. Write a SELECT statement that returns four columns from the Products table: product_code, product_name, list_price, and discount_percent. Add an ORDER BY clause to this statement to sort the result by list_price in descending order. Take the screenshot of the query and the output and paste it on your answer sheet. Write a SELECT statement that returns the product_name and list_price columns from the Products table. Return one row for each product that has the same list price as another product. Hint: Use a self-join to check that the product_id columns aren't equal but the list_price columns are equal. Order the output by the product_name column. Take the screenshot of the query and the output and paste on your answer sheet

Mostrar más Leer menos
Institución
Grado









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

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
15 de marzo de 2025
Número de páginas
6
Escrito en
2024/2025
Tipo
Otro
Personaje
Desconocido

Temas

Vista previa del contenido

INF3707 ASSIGNMENT 1 2025
SOLUTION

, Question 1
First things first, before you start with your assignment, make sure that your MySQL
server and MySQL Workbench are installed and working. The prescribed book provides
the procedures for doing this in appendix A (Windows) and B (macOS). The appendices
were uploaded to Additional Resources on myUnisa. Secondly, on myUnisa, under
Additional Resources, download the folder mgs_ex_starts, it contains some script files
that you need for this assignment and other assignments, 2, 3 and 4. In the
mgs_ex_starts folder, use the script file create_my_guitar_shop.sql to create the My
Guitar Shop database. After running the scripts, the Output window displays messages
that indicate whether the script was executed successfully. Take the screenshot, and
paste it on your answer sheet to show that the database is installed correctly. The
screenshot should show the My Guitar Shop database schema on your Workbench. (10
marks)




Explanation of what the script does:
This script creates the my_guitar_shop database in these steps:
1.​ Database Initialization
Drops any existing database named my_guitar_shop to start fresh.
Creates a new database my_guitar_shop and selects it for use.
2.​ Table Creation with the following tables:
Categories: Stores product categories (e.g., Guitars, Basses).
Products: Lists items for sale, linked to categories via category_id.
Customers: Contains customer details, including email and passwords (hashed).
Addresses: Stores customer addresses, linked to customers.
$6.15
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Reseñas de compradores verificados

Se muestran los comentarios
8 meses hace

5.0

1 reseñas

5
1
4
0
3
0
2
0
1
0
Reseñas confiables sobre Stuvia

Todas las reseñas las realizan usuarios reales de Stuvia después de compras verificadas.

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.
CrystalIndigo University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
486
Miembro desde
5 año
Número de seguidores
226
Documentos
73
Última venta
2 meses hace
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

51 reseñas

5
27
4
13
3
6
2
1
1
4

Recientemente visto por ti

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