Write sql queries to create relationships among tables

Assignment Help Computer Engineering
Reference no: EM133473267

Homework: Data Programming

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 homework 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:

Question 1. Write SQL queries to create tables
Question 2. Write SQL queries to create relationships among tables
Question 3. Identify indexes and create them in a database
Question 4. 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.

Question: 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.

Reference no: EM133473267

Questions Cloud

Instant messaging or use of social networks in business : Research the use of email, voicemail, instant messaging or the use of social networks in business.
What are the main components of a healthy lifestyle : What are the main components of a healthy lifestyle?
Bad news messages : As an employee at BUSCOM, you and your team have been planning a presentation for your client for the last few weeks.
Discuss the availability and cost of capital in saudi arabia : Discuss the availability and cost of capital in Saudi Arabia, your discussion should explain the effect of productions' diversification on the availability
Write sql queries to create relationships among tables : Write SQL queries to create tables. Write SQL queries to create relationships among tables. Write queries to extract important information from a database.
What strengths does servant leadership offer that can guide : what strengths does servant leadership offer that can guide an organization? - How do you perceive the level of devotion that this leadership theory
Modes of transportation would they most likely use : What mode or modes of transportation would they most likely use? Draw on Rawls, be specific, and speculate with an imagination informed by the historical record
Responsibilities of the director of adult prisons : What are the duties and responsibilities of the Director of Adult Prisons?
Discuss relationship between policy and clinical practice : Discuss the relationship between policy and clinical practice? Can you think of an example of how this has impacted on Advanced Nursing Practice.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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