Querying a Database Using Joins and Subqueries

Part 1

Perform a backup of the database using mysqldump before continuing. Do not overwrite the previous backup. There is no need to restore from the backup unless you run into problems in the following parts of the assignment.

Part 2

Add additional tables to the volunteer database to track hours worked per week by the volunteers and amounts of funds raised. Remember to design the tables with appropriate primary and foreign keys so you can relate these records to volunteers in the Person table. Each table should include a column to hold a date to identify the start of the week. Insert data into these tables (at least 10 rows). Submit SQL statements with this assignment. Include a screen shot showing the successful insertion of the rows into the tables.

Part 3

Create 3 queries using SQL JOINs involving two or more tables to display information for all volunteers. Submit the text of the queries and results, in addition to screen shots when you turn in the assignment.

Part 4

Write a brief paper describing the tables added in Part 2. Describe the structure of the tables including the column types and the keys (primary and foreign). Discuss the role of the keys in a SQL JOIN like the ones you have written for Part 3 of this assignment. 

#Querying #Database #Joins #Subqueries

Table of Contents

Calculate your order
Pages (275 words)
Standard price: $0.00

Latest Reviews

Impressed with the sample above? Wait there is more

Related Questions

Survey Versus Questionnaire

Consider that while often regarded as synonymous, surveys and questionnaires are different types of instruments. What are the differences? Using the unit readings as well

Organizational Financial Planning

 You are the emergency manager of Utopia, a mid-sized community that is economically and residentially balanced. The elected officials are considering annexing a section of

Cancer and Women and Mens Health

The American Cancer Society estimates that by the end of 2012, more than 226,000 women will be diagnosed with breast cancer and more than 241,000

New questions

Don't Let Questions or Concerns Hold You Back - Make a Free Inquiry Now!