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

Process models, Ask question what is abstraction ?#Minimum 100 words accept...

Ask question what is abstraction ?#Minimum 100 words accepted#

When must a function throw an exception, When must a function throw an exce...

When must a function throw an exception? A function must throw an exception when it's not able to fulfil its promise. As soon as function detects a problem which prevents it

Explain operational testing, Describe Operational Testing? Ans) Testing ...

Describe Operational Testing? Ans) Testing done by the end user on software in its normal operating environment.

Business intelligence, What are the advantages and disadvantages of using a...

What are the advantages and disadvantages of using a Business Intelligence (BI) software system in a small/medium level business?

Srs, Why is SRS document known as black box specification of a system

Why is SRS document known as black box specification of a system

Explain iterative enhancement model, Explain Iterative Enhancement model ...

Explain Iterative Enhancement model Iterative Enhancement model: This model incorporates alters in the software based on the analysis of the existing system. Also the complet

What are the advantages and disadvantages of size measure, What are the adv...

What are the advantages and disadvantages of size measure? Advantages: Artefact of software development which is simply counted. Many existing methods use LOC as a key input. A

Define the behavioural model, Define the Behavioural Model It defines o...

Define the Behavioural Model It defines operational behaviour of the system.  In this model, numerous operations of the system are represented in pictorial form. Tools used to

What is sdlc , Explain  SDLC ? Ans) SDLC-( software development life cyc...

Explain  SDLC ? Ans) SDLC-( software development life cycle) is an acronym.

What does data dictionary contains, What does data dictionary contains? ...

What does data dictionary contains? Name: The primary name of the data. Alias: other names used Where-used/How-used: A record of processes that use the data or control it

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