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

Illustrate the relationship between time and cost, Q. Illustrate the relati...

Q. Illustrate the relationship between Time and cost? In software projects, time cannot be freely exchanged against cost. Such a trade off is limited by the nature of the softw

Graphical design notation, Explain any two graphical design notations used ...

Explain any two graphical design notations used in procedural design

How to compute the cyclomatic complexity, How to compute the cyclomatic com...

How to compute the cyclomatic complexity? The cyclomatic complexity can be computed by any one of the following ways. 1. The numbers of regions of the flow graph correspond

Explain walk-through, Explain Walk-through? Ans) A walk-through (in soft...

Explain Walk-through? Ans) A walk-through (in software QA) is a casual meeting for evaluation or informational purposes. A walk-through is also a method at an abstract level. It

What happens when gui maps are loaded, What happens when GUI maps are loade...

What happens when GUI maps are loaded? When a GUI map is loaded following things take place: - All object logical names, window information and physical descriptions gets lo

State the both cardinality and modality, Define Cardinality & Modality. ...

Define Cardinality & Modality. Cardinality: Specification of the number of occurrences of one that can be correlated to number of occurrences of another. Modality: The Moda

Illustrate iterative waterfall model, Iterative waterfall model The ite...

Iterative waterfall model The iterative waterfall model is as shown in the following figure. Requirement gathering phase in which all needs are identified. The design

Explain the phased waterfall model, Explain the Phased Waterfall Model ...

Explain the Phased Waterfall Model It is a type of waterfall model where the project is separated into small phases and delivered at intervals by dissimilar teams. Different Te

What is validation testing, What are the conditions exists after performin...

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

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