Question

D. Check that integrity constraints are addressed Document that all integrity constraints are considered in the...

D. Check that integrity constraints are addressed

Document that all integrity constraints are considered in the design. Create checklists to ensure that all four levels of integrity constraint – domain, entity, referential, and user – have been addressed. For example,

  • Entity integrity requires that each table contains a primary key that uniquely identifies each row in the table, preventing duplicate rows.
  • Domain integrity requires that the data entered is appropriate. A domain is defined as the set of all unique values permitted for an attribute. For example, a domain of date is the set of all possible valid dates, a domain of integer is all possible whole numbers, a domain of day-of-week is Monday, Tuesday ... Sunday.
  • Referential integrity focuses on maintaining synchronization between the data in related tables. It is generally enforced through the use of primary key-foreign key combinations.
  • User integrity constraints are based upon business model specifics (i.e. an integrity constraint rule that prevents a member from renting more than five DVDs at any one time) and are entirely specific to the specific database.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi there,

please find the query addressing all the constrains.

CREATE DOMAIN film_score AS DECIMAL(5,2)

(

film_id number(20) PRIMARY KEY,

film_name char(20) FOREIGN KEY,

genre char(10),

rating number(5) CONSTRAINT rating CHECK (value >=0) NOT DEFERRABLE,

views_count number(10)

country char(10)

casting char (20) NOT NULL

);

CREATE Film_details

(total_collection_amount number(20),

film_name char(20) PRIMARY KEY,

releasing_date(10),

making_cost(10),

);

Feel free to write back in case of doubt.

Thanks

CREATE TABLE employee
( id number(5) PRIMARY KEY,
name char(20),
dept char(10),
age number(2),
salary number(10),
location char(10)
);

Add a comment
Know the answer?
Add Answer to:
D. Check that integrity constraints are addressed Document that all integrity constraints are considered in the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In class we have discussed four types of Integrity Constraints: Domain Constraint, Key Constraint, Entity Integrity...

    In class we have discussed four types of Integrity Constraints: Domain Constraint, Key Constraint, Entity Integrity Constraint and Referential Integrity Constraint. Suppose that each of the following data change operations is applied directly to our COMPANY database, whose schema and instance are shown in Figures and 2 respectively. Identify all the integrity constraints (if any) that will be violated if we perform the following operations. If a constraint is violated (a) explain briefly why this happens, and (b) suggest all...

  • Match the following words and explanations Domain Integrity Entity integrity Referential Integrity Explanations: A: All values...

    Match the following words and explanations Domain Integrity Entity integrity Referential Integrity Explanations: A: All values in a single column belong to the same scope of meaning B: Each primary key value must have a matching value in the Foreign Key C: The table has a primary key, which may be NULL D: Each Foreign Key value must have a matching value in the Primary key E: The table has a Primary key, which is never NULL

  • QUESTION 1 What is the most common relationship within a relational database? Select the best answer...

    QUESTION 1 What is the most common relationship within a relational database? Select the best answer from the following. One-To-One relationship. o One-To-Many relationship. Many-To-Many relationship. Zero-To-Zero relationship. QUESTION 2 What is an "entity'? Select the best answer from the following. An entity, for our purposes, is the same as a table in the database. An entity represents one of the columns in an individual table. There are no entities in a relational database. Entities are only part of NoSQL...

  • Assume that you are working with a hospital and this hospital needs a software system to...

    Assume that you are working with a hospital and this hospital needs a software system to track its patients’ information. Your role in this software development is to design the database. There are many aspects of such a hospital software system to develop. However, in this assignment, you will only address interactions between doctors and patients. Your first step will be to create the relations necessary for this system and identify and describe the constraints that would be appropriate for...

  • (MMU) has decided to consolidate the functionality of three small overlapping database systems, which support applications...

    (MMU) has decided to consolidate the functionality of three small overlapping database systems, which support applications for 1) teaching (e.g. instructor assignment and evaluation), for 2) registration (e.g. online course status, waiting lists), and for 3) student records (e.g. transcript generation) The resulting new system will support the following enterprise description: Professors and GTAs are assigned to teach the sections of each class being offered in a semester. At the end of the semester, they get a "team rating" (professors...

  • 6. With respect to database systems, which of the following statement(s) is (are) true? a. The...

    6. With respect to database systems, which of the following statement(s) is (are) true? a. The physical view of data is how people conceptually organize and understand the relationships among data items. b. The DML builds the data dictionary, creates the database, describes logical views for each user, and specifies security constraints. c. A record layout shows the items stored in a file, including the type of data stored and both the order and length of the data fields. d....

  • database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED...

    database and sql problme THE QUESTIONS 3, 4,5 and 6 REFER TO THE RELATIONAL TABLES LISTED BELOW CREATE TABLE Department ( DECIMAL(5) VARCHAR(30) CHAR(5) DATE NOT NULL NOT NULL NOT NULL * Department number /*Department name * Department manager number */ /Manager start date DNumber DName Manager MSDate CONSTRAINT Department_PK PRIMARY KEY(DNumber) CONSTRAINT Department_CK UNIQUE(DName) CREATE TABLE DeptLocation DECIMAL(5) VARCHAR(50) NOT NULL NOT NULL DNumber * Department number */ * Department location */ Address CONSTRAINT DeptLocation_PK PRIMARY KEY(DNumber, Address) CONSTRAINT...

  • Quick intuition check via True or False Questions 1. 2. If all prices double and income...

    Quick intuition check via True or False Questions 1. 2. If all prices double and income triples, then the budget line will become steeper There are two goods. You know how much of good 1 a consumer can afford if she spends all of her income on good 1. If you knew the ratio of the prices of the two goods, then you could draw the consumer's budget line without any more information. lf good l is on the horizontal...

  • please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set o...

    please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set of Entity-Relationship Crow's Foot diagrams using the representation as shown in the lecture materials. Draw a set of Entity-Relationship diagrams to model the following scenario. The Maggs Realty Company wants to track the Sales Offices that they have across all of Ontario They are interested...

  • What an Executive Summary Is An executive summary is a specific type of document that does...

    What an Executive Summary Is An executive summary is a specific type of document that does two things: it summarizes a research article, and it offers recommendations as to how information from the article can be used. Some long reports can contain an executive summary section, as indicated in the Pearson handbook. Write a 2 pahe Executive Summary In business contexts, an executive summary is always written for a specific purpose: to explain the information in the article to a...

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
ADVERTISEMENT