Question

In: Computer Science

Question 1 [multiple answer] a relation in mathematics Is much like a database table except that...

Question 1

[multiple answer] a relation in mathematics

  1. Is much like a database table except that relations are sets, i.e. Don't allow duplicates whereas DBMSs may return tables with duplicates
  2. Is not very much like a database table, because it only refers to such expressions as "greater than"
  3. Is like a database table with exactly two columns, no more and no fewer
  4. Is similar to a database table, but database tables cannot have infinitely many rows

Question 2

[multiple answers] in the relational model, relations are commonly used

  1. To represent entities of the ER model
  2. To represent relationships of the ER model
  3. To represent multi-valued attributes
  4. To represent derived attributes

Question 3

[multiple answers] constraints on relations in normal RDBMSs (not considering MS access)

  1. Are tools for querying tables
  2. Are tools for aiding data quality
  3. Are tools for improving security
  4. Are tools for filtering out records that should not get inserted

Question 4

[multiple answers] which of the following constraints can be violated by inserting a record into a database table?

  1. Primary key constraint
  2. Domain constraint
  3. Referential integrity (foreign key) constraint
  4. Constraint on null

Question 5

[multiple answers] which of the following constraints can be violated through a deletion of a record from a database table?

  1. Primary key constraint
  2. Domain constraint
  3. Referential integrity (foreign key) constraint
  4. Constraint on null

Question 6

[multiple answers] assume a table A with primary key aid, and a table B with primary key bid and foreign key aid which references aid in table A. Which of the following operations can result in a violation of the referential integrity (foreign key) constraint?

  1. Insertion of a record into table A
  2. Insertion of a record into table B
  3. Deletion of a record from table A
  4. Deletion of a record from table B

Question 7

[multiple answers] referentially triggered actions

  1. May happen as a result of a deletion of a record because its primary key value is referenced by a foreign key value in a different relation
  2. May happen as a result of a deletion of a record because it has a foreign key value that references a primary key value in a different relation
  3. Are typically the result of defining a trigger for enforcing semantic integrity constraints
  4. May happen as a result of an insertion of a record that defines a foreign key value for which no primary key value exists in a referenced table

Question 8

[multiple answers] a 1-to-1 relationship in the entity-relationship model can be represented in the relational model

  1. By combining the two entities into one table
  2. By adding a foreign key to one of the tables, which references the primary key of the other table
  3. By creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities
  4. Cannot be represented at all in a relational database

Question 9

[multiple answers] a 1-to-many relationship in the entity-relationship model can be represented in the relational model

  1. By combining the two entities into one table
  2. By adding a foreign key to the table on the "many" side of the relationship, which references the primary key of the other table
  3. By adding a foreign key to the table on the "1" side of the relationship that references the primary key of the other table
  4. By creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities

Question 10

[multiple answers] a many-to-many relationship in the entity-relationship model can be represented in the relational model

  1. By combining the two entities into one table
  2. By adding a foreign key to one of the tables, which references the primary key of the other table
  3. By creating a separate table that has two foreign keys, which reference the primary keys of the two relations that represent the entities
  4. Cannot be represented at all in a relational database

Solutions

Expert Solution

The answers to the questions are as follows:

QUESTION 1. a) Is much like a database table except that relations are sets, i.e. Don't allow duplicates whereas DBMSs may return tables with duplicates

QUESTION 2. b) in the relational model, relations are commonly used to represent entities of the ER model and the relationships of the ER model

QUESTION 3. b) and c)Are tools for filtering out records that should not get inserted

QUESTION 4. a) Primary key constraint and c) Referential integrity (foreign key) constraint

QUESTION 5. a) Primary key constraint and c) Referential integrity (foreign key) constraint

QUESTION 6. b) Insertion of a record into table B and c) Deletion of a record from table A

QUESTION 7. a) May happen as a result of a deletion of a record because its primary key value is referenced by a foreign key value in a different relation. and b) May happen as a result of a deletion of a record because it has a foreign key value that references a primary key value in a different relation.

QUESTION 8. b) By adding a foreign key to one of the tables, which references the primary key of the other table and c) by creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities

QUESTION 9 b) by adding a foreign key to the table on the "many" side of the relationship, which references the primary key of the other table and d) By creating a separate table that has two foreign keys, which reference the primary keys of the two tables that represent the entities

QUESTION 10. c) By creating a separate table that has two foreign keys, which reference the primary keys of the two relations that represent the entities


