Question

1. {90 points} Your task is to design a Company database capable of storing information about EM- PLOYEE(S), DEPARTMENT(s),

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans-1)I have attached the ER diagramDepartment Admin Adminid [PK] + userid DepartmentId[PK] departmentname location startdate mangerid manages password has Emplocreate table employee(empId int primary key,social_sec_no varchar(40) unique,address varchar(40), salary numeric ,telephone numeric,deptId int references department(deptId));

create table department(deptId int primary key,deptname varchar(40),location varchar(40) ,managerid int,startdate date );

create table project(projectid int primary key,project name varchar(40),project_location varchar(40),empId int references employee(empId));

We have one to many relationship.

Ans-2 )Primary key are the unique identifier which are used to identify a record uniquely in a table .For example we have empId in employee as primary key.Similary deptId in department and projected in project.

Foregin key are the primary keys of one table when mapped to another table are called foreign keys.The are used to map records of one table with other uniquely.For ex deptId in employee table is primary key of department table but is a foreign key in employee table.Similarly , empId is primary key of employee table but foreign key in project table.

Add a comment
Know the answer?
Add Answer to:
1. {90 points} Your task is to design a 'Company database capable of storing information about...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Database Analysis and Design (ER diagram) After the requirement collection and analysis phase the software project...

    Database Analysis and Design (ER diagram) After the requirement collection and analysis phase the software project of a database application about a company is described as follows: 1. The company is organized into departments. Each department has a name, an unique number, and a particular employee who manages the department. We keep track of the start date when the employee began managing the dept. A dept may have several locations. 2. A dept controls several projects, each of which has...

  • Project Database Description After the requirement collection and analysis phase the software project of a database...

    Project Database Description After the requirement collection and analysis phase the software project of a database application about a company is described as follows: The company is organized into departments. Each department has an unique name, an unique number, and a particular employee who manages the department. We keep track of the start date when the employee began managing the dept. A dept may have multiple locations(cities). A dept controls a number of projects, each of which has a unique...

  • Projects inc. is an engineering firm with approximately 50 employees A database is required to keep...

    Projects inc. is an engineering firm with approximately 50 employees A database is required to keep track of all employees, their skills, projects assigned and departments worked in. Every employee has a unique number assigned by the firm, required to store her or his name and data of birth. If an employee is currentty married to another employee of Projects tnc. the data of the marriage and who the employee is married to must be stored. Howeer no record of...

  • Question 4 Needs Grading Q1) (2.5 Points ) We would like to design a database to...

    Question 4 Needs Grading Q1) (2.5 Points ) We would like to design a database to keep track of a zoo. The following describes the business of the zoo: • The zoo employees are known as zookeepers. Each zookeeper has a name, a unique employee ID number, and a salary. Zookeepers may work in any number of exhibits but they have to be involved in at least one exhibit. A zookeeper does not have to work in an exhibit to...

  • Problem 1 (25 points) Consider the following database schema: Employee (fname, Iname, ssn, address, salary, mgrssn,...

    Problem 1 (25 points) Consider the following database schema: Employee (fname, Iname, ssn, address, salary, mgrssn, dnumber) Department (dname, dnumber, mgrssn, mngrstartdate) Project (pname, pnumber, plocation, dnumber) Works_On (ssn, pnumber, hours_per_week) Dependent (ssn, dependent name, bdate, relationship) The above relations store information about a company. The meaning of most of the relations and attributes is straightforward. For example, the first relation stores information about employees. The mgrssn is the SSN of the manager (supervisor) of the given employee. A manager...

  • Database 1. Draw an Entity-Relationship diagram(including cardinality ratio and participa- tion constraint) to represent the following...

    Database 1. Draw an Entity-Relationship diagram(including cardinality ratio and participa- tion constraint) to represent the following application: A DEPARTMENT has a number of TEACHERS and each TEACHER is affil- iated only with one DEPARTMENT; A STUDENT has only one TEACHER as an advisor, but a TEACHER can advise many STUDENT; on the other hand, TEACHER instructs many STUDENTS, and a STUDENT has a number of instructors. Different AGENCIES support different TEACHERS for various PROJECTS. (15 points) A trucking company is...

  • Below is a sample Project Management Report that ABC Company uses. Your task is to begin...

    Below is a sample Project Management Report that ABC Company uses. Your task is to begin the process of creating a set of normalized relations based on this form. Project Management Report Project No. Project Title: 035 Pensions System Project Manager: Project Budget: Mike Phillips $75,000 Department No. Department Name Number of Hours 110 40 Employee No. 101 135 316 556 564 621 Total Statt: 200 Employee Name Antoine Smith Liz lones Yvonne Lewis Anita Stent Denise Smith Laura Davis...

  • Problem 1 Consider the following set of requirements for a university database that is used to...

    Problem 1 Consider the following set of requirements for a university database that is used to keep track of students' transcripts. (a) The university keeps track of each student's name, student number, social security number, current address and phone, permanent address and phone, birthdate, sex, class (freshman, sophomore, -, graduate), major department, minor department (if any), and degree program (B.A., B.S., ...., Ph.D.). Some user applications need to refer to the city, state, and zip of the student's permanent address,...

  • SWL Team Tasks 1. Rick asked you to help him put together a brief progress update...

    SWL Team Tasks 1. Rick asked you to help him put together a brief progress update for Michael Jeremy and several other top managers. Specifically, Rick wants you to explain the concept of normalization without using a lot of technical jargon. Rick wants you to summarize the concept using plain English and simple examples. 2. At SWL, each employee is assigned to a specific department. Employees from several departments often are assigned to special project teams, however, when a new...

  • Consider the following information about a patient database: A patient is identified by patient id, and...

    Consider the following information about a patient database: A patient is identified by patient id, and admission date. A patient must be either an Emergency patient or a resident patient. We must record the checkback date for Emergency patient. Only resident patient is assigned to one room. Room has a unique number, degree, and floor number. For each room there are a number of beds each of which has a bed number, specification. If a room is deleted, you need...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT