Question

In: Computer Science

Employee ID First Name Last Name email Title Address Extension Department Department ID Hiring Date Department...

Employee ID

First Name

Last Name

email

Title

Address

Extension

Department

Department ID

Hiring Date

Department Phone #

0001

John

Smith

jsmith

Accountant

1300 West st

5775

Accounting

2100

8/1998

407-366-5700

0002

Brian

Miller

badams

Admin Assistant

1552 Palm dr

5367

Human resource

2300

4/1995

407-366-5300

0003

James

Miller

miller

Inventory Manager

2713 Buck rd

5432

Production

2520

8/1998

407-366-5400

0004

John

Jackson

jackson_sam

Sales Person

433 tree dr

5568

Sales

2102

6/1997

407-366-5500

0005

Robert

Davis

Davis

Manager

713 corner st

5642

Production

2520

1/2001

407-366-5400

0006

Paul

Thompson

thompsonp

Market Analyst

205 Bridge dr

5744

Marketing

2101

5/2003

407-366-5600

0007

Sandy

Davis

SDavis

Manager

713 Corner st

5702

Accounting

2100

11/1999

407-366-5700

1. List the major entities identified in the table above

2. After examining the table carefully identify candidate keys. Remember from the lecture that a candidate key field has to be unique, but should not hold private information that might compromise person's identity. For example SSN is unique and can be used to determine student information, so it is a candidate key, but using SSN might compromise student security for that it will not be used as primary key. The combination of first name and last name is not unique and cannot be used as a candidate key. Once the candidate keys been identified, some will be as primary keys and will be used to normalize the table. To connect the tables, the primary key of one table can be used as a foreign key in the other.

Solutions

Expert Solution

=== (1) ===
Entities in the relation:
- Employee ID
- First Name
- Last Name
- email
- Title
- Address
- Extension
- Department
- Department ID
- Hiring Date
- Department Phone #

=== (2) ===
Candidate keys:

- Employee ID
- email
- Extension
- First Name, Last Name
- First Name, Title
- First Name, Address
- First Name, Department
- First Name, Department ID
- First Name, Hiring Date
- First Name, Department Phone #
- Last Name, Department
- Last Name, Department ID
- Last Name, Hiring date
- Last Name, Department Phone #
- Title, Department
- Address, Department
- Title, Hiring Date
- Address, Hiring Date
- Department, Hiring Date
- Department ID, Hiring Date
- Hiring Date, Department Phone #
- Address, Department Phone #
- Title, Department Phone #

Note:

- for the given data values, the first name and last name together forms a unique identifier, unlike the given explanation in the question. Any subsequent modification in the dadta should also be changed in the solution.

- Candidate keys represent the minimum combination of entities that can uniquely identify a tuple in the given relational data.


Related Solutions

Write an SQL query that will output the employee id, first name and hire date from...
Write an SQL query that will output the employee id, first name and hire date from the employee table. Pick only those employees whose employee ID is specified in the employee table (no nulls). If the employee id is 777, name is ABC and hire date is 01-JAN-2016, the output should be like - ' ABC (Employee ID - 777) was hired on 1, January of 2016'. Note - The date should not have preceding zeros.
List department name, employee id, and employee name for all employees in department name order. Repeat...
List department name, employee id, and employee name for all employees in department name order. Repeat for department #10 only. List the course ID, course name, section, instructor name, day, time, and room for all course sections. List the course ID, course name, section, student ID, and student name for CRN 1003. Display the list in ascending order of student last and first names. DROP TABLE registration; DROP TABLE sections; DROP TABLE courses; DROP TABLE students; DROP TABLE instructors; CREATE...
Create a table ‘StudentInfo’ with following fields: ID First Name Last Name SSN Date of Birth...
Create a table ‘StudentInfo’ with following fields: ID First Name Last Name SSN Date of Birth Create a table ‘ClassInfo’ table: ID Class Name Class Description Create a table ‘RegisteredClasses’ table: StudentID ClassID The RegisteredClasses table should have a foreign key relationship to StudentInfo and ClassInfo tables for the respective IDs. Also the IDs in StudentInfo and ClassInfo need to be primary keys. When you submit the file your email should also contain the following SQL Queries: Query to show...
Develop an algorithm to implement an employee list with employee ID ,name designation and department using...
Develop an algorithm to implement an employee list with employee ID ,name designation and department using link list and perform the following operation on the list i)add employee details based on department ii)remove employee details iv)count the number of employee in each department
Q3. Create a Company trading computer accessories with your Student ID & Name, address, College Email...
Q3. Create a Company trading computer accessories with your Student ID & Name, address, College Email ID and phone number for the year ended 31st Mar, 2020, and enter the following transactions using appropriate vouchers in Tally ERP 9 software: (3 Marks + 7 Marks) 1st Jan 2020, Started his business with an investment of RO 45,000 in cash. 2nd Jan 2020, Purchases computer accessories of RO 20,000 on credit from Mr. Salim. 31st Jan 2020, Sold computer accessories worth...
Q3. Create a Company trading computer accessories with your Student ID & Name, address, College Email...
Q3. Create a Company trading computer accessories with your Student ID & Name, address, College Email ID and phone number for the year ended 31st Mar, 2020, and enter the following transactions using appropriate vouchers in Tally ERP 9 software: (3 Marks + 7 Marks) 1st Jan 2020, Started his business with an investment of RO 45,000 in cash. 2nd Jan 2020, Purchases computer accessories of RO 20,000 on credit from Mr. Salim. 31st Jan 2020, Sold computer accessories worth...
Design and implement a C++ Application that: Interactively input: Employee First Name Employee Last Name Employee...
Design and implement a C++ Application that: Interactively input: Employee First Name Employee Last Name Employee id Employee hours worked per week Employee Pay Rate Menu with Option to: Print out Employee Report in the following report format Search for an Employee Display the Report in Sorted based on Last Name or ID Calculate the Pay Quit Criteria: Be sure to use Parallel Arrays to Store the Employee Information Output must be formatted and line up with the column header...
SQL statmen: List the first name, the last name, the address, the city, the state, the...
SQL statmen: List the first name, the last name, the address, the city, the state, the branchNo, and the email of agents working in the branch B005 and having email addresses ending with extensions different from .com.
Create a query that shows the last name, employee ID, hours worked, and overtime amount owed...
Create a query that shows the last name, employee ID, hours worked, and overtime amount owed for hourly employees who earned overtime during week 2. Overtime is paid at 1.5 times the normal hourly rate for all hours worked over 40. Note that the amount shown in the query should be just the overtime portion of the wages paid. Also, this is not a totals query- amounts should be shown for individual workers. QBE grid template. This is the exact...
We plan to develop customer’s database that stores customer’s number (ID), first name, last name and...
We plan to develop customer’s database that stores customer’s number (ID), first name, last name and balance. The program will support three operations: (a) reading and loading customer’s info from the text file, (b) entering new customer’s info, (c) looking up existing customer’s info using customer’s number(ID), (d) deleting the customer’s info and (e) the updated database will be stored in the text file after the program terminate. Customer’s database is an example of a menu-driven program. When the program...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT