Question

Describe briefly a database application case of your choice and represent your data in terms of...

Describe briefly a database application case of your choice and represent your data in terms of 3 linked (via foreign key/s) tables. List their respective primary key and foreign key/s if any. Your database application case should be different from those already covered in the lectures or practicals.

For the database case in the Additional Exercises of the previous practical, complete the proper construction of all the 5 tables in SQL, building all the pertinent primary and foreign keys there.

Draw the updated ER diagram that reflects all 5 tables and all the attributes there.

(optional) For a clean slate, it is recommended that you delete all those tables partially constructed last week for this question and start completely anew. You can do so by issuing an SQL command similar to

drop table Reviews, Writes, Reviewer, Book, Author;

or by dropping the tables one by one in the right order

drop table Reviews;
drop table Writes;
-- more to come here ...

Use SQL to create at least the 3 tables Book, Reviewer, and Reviews, specifying the respective primary key and foreign key if any. The Reviews table should also contain at least the date of the review and the resulting recommendation.

Insert some records into these tables. Use the INSERT command in SQL to insert at least one record into at least a pair of tables that are linked via a foreign key, and the value of the foreign key created this way should not be null.

In Regards To what the question says previous practical its this

Consider the database case of keeping record of which reviewer has been assigned to review which book for a book publisher, and which book has been written by which authors. Create 3 entity typesReviewer, Book and Author, and 2 relationship types Reviews and Writes.

Suppose each book considered for publication by a book publisher needs to be recorded for thebookId, book title, each author needs to be recorded for the authorId and authorName, and each reviewer needs to be recorded for the reviewerId and the reviewerName. Draw the diagrams for the entity types Book, Author, and Reviewer. What other attributes are likely to be useful in these entity types?

Assume each book considered for publication should have no more than 5 authors in total, a reviewer may review multiple books, and a book needs to be assigned at least 2 reviewers and no more than 6. Draw the ER diagram for this simple database and also specify the occurrence multiplicities for the relationship.

Similar to the steps in Visual track 1, use SQL Server's graphical user interface to design the tables Book, Author and Writes. Specify the respective primary keys, and enter 2-3 records into each of these tables.

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Describe briefly a database application case of your choice and represent your data in terms of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • --- Paper Review drop table paper_review cascade constraint; drop table paper_author cascade constraint; drop table paper...

    --- Paper Review drop table paper_review cascade constraint; drop table paper_author cascade constraint; drop table paper cascade constraints; drop table author cascade constraints; drop table reviewer cascade constraints; create table reviewer ( rid int, --- reviewer id rname varchar(50), --- reviewer name remail varchar(50),-- reviewer email raffiliation varchar(50),-- reviewer affiliation primary key (rid) ); insert into reviewer values(1,'Alex Golden', 'golden@umbc.com','UMBC'); insert into reviewer values(2,'Ann Stonebraker', 'ann@umd.edu','UMD'); insert into reviewer values(3,'Karen Smith', 'karen@umb.com','UMB'); insert into reviewer values(4,'Richard Wallas', 'richard@umbc.edu','UMBC'); insert into...

  • Use the SQL statements provided to create your tables. Write one SQL statement for each of...

    Use the SQL statements provided to create your tables. Write one SQL statement for each of the following problems. You can only use the conditions listed in the tasks. E.g., in task 1, you cannot manually look up pid of Information Systems undergraduate program. Here is the given code: drop table textbook_schedule cascade constraints; drop table textbook_author cascade constraints; drop table schedule cascade constraints; drop table course cascade constraints; drop table textbook cascade constraints; drop table author cascade constraints; drop...

  • Help In Database: Next comes the data entry: Make up data for your database, or find...

    Help In Database: Next comes the data entry: Make up data for your database, or find real data. You can enter the data with INSERT statements, but it is much easier to use PhpAdmin. It has a form where you can type the data directly. Alternatively, you can use PhpAdmin to import CSV data (comma-separated values), which you can export from Excel. Include at least 3 rows in each of the entity relations, and as many rows as you need...

  • Database Design The State of Connecticut has contracted you to build a database for their bookstores....

    Database Design The State of Connecticut has contracted you to build a database for their bookstores. The State of Connecticut operates twelve Community College Bookstores where they currently store information about the Colleges, Publishers, Authors, and Books. You have been given the task of automating the antiquated process that the bookstores currently use. Each one of the twelve Community Colleges has a unique College ID, a College Name, College Address and Bookstore Employees. After talking with the bookstore employees and...

  • c) Write an ER Diagram for the following Library database. Identify all the Entities, Relationships and Attributes. Underline the primary keys and mark the different constraints. You can add an I att...

    c) Write an ER Diagram for the following Library database. Identify all the Entities, Relationships and Attributes. Underline the primary keys and mark the different constraints. You can add an I attribute as a primary key for an entity to make t unique if necessary. Library has a number of branches in the city, each branch having a name, address and librarian. Books have title, authors and publisher. A book can have multiple authors but a single publisher. Note that same...

  • Suppose a student is taking IS 620 section 1 and HCC 629 section 1 for spring...

    Suppose a student is taking IS 620 section 1 and HCC 629 section 1 for spring 2019. Use an explicit cursor to print out the titles and prices of textbooks for these two courses. Sample code to create the tables: drop table textbook_schedule cascade constraints; drop table textbook_author cascade constraints; drop table schedule cascade constraints; drop table course cascade constraints; drop table textbook cascade constraints; drop table author cascade constraints; drop table teacher cascade constraints; drop table program cascade constraints;...

  • Questions: Assume you are creating a database for IS paint store. Suppose you have an ER diagram ...

    Questions: Assume you are creating a database for IS paint store. Suppose you have an ER diagram like the following: Please answer the following questions. Explain your answer. 1. Convert the ER diagrams to relational tables. 2. Specify primary keys and foreign keys in each table. For foreign keys, specify which primary key it references to. 3. Please create the tables in SQL for the relational tables in our ER diagrams. You also need to define primary keys and foreign...

  • create a database, and create tables with the following requirements: 1) The physical data model is...

    create a database, and create tables with the following requirements: 1) The physical data model is about the book tracking system with the following objects: Book Publisher Author Store 2) Relationship Different to last week assignment, the changes in the relationship are: Book and publisher have a many to many relationship Book and author have a many to many relationship 3) Change the physical data model of last to account to the many to many relationship using: Junction tables Foreign...

  • In this hands-on project, you will create an application that allows the user to connect to...

    In this hands-on project, you will create an application that allows the user to connect to a database and query the database. Write a Java query application that allows the user to connect to the books database and query the books database. Provide the following predefined queries: Select all authors from the Authors table Select a specific author and list all books for that author. Include each book’s title, year and ISBN. Display the appropriate data for each query. Given...

  • Henry's Bookstore Database Henry's Bookstore is a small company with four locations in the city. Henry...

    Henry's Bookstore Database Henry's Bookstore is a small company with four locations in the city. Henry has struggled with MS Excel mainly because he was trying to use spreadsheet software as a database, when in fact he should have been using a database. Requirements Create all of the entities needed for the Physical ERD Specify the columns/attributes needed in each entity along with the data type and size of each attribute. Specify the Primary Key(s) and Foreign Key(s) for the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT