Verified Document

Relational Databases For Each Table, Identify The Essay

Related Topics:

Relational Databases

For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None in the space provided.

PRIMARY KEY

FOREIGN KEY

Truck

TRUCK_NUM

BASE_CODE, TYPE_CODE

Base

BASE_CODE

TYPE_CODE

Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.

ENTITY INTEGRITY

EXPLANATION

Truck

All rows under the primary key TRUCK_NUM are uniquely identified and there are no null entries

Base

All rows under the primary key BASE_CODE are uniquely identified and there are no null entries

All rows under the primary key TYPE_CODE are uniquely identified and there are no null entries

19. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer. Write NA (Not Applicable) if the table does not have a foreign key.

TABLE

REFERENTIAL INTEGRITY

EXPLANATION

Truck

Yes

All values under the foreign keys BASE_CODE and TYPE_CODE refer to a valid tuple in the BASE and TYPE tables, respectively. Null values are allowed

Base

NA

NA

Type

NA

NA

20. Identify the TRUCK table's candidate key(s).

Aside from the foreign keys BASE_CODE and TYPE_CODE, all other keys are candidate keys because they could be used as unique identifiers for each truck. This statement assumes that the nine trucks listed in the table is exhaustive. The candidate keys are therefore: TRUCK_NUM, TRUCK_MILES, TRUCK_BUY_DATE, and TRUCK_SERIAL_NUM.

21. For each table, identify a superkey and a secondary key.

TABLE

SUPERKEY

SECONDARY KEY

Truck

TRUCK_NUM; TRUCK_SERIAL_NUM; TRUCK_NUM, BASE_CODE; etc.

TRUCK_SERIAL_NUM

Base

BASE_CODE; BASE_CITY; etc.

BASE_STATE

Type

TYPE_CODE

TYPE_DESCRIPTION

22. Create the ERD for this database.

1 M

BASE has TRUCKS

(0,N) (1,1)

(0,3) 1

has

(0,3) M

TYPE

23. Create the relational diagram for this database.

BASE

BASE_CODE

BASE_CITY

BASE_STATE

BASE_AREA_CODE

BASE_PHONE

BASE_MANAGER

1

TRUCK

TRUCK_NUM

BASE_CODE

TYPE_CODE

TRUCK_MILES

TRUCK_BUY_DATE

TRUCK_SERIAL_NUM

TYPE

TYPE_CODE

TYPE_DESCRIPTION

1

References

Colonel, C., Morris, S., & Rob, P. (2012). Database Systems: Design, Implementation, and Management (10th edition). Boston, MA: Cengage Learning.

Cite this Document:
Copy Bibliography Citation

Related Documents

Databases and Regulatory Compliance Challenges
Words: 3434 Length: 13 Document Type: Research Paper

Databases and Regulatory Compliance Challenges The advent of technology has increased the popularity of database usage in firms, yet the legislation regulating the field has yet to be finalized. The changing nature of the IT sector, coupled with the legislative traits, creates several situations in which the companies find it difficult to comply with the regulations. This paper recognizes some of those difficulties, and also proposes some solutions. Databases Regulatory challenges for databases No

Transition of Traditional Relational Database
Words: 7211 Length: 26 Document Type: Capstone Project

They in short link and map ideas that already exist, creating real time answers to questions as they are applied to new and archived knowledge or action plans. According to IDC reports, most data warehouses will be stored in a columnar fashion and not in rows, reporting and data collection problems will be solved with databases that have no formal schema at all, horizontal scalability through clustering will be achieved

Using Access for Databases
Words: 3481 Length: 7 Document Type: Essay

Database Using Access Jorge Martinez Guzman Information and Knowledge Management Charles Beverley Introduction to Databases Relational and Entity Relational Databases Cardinalities and Roles in Database Design Business Rules and their Reflection in the Entity Relationship Diagrams Reviewing the Conceptual Model (Figure Q4.5) Creating a Database Using Access Best Practices Database Maintenance Database Normalization Entity-Relationship-Diagram Entity representation Attributes Representation Primary Key Representation Relationship Representation Using Microsoft Access Computing technology has greatly aided human development and has presented new and more efficient methods to meet various objectives to be accomplished

Coding Relational Algebra Operations Varies From School
Words: 988 Length: 4 Document Type: Essay

Coding relational algebra operations varies from school to school. I wrote it according to my training, but there are variations. Review and rewrite in own words so as to preclude plagiarism. What is a relation schema? What is the difference between a relation, a relation schema, and a relational schema? A relation schema is the basic information that describes a table or a relation. This includes the set of column names,

Geometrically, Various Query Languages Has
Words: 4443 Length: 16 Document Type: Research Paper

Queries are posed in terms of a certain query language over the alphabet of the global ontology and are intended to extract a set of tuples of elements of the semantic domain. In accordance with what is typical in databases, each query is required to have an associated arity and that it extract only tuples of that arity. Given a source database for O, the tuples of interest are

Database What Is a Database
Words: 1421 Length: 5 Document Type: Term Paper

These factors further accelerate the value and TCO of databases over time. Describe the features, tools, and utilities of Structured Query Language (SQL). How can tasks be automated with SQL? SQL has specifically been designed with features, tools and utilities to enable programmers to support nth-tier data architectures in addition to legacy client-server computing scenarios. The development and continual improvement of the features, tools and utilities of SQL for automating tasks

Sign Up for Unlimited Study Help

Our semester plans gives you unlimited, unrestricted access to our entire library of resources —writing tools, guides, example essays, tutorials, class notes, and more.

Get Started Now