Question

In: Computer Science

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.

Solutions

Expert Solution

The relational data model was introduced by C. F. Codd in 1970. Currently, it is the most widely used data model.

The relational model has provided the basis for:

  • Research on the theory of data/relationship/constraint
  • Numerous database design methodologies
  • The standard database access language called structured query language (SQL)
  • Almost all modern commercial database management systems

The relational data model describes the world as “a collection of inter-related relations (or tables)

Fundamental Concepts in the Relational Data Model

Relation

A relation, also known as a table or file, is a subset of the Cartesian product of a list of domains characterized by a name. And within a table, each row represents a group of related data values. A row, or record, is also known as a tuple. The columns in a table is a field and is also referred to as an attribute. You can also think of it this way: an attribute is used to define the record and a record contains a set of attributes.

The steps below outline the logic between a relation and its domains.

  1. Given n domains are denoted by D1, D2, … Dn
  2. And r is a relation defined on these domains
  3. Then  r ⊆ D1×D2×…×Dn

Table

A database is composed of multiple tables and each table holds the data.

Column

A database stores pieces of information or facts in an organized way. Understanding how to use and get the most out of databases requires us to understand that method of organization.

The principal storage units are called columns or fields or attributes. These house the basic components of data into which your content can be broken down. When deciding which fields to create, you need to think generically about your information, for example, drawing out the common components of the information that you will store in the database and avoiding the specifics that distinguish one item from another.

Domain

A domain is the original sets of atomic values used to model data. By atomic value, we mean that each value in the domain is indivisible as far as the relational model is concerned. For example:

  • The domain of Marital Status has a set of possibilities: Married, Single, Divorced.
  • The domain of Shift has the set of all possible days: {Mon, Tue, Wed…}.
  • The domain of Salary is the set of all floating-point numbers greater than 0 and less than 200,000.
  • The domain of First Name is the set of character strings that represents names of people.

Records

Just as the content of any one document or item needs to be broken down into its constituent bits of data for storage in the fields, the link between them also needs to be available so that they can be reconstituted into their whole form. Records allow us to do this. Records contain fields that are related, such as a customer or an employee. As noted earlier, a tuple is another term used for record.

Degree

The degree is the number of attributes in a table.


Related Solutions

What is a relation? What is a relational DB or database? What is an unnormalized relation?...
What is a relation? What is a relational DB or database? What is an unnormalized relation? Is it a relation according to the definition of the word relation? What is a primary key? What is the primary key for each table in the Colonial Adventure Tours database shown in Figures 1-15, 1-16, 1-17, 1-18, and 1-19 in Chapter 1?
• Relational Schema Create a relational database schema consisting of the four relation schemas representing various...
• Relational Schema Create a relational database schema consisting of the four relation schemas representing various entities recorded by a furniture company.   Write CREATE TABLE statements for the following four relation schemas. Define all necessary attributes, domains, and primary and foreign keys. Customer(CustomerID, Name, Address) FullOrder(OrderID, OrderDate, CustomerID) Request(OrderID, ProductID, Quantity) Product(ProductID, Description, Finish, Price) You should assume the following: Each CustomerID is a number with at most three digits, each OrderID is a number with at most five digits,...
QUESTION: The following tables describe the content of a relational database: a) Identify and classify the...
QUESTION: The following tables describe the content of a relational database: a) Identify and classify the tables as either entity or relationship The first step in building an E-R model is to identify the entities. Having identified the entities, the next step is to identify all the relationships that exist between these entities. Using the content of the relational database above: b) Using the relations in the relational database, explain how one can transform relationship in E-R model into a...
tableA is a table in a relational database with a composite prime key consisting of fields...
tableA is a table in a relational database with a composite prime key consisting of fields F1 and F2. You have determined that tableA is 1NF. There are four other fields in tableA. Two of them, F10 and F12, are functionally determined by F1. The other two, F50 and F55, are functionally determined by F2. Because all fields are functionally determined by at least a portion of the key, is tableA 2NF?   If you believe the table is not yet...
What is the relationship between a table of Movies and a table of ActorsActresses and how might it be implemented in a relational database?
What is the relationship between a table of Movies and a table of ActorsActresses and how might it be implemented in a relational database?
tableA is a table in a relational database with a composite prime key. You have determined...
tableA is a table in a relational database with a composite prime key. You have determined that the table is 2NF. Owing to the fact that it is 2NF and the key is composite, is it automatically 3NF? Explain your answer. (4 points) Lack of normalization of database tables may cause update, delete, and/or insert anomalies. You have a 2NF table, tableA, in a relational database. Give an example of an anomaly to which tableA might still be subject. Give...
Define what a relational database is. Describe its importance to an organization and why securing it...
Define what a relational database is. Describe its importance to an organization and why securing it is important
The management of Acme Widgets has agreed that a relational database management system should be implemented to track its customer and order information.
Case Study: Taking the Plunge/ CIW: Database Design SpecialistThe management of Acme Widgets has agreed that a relational database management system should be implemented to track its customer and order information. Joe is now tasked with recommending a specific RDBMS.Joe conducts several interviews with management in order to put together a requirements document. He is able to ascertain the following:The preliminary budget is minimal.The preliminary schedule is tight (management wants the system in place as soon as possible).Company sales have...
Give me an Analysis of Cognitive Development Theory (its relation to the individual), and a brief...
Give me an Analysis of Cognitive Development Theory (its relation to the individual), and a brief example of the theory (what is it?). Theorist: Jean Piaget School: Cognitivism
State the expectations theory and explain its significance. Using the generalized equation of the expectations theory...
State the expectations theory and explain its significance. Using the generalized equation of the expectations theory of the term structure of interest rates, calculate today's four-year rate, assuming that the current one-year, 6% rate is expected to rise by one percentage point in each of the next three years.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT