Skip to content

Cod265/database-wk-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Assignment: Database Indexing and Optimization

🎯 Learning Objectives

  • βž• Add indexes to tables and analyze their impact on query performance.
  • πŸ‘€ Create user accounts and assign roles in a sample database.
  • πŸ”’ Explore database security measures and access control for data protection.
  • πŸ’» Practice advanced SQL queries based on real-world scenarios.

πŸ“‹ What You'll Need

  • πŸ’» A computer with internet access.
  • ✍️ A code editor (e.g., Visual Studio Code).
  • πŸ–₯️ MySQL Workbench or another SQL database environment.

πŸ“ Submission Instructions

πŸ“‚ Write all your SQL queries in the answers.sql file.
✍️ Answer each question concisely and make sure your queries are clear and correct.
πŸ—£οΈ Structure your responses clearly, and use comments if necessary to explain your approach.


πŸ“š Assignment Questions

Question 1 πŸ—‘οΈ

Write an SQL query to drop an index named IdxPhone from customers table.


Question 2 πŸ‘€

Write an SQL query to create a user named bob with the password 'S$cu3r3!' , restricted to the localhost hostname.


Question 3 πŸ”‘

Write an SQL query to grant the INSERT privilege to the user bob on the salesDB database.


Question 4 πŸ”

Write an SQL query to change the password for the user bob to 'P$55!23'


Good luck πŸš€

About

Week 5 Database Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published