Create a relationship between two tables

Assignment Help Database Management System
Reference no: EM133164837

Assignment: Creating the Babbage Bookkeeping Database

Problem: Babbage Bookkeeping is a local company that provides bookkeeping services to several small businesses in the area. The database consists of two tables.

1. The Client table: contains information on the businesses that use Babbage's services.

2. The Bookkeeper table: contains information on the bookkeeper assigned to the business.

Instructions: Perform the following tasks:

1. Create a new database to store all the objects related to the bookkeeping data.

2. Save this database. The database must be named with Your Last Name + First Name + Assignment6. For example, if your name is John Smith, the file must be named: SmithJohnAssignment6. 5% will be deducted for the wrong filename.

3. Create the Client table using the structure and data shown in the table below:Save the table as "Client Table."

ClientTable

Field Name

Data Type

Field Size

Primary

Key

Description

Client Number

Short Text

3

Yes

Client Number (Primary Key)

Client Name

Short Text

20

 

Name of Client

Address

Short Text

15

 

Street Address

City

Short Text

15

 

City

Zip Code

Short Text

5

 

Zip Code

Balance

Currency

 

 

Amount Currently Owed for Services

Bookkeeper Number

Short Text

2

 

Bookkeeper Number

4. Enter the data for the Client Table as shown in the table below:

1175_Client Table.jpg

5. Create the Bookkeeper table using the structure and data shown in the table below:Save the table as "Bookkeeper Table."

Bookkeeper Table

Field Name

Data Type

Field Size

Primary

Key

Description

Bookkeeper Number

Short Text

2

Yes

Bookkeeper Number (Primary Key)

Last Name

Short Text

10

 

Last Name of Bookkeeper

First Name

Short Text

8

 

First Name of Bookkeeper

Address

Short Text

15

 

Street Address

City

Short Text

15

 

City

Zip Code

Short Text

5

 

Zip Code

Hourly Rate

Currency

 

 

Hourly Rate

YTD Earnings

Currency

 

 

Year-to-Date Earnings

6. Enter the data for the Bookkeeper Table as shown in the table below:

734_Client Table1.jpg

7. Create a relationship between two tables. Specify referential integrity between the Bookkeeper table (the one table) and the Client table (the many table). Save the Relationships.

8. Create the following queries.

8.1. Create a query for the Client table. The query must display Client Number, Client Name, and Balance fields for all clients located in Empeer with a balance greater than $300.00. Save the query as "Q21-Client-Empeer Query."

8.2. Create a query to display the Client Number, Client Name, and Address fields for all clients with an address on Maum. Save the query as "Q22-Client-Maum Query."

8.3. Create a query that will allow the user to enter the city to search when the query is run. The query results should display the Client Number, Client Name, and Bookkeeper Number. Test the query by searching for those records where the client is located inPortage. Save the query as "Q23-Client-City Query."

8.4. Create a query from the Client table to display the cities in ascending order. Each city should appear only once (i.e., no repeating city). Save the query as "Q24-City-Sorting Query."

8.5. Create a query to display the Client Number, Client Name, and Balance fields for all clients where the bookkeeper number is 24 or 34 and the balance is greater than $300.00. Save the query as "Q25-Client-Bookkeeper24-34 Query."

8.6. Create a query to display the First Name, Last Name, and Hourly Rate fields from the Bookkeeper table and the Client Number, Client Name, and Balance fields from the Client table. Sort the records in ascending order by bookkeeper's last name and client's name. Save the query as "Q26-Client-Bookkeeper Query."

8.7. Create a query for the Bookkeeper table to display the Bookkeeper Number, First Name, Last Name, and Hourly Rate in the design grid. Create a new field named as "Hour Worked" in this query to calculate the number of hours each bookkeeper has worked (YTD Earnings/Hourly Rate). Display the data in this "Hour Worked" field as a standard number with 0 decimal place and also show this new created field in the Datasheet view . Save the query as "Q27-Bookkeeper-Hour Worked Query."

8.8. Create a query to display the following statistics:
a. the total balance for all clients - Save the query as "Q28a-Client Total Balance Query." Display Balance field.
b. the total balance for each bookkeeper. Save the query as "Q28b-Bookkeeper Total Balance Query." Display Bookkeeper Number and Balance fields.
c. the total balance for clients of bookkeeper 22 - Save the query as "Q28c-Client-Bookkeeper22 Balance Query." Display Bookkeeper Number and Balance fields.

8.9. Create the crosstab query as shown in the Figure below: The crosstab groups total of clients' balances by city and bookkeeper number. Save the query as "Q29-City-Bookkeeper Crosstab Query."

519_Client Table2.jpg

Attachment:- Bookkeeping Database.rar

Reference no: EM133164837

Questions Cloud

Perspective of the black birmingham children : 1. From the perspective of the Black Birmingham children and Children's March organizers, who did you place in the top left segment of the Power Map (check all
Explore the website ontario living wage network : Why do you think that an organization like Ontario's Living Wage Network needs to exist?
Describe the two interview questions : 1. Please describe the two interview questions that is based on behaviour
What is the income statement and total cash flow : The overall cost of capital of CougCoffee Puma Plundge is 14 percent. What is the income statement and total cash flow
Create a relationship between two tables : Create a relationship between two tables. Specify referential integrity between the Bookkeeper table (the one table) and the Client table (the many table)
Diversity equity and inclusive training : How can Diversity Equity and Inclusive (DEI) Training be implemented for senior management or leadership in a company? what are some of the Recommendations such
Modern competitive environment of business : Select one of the four approaches to social responsibility (obstructionist, defensive, accomodative, proactive) and explain how this stance can be effective in
What is your net profit or loss on this investment : The option expires today when the value of the stock is $42.50 per share. What is your net profit or loss on this investment
Process of preparing for collective bargaining : 1. How does adequate strategic planning help in the process of preparing for collective bargaining?

Reviews

Write a Review

Database Management System Questions & Answers

  Identify classes described in the preceding scenario

Develop a list of attributes for each class. Place the attributes onto the CRC cards - Identify the classes described in the preceding scenario (you should find six). Create CRC cards for each class.

  Assignment related to the prestige hotel

Import the Location data from the Excel file a02m2location into your database as a new table. Set the LocationlD Indexed property to Yes (No Duplicates), and then set the data type to Long Integer. Select the LocationlD field as the primary key. N..

  Which management used to evaluate oracle database offerings

What were the important business factors which management used to evaluate Oracle's database offerings

  Create database for university to monitor students

A database is to be created for University to monitor students' progress throughout their course of study. Students are reading for degree (such as BTech, BTech(Hons) MCA, etc) within framework of modular system.

  Create a physical inventory document for warehouse stock

Create a new Purchase Requisition for 50 Child Deluxe Bikes, to be delivered to Plant MI00, Storage location TG00, in 1 month from today and Create a quotation with reference to the created inquiry which will be valid for one month from today, PO n..

  Draw a relational schema for your 3NF relations

Task - Normalisation. Draw a relational schema for your 3NF relations and show the referential integrity constraints

  Create a Virtual Private Database in Oracle

SDEV 350 Homework - Oracle Virtual Private Database. This homework provides an opportunity for the student to create a Virtual Private Database in Oracle

  List the requirements for this eer diagram

Given the following EER diagram of the Museum Database.

  Design a turing machine for the given problem

Intuitively, we solve the problem in the following fashion. Starting at the leftmost a, we check it off by replacing it with some symbol, say x.

  What is the cardinality of an entity

What is the cardinality of an entity - Why is it useful to consider the cardinality when designing a database?

  Create a database schema that supports the companys business

Create a database schema that supports the companys business and processes. Explain and support the database schema with relevant arguments that support

  Create a tables student that print names of students

Create the following tables: student (sid, sname, sex, age, year, gpa) that Print the names of the students with the lowest GPA.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd