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

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

Database Technology Administration Database Technology
Words: 4402 Length: 15 Document Type: Essay

" "STUDENT INFORMATION TABLE" ( "STUDENT ID" CHARACTER (4) NOT NULL, NAME CHARACTER (25) NOT NULL, "STREET NUMBER" CHARACTER (10) NOT NULL, "STREET NAME" CHARACTER (25) NOT NULL, CITY CHARACTER (25) NOT NULL, STATE CHARACTER (10) NOT NULL, EMAIL CHARACTER (25) NOT NULL, "PHONE NUMBER" CHARACTER (15) NOT NULL ); CONNECT RESET; SQL FOR Book_Information CONNECT TO LIBRARY; CREATE TABLE "USER"; CREATE TABLE BookInformation ( "BookISBN" CHARACTER (10) NOT NULL; "AUTHOR" CHARACTER (25) NOT NULL; "TITLE" CHARACTER (50) NOT NULL; "PRICE" CHARACTER (10) NOT NULL; CONNECT RESET; SQL STATEMENT FOR

Database Data Warehousing Design Data Warehousing Is
Words: 1314 Length: 4 Document Type: Essay

Database Data Warehousing Design Data warehousing is a powerful tool that business organizations use to enhance competitive advantages. Data warehousing supports business decision by collecting, organizing and consolidating data for analysis and reporting using tools such as OLAP (online analytical processing ) and data mining. Typically, the relational database technology is generally being used to design a data warehousing and a relational database is a database having collection of tables, and

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

Database Design for SPA Hotel Booking System
Words: 3480 Length: 12 Document Type: Term Paper

Database Design for Spa/Hotel Booking System The WR (Woodlands Retreat) is a medium sized organization currently intending to build a database system to integrate modern IT (information systems) in its business operation to enhance its dynamic and innovative business operations. Although, the Woodlands Retreat has an IT system, however, the current systems are not capable of keeping book records as well as not capable of managing all data for the company

Database Administrator for Department Store
Words: 3901 Length: 13 Document Type: Research Paper

Database Administrator for Department Store Scenario The department store has expanded in the local region by opening five more bookstores, and the bookstore has launched a series of marketing campaign to increase sales and attract new customers. The objective of this technical report is to develop a plan to create and maintain an enterprise-wide database system that will assist the bookstore to hold the inventory and sales data. The database design will

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