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

What are the elements of analysis model, What are the elements of Analysis ...

What are the elements of Analysis model? i. Data Dictionary ii. Data Flow Diagram iii. Entity Relationship Diagram iv. State Transition Diagram v. Process specifica

Determine the software development models, Determine the Software developme...

Determine the Software development models Software Engineering deals with development of software. Thus, understanding the basic characteristics of software is essential. Softw

What is the benefit of modular design, What is the benefit of modular desig...

What is the benefit of modular design? Changes made during testing and maintenance becomes manageable and they do not influence other modules.

Illustrate the relationship between time and cost, Q. Illustrate the relati...

Q. Illustrate the relationship between Time and cost? In software projects, time cannot be freely exchanged against cost. Such a trade off is limited by the nature of the softw

P, a simple text processing program with all essential functions (open and ...

a simple text processing program with all essential functions (open and save text documents, insert and delete text, search for words). We assume that text read from a file is stor

What is test suite, What is Test Suite - It is a collection of tests t...

What is Test Suite - It is a collection of tests that are used to validate the behavior of an application or product. - Generally a test Suite is a high level concept, grou

A frame diagram, We discussed the importance of framing a problem in order ...

We discussed the importance of framing a problem in order to understand the problem better and be able to develop a solution more quickly and easily. In this homework, you are aske

Determine the cyclomatic compexity, consider the following flow chart, a. D...

consider the following flow chart, a. Draw the flow graph and show the edges, regions and nods clearly b. show the independent paths c. calculate the cyclomatic complexity in three

Determine the meaning of vertical partitioning, Determine the meaning of ve...

Determine the meaning of vertical partitioning? Vertical partitioning often called factoring suggests that the control and work should be distributed top-down in program struct

State in brief about evolutionary prototyping, Explain Evolutionary prototy...

Explain Evolutionary prototyping Objective: The principal objective of this model is to deliver the working system to the end-user. Example-AI systems. Advant

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