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

What is oo integration testing, This strategy includes testing the classes ...

This strategy includes testing the classes as they are integrated into the system. The traditional approach would test every operation separately as they are executed into a class.

Encapsulation, Illustrate the use of the concept Encapsulation.

Illustrate the use of the concept Encapsulation.

Explain acceptance testing, Testing conducted to verify whether or not a sy...

Testing conducted to verify whether or not a system satisfies its acceptance criteria and to enable the customer to verify whether or not to accept the system. Contrast with testin

What is requirement engineering, What is requirement engineering? Requ...

What is requirement engineering? Requirement engineering is the process of establishing the services that the customer needs from the system and the constraints under which it

What is integration testing and system testing, What is the difference in w...

What is the difference in writing the test cases for Integration testing and system testing? Integration testing is done at module level when lots of modules are integrated wit

Explain metric, Explain Metric? Ans) The measure of the extent or degree...

Explain Metric? Ans) The measure of the extent or degree to which a product possesses and exhibits a particular quality, property, or attribute.

Define the procedural abstraction, State Procedural abstraction. A Pro...

State Procedural abstraction. A Procedural abstraction is a named series of commands that has a specific and limited function. Eg: Open Walk to the door, reach out & grasp

What are the tools mainly used for information gathering, What are the tool...

What are the tools are mainly used for information gathering 1.  Record review: A review of recorded documents of organisation is performed.Manuals procedures, forms and book

State the cocomo model, What is COCOMO model? COCOMO stands for COnstru...

What is COCOMO model? COCOMO stands for COnstructive COst MOdel. It is used for cost Effort=a * KDLOCb Where a and b are two parameters of the model whose specific values

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