Introduction to Database
DQ.1
Explain the purpose of a primary key. Could the “dept_name” and “location” columns of the department table be used as a primary key? Explain.
DQ.2
SQL queries allow databases to access information quickly. Provide three examples of basic SQL SELECT queries from the Sales.Store table in the AdventureWorks Database and explain how you can best use them in a business setting.
DQ.3
Explain the usage of the SELECT statement in a query and where the WHERE clause might apply. Explain your rationale.
DQ.4
Differentiate among the types of SQL Server statements listed below and provide a scenario in which use of each type would be appropriate.
1. SELECT
2. INSERT
3. UPDATE
4. DELETE
DQ.5
Data integrity refers to the process of maintaining and assuring the accuracy of the data within a database. What “built-in” architecture techniques promote data integrity? Why is this important? Provide examples to justify your opinions.
DQ.6
Why are entity relationship diagrams (ERDs) important in database design, even in smaller databases? Outside of the IT department, what benefits does a company gain from having this information available? Provide specific examples.
DQ.7
In the Topic Materials, you learned about locking and blocking. Using these resources, explain the difference between locking and blocking, and provide an example of each. Discuss the best practices to use when troubleshooting database-locking behaviors by explaining two of them in detail. Include relevant examples to illustrate your main ideas.
DQ.8
What is the best way to analyze database indexes so that they run in an optimal fashion? Provide examples to support your analysis.
DQ.9
Describe the best way to utilize a stored procedure in a relational database. Explain your rationale.
DQ10.
Nonidentifying relationships are common within databases. Explain how nonidentifying relationships differ from identifying relationships. Provide three real-world examples of nonidentifying relationships that could occur within a database.
DQ.11
What are the pros and cons of pessimistic concurrency in relation to optimistic concurrency? What are the pros and cons of explicit transactions in relation to implicit transactions and vice versa? Support your rationale.
DQ12.
Why are the COMMIT and ROLLBACK statements necessary? Explain their relationship to one of the transaction properties. Explain all four possible concurrency problems and provide examples of each.
DQ.13
Many problems arise from poor database design. Discuss two potential consequences that can result from a poorly designed database. Explain how these issues can be prevented and corrected if they do occur. Provide real-world examples to illustrate your main ideas.
DQ.14
What are the pros and cons of using stored procedures (SPROCS) or functions? Provide an example of each to illustrate your ideas.
DQ15.
What is the importance of the master system database? Discuss the pros and cons of full database backup. Discuss all components of the database engine in relation to data availability, and their benefits and disadvantages in relation to server redundancy, database redundancy, and file redundancy. Provide examples to justify your ideas.
DQ.16
Entities within databases take on many forms. Provide three examples of entities you may encounter and summarize the attributes of each. Explain why entities are important and provide examples to illustrate your ideas.