Related Solutions

Database - Relational Theory The state of a table or relation relates to its current content....
Database - Relational Theory The state of a table or relation relates to its current content. Consider the formal terminology of the relational model. 1) Which descriptive term of a relation applies to the state of a relation? 2) Which descriptive term of a relation is not affected a change in the state of the relation? 3) In addition to identifying these terms, provide a brief definition of each of term.
SUBJECT: DATABASE SYSTEMS !!! Please answer the question as early as possible !!! Question 1 You...
SUBJECT: DATABASE SYSTEMS !!! Please answer the question as early as possible !!! Question 1 You are required to draw a complete Crow’s Foot ERD that includes the following entity relationship components based on the below descriptions: i) Identify all of the entities and its attributes. ii) Identify all possible relationships and its connectivity. iii) Identify the primary key and foreign key for each entity. iv) Identify the participation constraint and cardinality for each relationship. A Super5 company contains many...
Question 1: The following table to answer the following questions.
Question 1: The following table to answer the following questions.  a. Sketch the aggregate supply(s) and aggregate demand diagram(s). b. What is the equilibrium output and price level? c. If aggregate demand shifts right, what is long-run equilibrium output? d. If aggregate demand shifts left, what is equilibrium long-run output? e. For an economy at long-run equilibrium, would you suggest using aggregate demand to alter the level of output or to control any inflationary increases in the price level? Why?
Discrete mathematics function relation question. I just can not understand how partial functio works. for example,...
Discrete mathematics function relation question. I just can not understand how partial functio works. for example, I think a) is not total function, because y+5=3x is not always true for every domain. However, I do not know it is just partial function, but I do not know how to explain it. For each of the following relations, determine whether the relation is a function, only a partial function, or not even a partial function. If it’s a (total) function, write...
1. Discuss the elements of a database system. Like The database schema Schema objects Indexes Tables...
1. Discuss the elements of a database system. Like The database schema Schema objects Indexes Tables Fields and columns Records and rows Keys Relationships Data types 2. Discuss the key components of a database management system architecture and how they collaborate. 3. Discuss why a database management system needs a good query optimizer.
Introduction to Database SHort answer question -1)Can intersection data be placed in the entity box of...
Introduction to Database SHort answer question -1)Can intersection data be placed in the entity box of one of the two entities in the many-to-many binary relationship? If yes, describe which one. If not, where can you put it? Explain. -2)What is the difference between a record type and an occurrence of that record? Explain and give example(s). -3)Name at least 4 entities, some sample attributes for each entity, and the primary key field for each entity, in a university environment...
Question 1. Equivalence Relation 1 Define a relation R on by iff . Prove that R...
Question 1. Equivalence Relation 1 Define a relation R on by iff . Prove that R is an equivalence relation, that is, prove that it is reflexive, symmetric, and transitive. Determine the equivalence classes of this relation. What members are in the class [2]? How many members do the equivalence classes have? Do they all have the same number of members? How many equivalence classes are there? Question 2. Equivalence Relation 2 Consider the relation from last week defined as:...
On average, do males outperform females in mathematics? To answer this question, a GCU student compared...
On average, do males outperform females in mathematics? To answer this question, a GCU student compared the scores of male and female eighth-grade students who took a basic skill math test. A summary of the test scores is displayed below.                     Males Females Sample Size 1964 1939 Mean 42.9 43.4 Standard Error 11.6 10.5 a.What would be the 95% CI for each of these data sets?   (3 points) b.  Based on your results what do you conclude about whether or not these two...
MULTIPLE CHOICE Question 7 All of the following are typically characteristics of an exchange-traded fund EXCEPT:...
MULTIPLE CHOICE Question 7 All of the following are typically characteristics of an exchange-traded fund EXCEPT: Active asset management Have low or no minimum investment amount Are traded on securities exchanges or over-the-counter markets Appeal to investors because of their relatively low costs Typically designed to reflect market indexes Question 8 What is the name of the type of mutual fund that invests in certificates of deposit, government securities, and other very safe and liquid assets? This type of mutual...
Kindly answer both questions 1 abd 2 fully. Question 1) Find the dispersion relation for one...
Kindly answer both questions 1 abd 2 fully. Question 1) Find the dispersion relation for one dimensional diatomic lattice? (definition and difference of optical branch and acoustical branch) Question 2) Find the displacement u(x,t) for one dimensional diatomic lattice? Kindly answer both questions 1 abd 2 fully.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT