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 about the incremental model, Explain about the incremental model. ...

Explain about the incremental model. Have similar phases as the waterfall model. Phases are Analysis. Design. Code. Test. Incremental model delivers

What are business process engineering tools, What are business process engi...

What are business process engineering tools? By modeling the strategic information needs of an organization, business process engineering tools give a "meta-model" from which e

What is operational requirements, What is Operational Requirements? Ans)...

What is Operational Requirements? Ans) Qualitative and quantitative parameters that states the desired operational capabilities of a system and serve as a basis for determining

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

Demonstrate the sequence of prototyping, Demonstrate the Sequence of protot...

Demonstrate the Sequence of prototyping Sequence of prototyping is demonstrated in following Figure.

Performing validation testing, What are the conditions exists after perform...

What are the conditions exists after performing validation testing? After performing the validation testing there exists two conditions.  The function or performance charact

Explain acceptance testing and beta testing, Explain acceptance testing and...

Explain acceptance testing and beta testing.  Acceptance Testing and Beta testing : System tests are designed to validate a fully developed system to make sure that it meets

Why do dns root servers hold entries for two-level, QUESTION - Name Service...

QUESTION - Name Services (a) Illustrate with help of a diagram the results of a DNS lookup and an ARP lookup assuming we are using IPv4. (b) Why do DNS root servers hold en

Equivalence class testing, Equivalence class testing Equivalence class ...

Equivalence class testing Equivalence class testing is based on partitioning the input domain of a program into a number of equivalence classes so that the test of a representa

What are the various types of coupling, What are the various types of coupl...

What are the various types of coupling? i. Data coupling - The data coupling is likely by parameter passing or data interaction. ii. Control coupling - The modules share c

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