For these assignments, use mysqldump() to submit a database export file or submit written work as a single document file.
Database Design
Come up with a small database you would like to develop. Compile a list of fields and follow the process of normalization to create a data model with at least 5 tables that includes primary and foreign keys, and at least one table that is a many-to-many relationship.
Create a document that depicts your table structure and fields, identifies primary and foreign keys, and the connections between your tables.
Database Development
Using your database design from above, create the database using your system’s command prompt. Create a text file that includes all of the commands you used to create your database as well as inserts for 3 full records in each table. Submit this file and a mysqldump of your actual completed database.
Database Interaction
Create queries that will interact with your database to complete the following:
- Display one of your tables without including foreign keys
- Joins two (or more) of your tables to show a complete record
- Generates information about your records that is not stored in your database
- Updates record(s) in a table to a new value
Submit your queries and the mysqldump file for your database.
Discussion / Written Response
- Describe the three types of relationships between data and how to satisfy them in relational databases.
- Describe the first three forms of normalization.
- Describe the differences between flat file and structured query databases.
- Describe the differences between SQL and NoSQL databases.
- Describe when the different database types we examined are most useful.
Questions
- What does SQL stand for?
- Standard Query Linguistics
- Structured Query Language
- Strict Query Language
- None of the above
- Which of these is used to retrieve information from a database?
- Get
- Fetch
- Select
- Find
- Which of these commands would get the name column from a Persons table?
- Select name from Persons;
- Get persons.name
- Select persons.name
- Get name from Persons
- Which of the following select records where the name fields starts with an A?
- Select * from Persons where name=‘a’
- Select * from Persons where name like “a%”
- Select * from Persons where name like “%a”
- None of these
- Which of the following is the keyword used to sort results?
- Order By
- Sort By
- Filter By
- Ascending
- Which of the following is used to find the number of records?
- Total()
- Count()
- Sum()
- None of these
- Eliminating multiple identical columns from a table is which normalization?
- First
- Second
- Third
- Fourth
- Eliminating repeated values from a table is which normalization?
- First
- Second
- Third
- Fourth
- Ensuring no values are repeated in a database is which of the following?
- First
- Second
- Third
- Fourth
- Ensuring all fields relate directly to the table they are in is which normalization?
- First
- Second
- Third
- Fourth
- The CRUD actions are:
- Compose, Read, Update, Delete
- Create, Read, Update, Destroy
- Create, Read, Update, Delete
- Copy, Read, Update, Drop
- Including all of the records in the first table of a join is done using:
- Join all
- Left join
- Right join
- None of these
- Queries can be placed inside of other queries.
- True
- False
- Which of the following is used to remove a record from a table?
- Delete from
- Drop from
- Destroy
- MySQL requires which of the following to run?
- Windows
- Linux
- Apple
- Any of these