Write sql code to make the changes, Software Engineering

Assignment Help:

Assuming that all the tables have been created as given in the relational schema, write SQL code to make the following changes in the structure of the tables:

(i) Make the employee_id the Primary Key of the EMPLOYEES table

(ii) Make the department_id and the manager_id the foreign key of the Employee table assuming that the department_id has been declared as the primary key of the DEPARTMENTS.

(iii) Add a check constraint in the Job_History table so that the end_date will always be greater than the start_date.

(iv) Add a unique constraint in the Employee table so that each employee will have a unique email address.


Related Discussions:- Write sql code to make the changes

Define object and class associations, Q. Define Object and class associatio...

Q. Define Object and class associations? Object/class associations:- Objects/classes interact with each other. Multiplicity defines how many instances of one object/class can

What is the use of a data flow diagram, Q. What is the use of a data flow d...

Q. What is the use of a data flow diagram? Explain the important concepts of data flow diagram. Ans. A data flow diagram is utilized to show the functional view of an applica

Importance of a document type definition in xml, Question: (a) Describe...

Question: (a) Describe the purpose and importance of a Document Type Definition in XML. (b) Describe the difference between PCDATA and CDATA with respect to a DTD. (c)

Discuss about rad model, Discuss about RAD Model Rapid Application D...

Discuss about RAD Model Rapid Application Development Model is the one type of incremental model. Gains the high speed development utilising component based construction.

What is system testing, What is System Testing System Testing : This t...

What is System Testing System Testing : This testing focuses on validating the product with respect to software specification Document. Methods like function testing (using Bl

Illustrate parameterization in qtp, Illustrate parameterization in QTP. ...

Illustrate parameterization in QTP. - Parameterization - Passing values from external source into script. - The number of values passed can be single or multiple. - It he

What are the different types of cohesion, What are the different types of C...

What are the different types of Cohesion? i. Coincidentally cohesive -The modules in which the set of tasks are related with each other loosely then such modules are known as

What is a test configuration manager, Test Configuration Managers handles t...

Test Configuration Managers handles test environments, scripts, software and test data. Depending on the project, single person may wear more than single hat. For example, Test Eng

Software quality and testing issues, Software quality and testing issues: ...

Software quality and testing issues: The aim of this assignment is to enable students to conduct an in-depth research on software quality and testing issues. Software Quality

Define design process, Define design process. Design process is a seque...

Define design process. Design process is a sequence of steps carried by which the requirements are translated into a system or software model.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd