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

Explain effort adjustment factor, Q. Explain effort adjustment factor? ...

Q. Explain effort adjustment factor? All of the 15 attributes receives a rating on a six-point scale that ranges from very low to extra high (in importance or value). An endeav

Developing conventional, a) Describe refactoring in XP practices. Why refac...

a) Describe refactoring in XP practices. Why refactoring is important for making high quality software systems using agile approach?   b) Can agile approach being used in dev

Discuss about throw-away prototyping, Discuss about Throw-away prototyping ...

Discuss about Throw-away prototyping Objective: The principal aims of this model is to validate or to gain the system requirements. It is developed to minimise requi

What is system test, An activity in which a system or component is implemen...

An activity in which a system or component is implemented under specified conditions, the results are observed and an evaluation is made of some problem of the system or component.

What are the common activities in design process, What are the common activ...

What are the common activities in design process? i. System structuring - The system is subdivided into principle subsystems components and communications among these subsystem

Explain the seven model primitives in 3d lingo, (a) Copying a graphic imag...

(a) Copying a graphic image from the Web can be as easy as pointing to it and clicking the right mouse button or performing a screen capture. The question is, under what circumsta

Time Line Chart for Online Shopping Management , Sir I need a Basic Ready m...

Sir I need a Basic Ready made Time Line Chart for Online Shopping Management Project Because I have to submit the Project Report on 8 April 2013 So can u provide some urgent help n

Determine the technique - parallel, Determine the technique - Parallel ...

Determine the technique - Parallel With this approach, old and new systems are run together for a time  -  If new system goes down for any reason, you still have old system

State the defined level of maturity model, Level 3 (Defined) The org...

Level 3 (Defined) The organisation satisfies all the requirements of level-2. Atthis maturity level, the softwaredevelopmentprocesses arewell defined, managed and documented

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