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 metrics, Define metrics. Metrics is explained as the degree to w...

Define metrics. Metrics is explained as the degree to which a system component, or process possesses a given attribute.

State the system engineering hierarchy, State the System Engineering Hierar...

State the System Engineering Hierarchy? The world view is composed of a set of domains (Di), which can each be a system, or system of systems. WV = {D1,D2,D3,...........,Dn}

Hello, What is Queue management sysyem? literature review of Queue managem...

What is Queue management sysyem? literature review of Queue management system

What is parallel/audit testing, Parallel/audit testing is testing where the...

Parallel/audit testing is testing where the user reconciles the output of the latest system to the output of the present system to determine the new system performs the operations

Category Partition Testing and Data Flow Assignment, The following program ...

The following program will display an integral solution to the quadratic equation ax2+bx+c for integral values of a,b, and c, where a,c fall between 0 and 10, while b falls between

Form building, how can i build a data base in easy method on database

how can i build a data base in easy method on database

What is reverse engineering, What is reverse engineering?    It is a pr...

What is reverse engineering?    It is a process of examining software with a view to understanding its design and specification. -  In reverse engineering, source code and i

What is statement testing, Testing to satisfy the criterion that every stat...

Testing to satisfy the criterion that every statement in a program be implemented at least once during program testing.

Project, hello, i am struggling with my final year project and i dont have ...

hello, i am struggling with my final year project and i dont have that huge amount of time to do it??

Explain communicational cohesion, Communicational cohesion : Communicationa...

Communicational cohesion : Communicational cohesion is when parts of a module are grouped because they operate on the similar data (e.g. a module which operates on the similar reco

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