College Pal
Connecting to a pal for your paper
  • Home
  • Place Order
  • My Account
    • Register
    • Login
  • Confidentiality Policy
  • Samples
  • How It Works
  • Guarantees

Sms or Whatsapp only : US:+12403895520

 

email: [email protected]
May 5, 2023

In this project, you will use the knowledge you acquired throughout the course to build a simple database and query it to extract information from it. You will create tables a

computer science

 

This is a Database Programming course. This course covers advanced topics in databases. It starts by reviewing basic knowledge on databases and ends with advanced database concepts like security.

In this project, you will use the knowledge you acquired throughout the course to build a simple database and query it to extract information from it. You will create tables and relationships among them, in addition to the necessary keys and indexes. The next step will be to populate the database with suitable data. Populating the tables with sufficient and appropriate example data is an important step in testing and validating your design. When your database is ready, you will write SQL queries to retrieve information.

Note: This assignment was created with MySQL in mind. Therefore, dates, numbers, etc. have been set up with that tool in mind.

Upon completion of this project, you will be able to:

  • Write SQL queries to create tables
  • Write SQL queries to create relationships among tables
  • Identify indexes and create them in a database
  • Write queries to extract important information from a database

Prompt

In this project you will build a database for a public library. This database is aimed to collect and analyze information about the clients' reading interests. The project concentrates only on books and the clients' interests in books. The analyses that will result from this project will be used by the library's management to decide on the future purchasing policy.

A. Write the SQL statements in order to create the tables for the database. Use the Entity Relationship Diagram (ERD) of the database shown in Figure 1. For simplicity, we are assuming in this project that a book cannot be written by more than one author. You need to create the tables as well as the required constraints, including the keys (primary and foreign), and the relationships between table.

Use the attach document to complete this assignment.

  • attachment

    AboutthisAssignment1111.docx

About this Assignment

This is a Database Programming course. This course covers advanced topics in databases. It starts by reviewing basic knowledge on databases and ends with advanced database concepts like security.

In this project, you will use the knowledge you acquired throughout the course to build a simple database and query it to extract information from it. You will create tables and relationships among them, in addition to the necessary keys and indexes. The next step will be to populate the database with suitable data. Populating the tables with sufficient and appropriate example data is an important step in testing and validating your design. When your database is ready, you will write SQL queries to retrieve information.

Note: This assignment was created with  MySQL in mind. Therefore, dates, numbers, etc. have been set up with that tool in mind.

Upon completion of this project, you will be able to:

· Write SQL queries to create tables

· Write SQL queries to create relationships among tables

· Identify indexes and create them in a database

· Write queries to extract important information from a database

Prompt

In this project you will build a database for a public library. This database is aimed to collect and analyze information about the clients' reading interests. The project concentrates only on books and the clients' interests in books. The analyses that will result from this project will be used by the library's management to decide on the future purchasing policy.

A. Write the SQL statements in order to create the tables for the database. Use the Entity Relationship Diagram (ERD) of the database shown in Figure 1. For simplicity, we are assuming in this project that a book cannot be written by more than one author. You need to create the tables as well as the required constraints, including the keys (primary and foreign), and the relationships between tables.

ERD Diagram

Figure 1: ERD for Library Database

B. Populate your database with the sample set of data given to you in the tables below the assignment prompts.

C. Write the following queries to retrieve the information detailed below.

1. Display all contents of the Clients table

2. First names, last names, ages and occupations of all clients

3. First and last names of clients that borrowed books in March 2018

4. First and last names of the top 5 authors clients borrowed in 2017

5. Nationalities of the least 5 authors that clients borrowed during the years 2015-2017

6. The book that was most borrowed during the years 2015-2017

7. Top borrowed genres for client born in years 1970-1980

8. Top 5 occupations that borrowed the most in 2016

9. Average number of borrowed books by job title

10. Create a VIEW and display the titles that were borrowed by at least 20% of clients

11. The top month of borrows in 2017

12. Average number of borrows by age

13. The oldest and the youngest clients of the library

14. First and last names of authors that wrote books in more than one genre

As you work on these queries, create indexes that will increase your queries' performance.

You must include comments in your code that address the purpose of your query and explains each step. Save your queries and results in a plain-text file that you will submit as your assignment.

Author table:

AuthorID

AuthorFirstName

AuthorLastName

AuthorNationality

1

Sofia

Smith

Canada

2

Maria

Brown

Brazil

3

Elena

Martin

Mexico

4

Zoe

Roy

France

5

Sebastian

Lavoie

Canada

6

Dylan

Garcia

Spain

7

Ian

Cruz

Mexico

8

Lucas

Smith

USA

9

Fabian

Wilson

USA

10

Liam

Taylor

Canada

11

William

Thomas

Great Britain

12

Logan

Moore

Canada

13

Oliver

Martin

France

14

Alysha

Thompson

Canada

15

Isabelle

Lee

Canada

16

Emily

Clark

USA

17

John

Young

China

18

David

Wright

Canada

19

Thomas

Scott

Canada

20

Helena

Adams

Canada

21

Sofia

Carter

USA

22

Liam

Parker

Canada

23

Emily

Murphy

USA

Book table:

BookID

BookTitle

BookAuthor

Genre

1

Build your database system

1

Science

2

The red wall

2

Fiction

3

The perfect match

3

Fiction

4

Digital Logic

4

Science

5

How to be a great lawyer

5

Law

6

Manage successful negotiations

6

Society

7

Pollution today

7

Science

8

A gray park

2

Fiction

9

How to be rich in one year

8

Humor

10

Their bright fate

9

Fiction

11

Black lines

10

Fiction

12

History of theater

11

Literature

13

Electrical transformers

12

Science

14

Build your big data system

1

Science

15

Right and left

13

Children

16

Programming using Python

1

Science

17

Computer networks

14

Science

18

Performance evaluation

15

Science

19

Daily exercise

16

Well being

20

The silver uniform

17

Fiction

21

Industrial revolution

18

History

22

Green nature

19

Well being

23

Perfect football

20

Well being

24

The chocolate love

21

Humor

25

Director and leader

22

Society

26

Play football every week

20

well being

27

Maya the bee

13

Children

28

Perfect rugby

20

Well being

29

The end

23

Fiction

30

Computer security

1

Science

31

Participate

22

Society

32

Positive figures

3

Fiction

Client table:

ClientID

ClientFirstName

ClientLastName

ClientDoB

Occupation

1

Kaiden

Hill

2006

Student

2

Alina

Morton

2010

Student

3

Fania

Brooks

1983

Food Scientist

4

Courtney

Jensen

2006

Student

5

Brittany

Hill

1983

Firefighter

6

Max

Rogers

2005

Student

7

Margaret

McCarthy

1981

Collepals.com Plagiarism Free Papers

Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.

Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS

Why Hire Collepals.com writers to do your paper?

Quality- We are experienced and have access to ample research materials.

We write plagiarism Free Content

Confidential- We never share or sell your personal information to third parties.

Support-Chat with us today! We are always waiting to answer all your questions.

Based on your work developing a?Risk Mitigation Plan, you will be ready to draft a?Risk Management Security Plan?for management, proposing specific tools and policies for impl At least three content- or skill-based questions that are appropriate for 3rd ?grade students students ?and ability levels for each objective, and examples of answers the ques

Related Posts

computer science

Identify properties characteristic of alkenes, cycloalkenes, alkynes, and aromatics

computer science

Write a college-level learning narrative about two specific skills or concepts from this course that are useful to a current or future employer. Rese

computer science

You are working as an IT security professional for an organization (called Website 101) that has 300 employees and one large corporate office with th

Why Choose Us

Best Essay Writing Services- Get Quality Homework Essay Paper at Discounted Prices

At the risk of sounding immodest, we must point out that we have an elite team of writers. Ours isn’t a collection of individuals who are good at searching for information on the Internet and then conveniently re-writing the information obtained to barely beat Plagiarism Software. Who can’t do that?

Our writers have strong academic backgrounds with regards to their areas of writing. A paper on History will only be handled by a writer who is trained in that field. A paper on health care can only be dealt with by a writer qualified on matters health care. Thesis papers will only be handled by Masters’ Degree holders while Dissertations will strictly be handled by PhD holders. With such a system, you needn’t worry about the quality of work. Quality isn’t just an option, it is the only option. We don’t just employ writers, we hire professionals.

We have writers spread into all fields including but not limited to Philosophy, Economics, Business, Medicine, Nursing, Education, Technology, Tourism and Travels, Leadership, History, Poverty, Marketing, Climate Change, Social Justice, Chemistry, Mathematics, Literature, Accounting and Political Science.

Our writers are also well trained to follow client instructions as well adhere to various writing conventional writing structures as per the demand of specific articles.

They are also well versed with citation styles such as APA, MLA, Chicago, Harvard, and Oxford which come handy during the preparation of academic papers.

They also have unrivalled skill in writing language be it UK English or USA English considering that they are native English speakers. You also needn’t worry about logical flow of thought, sentence structure as well as proper use of phrases.

Our writers are also not the kind to decorate articles with unnecessary filler words. We respect your money and most importantly your trust in us. In writing, we will be precise and to the point and fill the paper with content as opposed to words aimed at beating the word count.

Our shift-system also ensures that you get fresh writers each time you send a job. This helps overcome occupational hazards brought about by fatigue. Hence, quality will consistently be at the top.

From our writers, you expect; good quality work, friendly service, timely deliveries, and adherence to client’s demands and specifications.

Once you’ve submitted your writing requests, you can go take a stroll while waiting for our all-star team of writers and editors to submit top quality work.

How Our Website Works

Get an Essay from Us

College Essays is the biggest affiliate and testbank for WriteDen. We hire writers from all over the world with an aim to give the best essays to our clients.

Our writers will help you write all your homework. They will write your papers from scratch. We also have a team of editors who read each paper from our writers just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE.

Step 1
To make an Order you only need to click ORDER NOW and we will direct you to our Order Page. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline. Deadline range from 6 hours to 30 days.

Step 2
Once done with writing your paper we will upload it to your account on our website and also forward a copy to your email.

Step 3
Upon receiving your paper, review it and if any changes are needed contact us immediately. We offer unlimited revisions at no extra cost.

Is it Safe to use our services?
We never resell papers on this site. Meaning after your purchase you will get an original copy of your assignment and you have all the rights to use the paper.

Pricing and Discounts
Our price ranges from $8-$14 per page. If you are short of Budget, contact our Live Support for a Discount Code. All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
Please note we do not have prewritten answers. We need some time to prepare a perfect essay for you.

Recent Posts

  • Create a 1 page fact sheet as per the directions that your healthcare organization could hypothetically use to explain the health or nursing informatics policy/regulation you selected.
  • Create a policy and regulation fact sheet
  • For this assignment you are going to identify a complex healthcare ethical dilemma facing the professional nurse in our multi-dimensional healthcare environment
  • Case Study Reflection Paper Assignment
  • Root cause analysis and active listening
College Pal

All Rights Reserved Terms and Conditions
College pals.com Privacy Policy 2010-2018