Database schema, Software Engineering

Assignment Help:

Question

This question refers to the database Schema. Express the following queries in SQL:

(a) List the First Name, Last Name and telephone number of all employees who were hired in the year 1995.

(b) List all details of employee who is not managed by any employee.

(c) List full details of all employees who draw a salary between 10,000 and 18,000 and whose manager_id is either 100 or 101.

(d) List the Last Name and First Name of all employees who is a president (job_id is SA_PRES) OR a sales representative (job_id is SA_REP) AND who earns more than 15000.

(e) List the Last Name, First Name, salary and Annual Salary of all employees who do not get any commission. Display your result in descending order of the annual salary.

(f) List the First Name, Last Name, Salary, commission_pct and a column called special which will display the special features for those employee with the following condition:

- If the commission_pct value is not null, it is shown.
- If the commission_pct value is null, then the salary is shown
- If the commission_pct and salary is null, then the value 10 is shown.

(g) List the Last Name, job_id, department_id, department name for all employees who work in Toronto.

(h) List the employee last name, and employee number along with their manager's last name and manager number. Label the column Employee, Emp#, manager Mgr#, respectively.


Related Discussions:- Database schema

Describe the prototyping methods in software process, Describe the prototyp...

Describe the prototyping methods in software process. Two methods i. Evolutionary prototyping - In this approach of system development, the early prototype is prepared and i

Explain re-engineering, RE-ENGINEERING:- It is re-organizing and changing ...

RE-ENGINEERING:- It is re-organizing and changing existing system to make them more maintainable. It includes:-  Source code translation. Program structure development

Give explanation about the software testing strategies, Give explanation ab...

Give explanation about the software testing strategies. A strategic approach to software testing. Verification and Validation. Verification means a set of work o

What are quality management activities, What are Quality management activit...

What are Quality management activities. Quality assurance Establish organisational process and standards for quality. Quality planning Select applicab

What is stress testing, What is Stress testing - It checks the robustn...

What is Stress testing - It checks the robustness of application. - It verifies that application consistently provides satisfactory performance under unfavourable and extre

Write about the types of project plan, Write about the types of project pla...

Write about the types of project plan. Quality plan - This plan explains the quality procedures and standards that will be used in a project. Validation plan - This plan explai

What is software measure, What is software measure? A software measure ...

What is software measure? A software measure is a mapping from a set of objects in the software engineering world information a set of mathematical construct like numbers or ve

What is constructive cost model, Q. What is Constructive Cost Model? CO...

Q. What is Constructive Cost Model? COCOMO model denotes Constructive Cost Model. It is an empirical model basis on project experience. It is well-documented and independent mo

How can manager be used to handle exceptions in QTP, How can recovery scena...

How can recovery scenario manager be used to handle exceptions in QTP? QTP provides a wizard through Recovery Scenario Manger which can recover unexpected errors and events wh

What is code coverage and code inspection, What is Code Coverage and Code I...

What is Code Coverage and Code Inspection - This is an analysis method which verifies which parts of the software have already been covered by the test case suite and which are

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