Question

In: Computer Science

I need the specific answers for these questions, and clear vision diagram thanks Consider the following...

I need the specific answers for these questions, and clear vision diagram

thanks

Consider the following tables:

GENRE(GEN_CODE, GEN_DESCRIPTION)

BOOK(BOOK_ISBN, BOOK_TITLE, BOOK_PRICE, GEN_CODE)

For the tables given above, work on the problems below:

1. For each table, identify the primary key.

2. For each table, identify the foreign key(s).

3. Identify at least one candidate key. If there are no candidate keys, give an example of an attribute that could be used as a candidate key.

4. For one of the tables, give examples of a superkey and a secondary key.

5. For the given tables, explain how entity integrity and referential integrity could be violated. Give specific examples.

6. Use Visio to create a detailed Crow's Foot ERD. The diagram must include all entities, attributes, and relationships. Primary keys and foreign keys must be clearly identified on the diagram.

Solutions

Expert Solution

1)in genre table primary key is Gen_code (because it is not null and unique characterstics it has)

2)in book table foreign key is Gen-code(it is one to many relation ship tables).in Genre table no foreign key

3)Genre table there is no candidate key.the suggested attributed is gen_type

in book table Book_title is the candidate key.because it is unique key

4)A superkey is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table. A candidate key is a closely related concept where the superkey is reduced to the minimum number of columns required to uniquely identify each row.

GEN-CODE GEN_TYPE

ISBN Book_TItle

DEFINITION: A secondary key is made on a field that you would like to be indexed for faster searches. A table can have more than one secondary key. The main purpose of a database is to store and search for data. When databases become large, possibly with hundreds of thousands of records, they can take a while to search ...

GEN_CODE

ISBN

5)The basis of Referential Integrity is foreign keys. A foreign key in one table references a primary key in another table. The primary key for a table uniquely identifies entities (rows) in the table. Primary keys are maintained with Entity Integrity, foreign keys with Referential Integrity.


Related Solutions

Please, I need correct answers and clear explanation. Thanks, Indicate whether each of the following statements...
Please, I need correct answers and clear explanation. Thanks, Indicate whether each of the following statements is true or false: a. Under the accrual basis of accounting, when cash is collected on accounts receivable, revenue is recorded. b. Cash receipts from customers are debited to Accounts Receivable. c. The cash basis of accounting recognizes expenses when they are incurred. d. Under the cash basis of accounting, there is no such thing as a Prepaid Expenses account. e. Asset accounts and...
I need clear explanation on how we got that answers. Thanks. 1. What is the decimal...
I need clear explanation on how we got that answers. Thanks. 1. What is the decimal value for the 8 bit 2's complement number 0x36 arithmetic shift right by 3. --> Ans is 6 2. What is the decimal value for the 8 bit 2's complement number 0x36 rotated left by 3 --> Ans is -79
Please I need clear and typed answers to these two questions: Q1)Explain the two types of...
Please I need clear and typed answers to these two questions: Q1)Explain the two types of file compression? Then determine the best compression strategy suited for: a- Photograph of sailboat on ocean. b- Journal article explaining nanotechnology. Q2)What are the advantages and disadvantages of Description-Based Encoding and Command-Based Encoding?
Please, I need a correct answer and clear explanation. Thanks! What are the advantages and disadvantages...
Please, I need a correct answer and clear explanation. Thanks! What are the advantages and disadvantages of using the accrual basis of accounting rather than the cash basis?
Please I want answers for these questions. Thanks Note: I want them by typing not by...
Please I want answers for these questions. Thanks Note: I want them by typing not by hand writing Q2 Explain why a market structure in which money is used as a medium of exchange is more conducive to the expansion of trade and exchange than a barter system. What is money? Explain the three functions that money performs. What is the relationship between money and inflation? Explain
Please, I need correct answers and clear explanation. You have been provided with the following information...
Please, I need correct answers and clear explanation. You have been provided with the following information about Bibi’s inventory for January 2018. Bibi uses a period inventory system to sell her customized Swell water bottles. While the water bottles come in different colours, she only sells one size so all her units are homogenous. Number of units Cost per unit Total cost Price per unit sold Total revenue January 1–Beginning inventory 1,250 $25.00 $31,250 January 6–Purchase 750 $24.00 $18,000 January...
I will rate answers these short questions any incomplete will be reoprted thanks *   Entries for...
I will rate answers these short questions any incomplete will be reoprted thanks *   Entries for Materials GenX Furnishings manufactures designer furniture. GenX Furnishings uses a job order cost system. Balances on June 1 from the materials ledger are as follows: Fabric $30,800 Polyester filling 9,200 Lumber 69,000 Glue 3,000 The materials purchased during June are summarized from the receiving reports as follows: Fabric $152,800 Polyester filling 212,400 Lumber 418,700 Glue 14,500 Materials were requisitioned to individual jobs as follows:...
Hello I need some assistance with these questions I need not so long answers but not...
Hello I need some assistance with these questions I need not so long answers but not too short please Give some examples of How much decisions. What are the implicit costs of having an Airbnb in your neighborhood? What is marginal analysis? What is marginal cost? Under what conditions do marginal costs increase?
i need the answers for the following questions the its steps and work 1/ A lender...
i need the answers for the following questions the its steps and work 1/ A lender makes a $100,000 mortgage at 3.5% interest with monthly payments for 15 years. How much principal will be repaid during the first year of the loan? 2/Given the following information on a fixed-rate fully amortizing loan, determine the maximum amount that the lender will be willing to provide to the borrower. Loan Term: 30 years, Monthly Payment: $2,500, Interest Rate: 5% (annual rate compounded...
Please, I need a correct answer and clear explanation. Thanks, Explain how a prepaid expense differs...
Please, I need a correct answer and clear explanation. Thanks, Explain how a prepaid expense differs from an accrued expense.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT