Question

2.a Please inte rpret the ERD as below. You need to interpret the entities and the meaning of the relationship, including the
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dear Student ,

As per the requirement submitted above , kindly find the below solution.

This demonstration is using SQL Server 2014.Database and Tables are created using SQL Server 2014.

Database :

--create database
create database empDegreeDB;

--create tables in the database
use empDegreeDB;

Tables :

1.Table Name :Employee

SQL Query :

/*1.Table Name :Employee*/
create table Employee(
EmployeeID int primary key,
EmployeeName varchar(20) not null
);

/*inserting records into employee table*/
insert into employee values (1,'Virat Kohli');
insert into employee values (2,'Sachin Tendulkar');
insert into employee values (3,'KL Rahul');

/*selecting records*/
select * from employee;

Screen in SSMS :

empDegreeDB.sql - NAGESH-PC.empDegreedB (NAGESH-PCNagesh (55)* File Edit View Query Project Debug Tools Window Help Execute D

********************************

2.Table Name :Degree

SQL Query :

/*2.Table Name :Degree*/
create table Degree(
DegreeCode varchar(3) primary key,
DegreeName varchar(20) not null
);

/*inserting records into Degree table*/
insert into Degree values ('C1','MBA');
insert into Degree values ('C2','MCA');
insert into Degree values ('C3','UG');

/*selecting records*/
select * from Degree;

Screen in SSMS :

嫛empDegreeDB.sql _ NAGESH-PC.empDegreeDB (NAGESH-PC\Nagesh File Edit View Query Project Debug Tools Window Help ? Execute Deb

*******************************

3.Table Name :EmployeeDegree

SQL Query :

/*3.Table Name :EmployeeDegree*/
create table EmployeeDegree(
EmployeeID int foreign key references Employee(EmployeeID),
DegreeCode varchar(3) foreign key references Degree(DegreeCode)
);

/*inserting records into EmployeeDegree table*/
insert into EmployeeDegree values (1,'C1');
insert into EmployeeDegree values (1,'C2');
insert into EmployeeDegree values (2,'C3');
insert into EmployeeDegree values (3,'C3');

/*selecting records*/
select * from EmployeeDegree;

Screen in SSMS :

嫛empDegreeDB.sql _ NAGESH-PC.empDegreeDB (NAGESH-PCNagesh (55)-Microsoft SQL File Edit View Query Project Debug Tools Window

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.

Add a comment
Know the answer?
Add Answer to:
2.a Please inte rpret the ERD as below. You need to interpret the entities and the...
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
  • 2. The following is the relation notation of a table for a veterinary office. [70 pts....

    2. The following is the relation notation of a table for a veterinary office. [70 pts. total] VETERINARY_OFFICE (PetID, PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName, ServiceDescription, ServiceDate, ServiceCharge) The functional dependencies are given below: PetID -> PetName, PetType, PetBreed, OwnerID, OwnerLastName, OwnerFirstName OwnerID -> OwnerLastName, OwnerFirstName ServiceDescription -> ServiceCharge PetID, ServiceDate > ServiceDescription, ServiceCharge Assumptions: 1)A pet belongs to only one owner, 2) an owner may have more than one pet, 3A pet receives at most one treatment on any...

  • Please solve it clear , in first box in the question *first image* what should I...

    Please solve it clear , in first box in the question *first image* what should I write , I don't understand can you do table in paper and solve it in clear Hand write it's follow the next image read then & ,thankyooou????? Relate each two of the three (or four) structures above with whether they are enantiomers or diastereomers. USE THE NUMBERS MENTIONNED IN THE BOXES ABOVE TO RELATE BETWEEN THEM. (3 points for each relation, any additional relation...

  • For Questions 43-46, please refer to the scenario below. You are called in to investigate an...

    For Questions 43-46, please refer to the scenario below. You are called in to investigate an outbreak of diarrhea after a dinner party. At the dinner party there were two dishes served, veni son and three-bean salad. There were 25 people at the party. Thirteen people ate the venison (12 did not), and 10 of them are complaining of diarrhea. Of those that did not eat the venison, two people report diarrhea. Further, twenty pecple ate the three- bean salad...

  • please solve them clear & be sure thank you . 1. (21 points) Is the following...

    please solve them clear & be sure thank you . 1. (21 points) Is the following compound a meso-compound? If yes, show it in 3D in the box below using wedged and dashed bonds to indicate the substituent bond direction and draw the internal mirror plane of symmetry (if any). (3 points) HOOC-CHOH-CHOH-COOH Draw the 3D structures of the stereoisomers of the compound above. Use wedged and dashed bonds to indicate the substituent bond direction in each stereoisomer. [Hint: if...

  • Please show work for all points In order to get a full credit, you need to...

    Please show work for all points In order to get a full credit, you need to show all work. 1) An octahedron is a solid with eight faces. Each face is shaped like a triangle with four faces a "1" is painted. On three faces a "3" is painted. And, on one face a "5" is painted. The experiment consists of tossing the solid twice, and X is the sum of the numbers on the top face each time. a)...

  • Need help with any and all of these questions!! ally interpret the data, using evidence in...

    Need help with any and all of these questions!! ally interpret the data, using evidence in y our answer. Be sure to discuss the pai ecision about the null hypothesis, and the practical (plain English) meaning of the results. t ce in your answer. gand Interpreting Data es below (Table 4 and 5) come from a study examining the changes in college students' values a tion sources of sexual values over the course of their first year in college. Students...

  • Really need help on this, apperciate all answers and feedback =D. You are the Senior Consultant...

    Really need help on this, apperciate all answers and feedback =D. You are the Senior Consultant at Abacus Consulting, tasked with the database project for Amadeus Real Estate client. The company employs real estate agents who work with customers to buy and sell properties (both residential and commercial). As part of your lead role, you are initially responsible for meeting with the client team and gathering requirements. You are then scheduled to design the data model and implement a working...

  • ChangeRequest(CRID, CRType, CRTitle, CROriginDate, CRPriority, CRNeedEvent, CRStatus) NeedByEvent(Event) CRPrevState(CRID, CRState, StartDate, EndDate) CRAssigned(CRID, EmpID, StartDate, EndDate)...

    ChangeRequest(CRID, CRType, CRTitle, CROriginDate, CRPriority, CRNeedEvent, CRStatus) NeedByEvent(Event) CRPrevState(CRID, CRState, StartDate, EndDate) CRAssigned(CRID, EmpID, StartDate, EndDate) Employees(EmpID, FirstName, LastName, JobTitle) ChangeRequest(CRID, CRType, CRTitle, CROriginDate, CRPriority, CRNeedEvent, CRStatus) The CRID is the primary key, it is unique, and it is an positive integer The CRType may be one of two values: "Deficiency" or "Enhancement" CRTitle is a variable length string that may be up to 2048 characters CROriginDate is a date CRPriority is an integer that may assume a value of...

  • Problem 2 (40 points) Consider the business rules below, describing a database of Dormitories and...

    Problem 2 (40 points) Consider the business rules below, describing a database of Dormitories and Students who live in the dorms. Every student must have a student ID, a name, gender. A student can have a meal choice (e.g.the choice of eat in the dormitory café every day for example "Yes" for choice of yes, "No" for no, and Null value represents not decided yet) No two students have the same combination of name and gender. (oNLY assumed in this...

  • 2. Calculate the velocity at each time (except the first and the last one) by using values immedi...

    2. Calculate the velocity at each time (except the first and the last one) by using values immediately after and before those times: the tn-- For example, the velocity at point 2 is n Time t (s) Position x (m) Velocity v (m/s) vt (unit-mls) aGou .245 8 3,abus 1.553 3. calculate v/t (what are the units?) and write it in column 5 of the table above. Calculate its average and its uncertainty: Average uncertainty: 4. On the graph paper,...

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