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

Describe in brief about the elementary process, Elucidate elementary proces...

Elucidate elementary process. Software applications are a combination of various elementary processes. Various elementary processes come together to form an application. Ele

What are the tools used in system analyst, What are the Toolsused in system...

What are the Toolsused in system analyst Systems analyst have numerous tools to help them in carrying out their work. As many of their projects are for big companies it is ess

Hardware and software requirements - cds - isis software, Hardware and Soft...

Hardware and Software Requirements: The present versions of CDS/ISIS require the following minimum hardware and software:  i)  MS-DOS Version: an IBM PC or Compatible micro

Explain about the spiral model, Explain about the Spiral Model This mod...

Explain about the Spiral Model This model can be considered as the model that combines the strengths of various other models. Conventional software development processes don't

What are the reasons behind to perform white box testing, What are the reas...

What are the reasons behind to perform white box testing? There are three major reasons behind performing the white box testing. 1. Programmers may have some incorrect assum

Explain productivity, Productivity Productivity refers to metrics and c...

Productivity Productivity refers to metrics and calculates of output from production processes, per unit of input. Productivity P may be conceived of as a metrics of the techni

What is a data object, What is a data object? Data object is a collecti...

What is a data object? Data object is a collection of attributes that act as an aspect, characteristic, quality, or descriptor of the object.

Name some common software standards, Name some Software Standards Num...

Name some Software Standards Numerous terms related to software engineering are regularly standardised by organisations like IEEE (Institute of Electrical and Electronics Engi

Transfection and transduction, What is difference among transfection and tr...

What is difference among transfection and transduction? Ans) Transfection: Transmission of naked DNA into eukaryotic cell Transduction: Transmission of genetic material from

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