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

Write a valid schema for the container, A storage tank has a container to k...

A storage tank has a container to keep a certain amount of fuel and it also has an indicator to inform about the level of fuel inside the container. The container cannot exceed

Relationship between agent technology and grid computing, Question: (a)...

Question: (a) Show three application areas for agents. (b) What do you meant by "temporally coupled coordination"? Provide an example of a temporally coupled coordination

Salient features of ISO 9001 certification, Q. Salient features of ISO 9001...

Q. Salient features of ISO 9001 certification? Ans) Salient(noticeable) features of ISO 9001 certification are :- All documents concerned with the development of a softw

Post-production design feedback for future designs, Q. Post-production desi...

Q. Post-production design feedback for future designs ? Post-production design feedback for future designs Implementation it is introducing the designed solution into

Give explanation about the incremental model, Give explanation about the in...

Give explanation about the incremental model. - Have same phases as the waterfall model. - Phases are as follows: Analysis. Code. Design. Test. Incre

Iterative and evolutionary development, what is iterative and evolutionary ...

what is iterative and evolutionary developments? how iteration help in refining requirements

Prolog, package(''python'', ''2.6.5''). package(''python'', ''2.5.4''). pac...

package(''python'', ''2.6.5''). package(''python'', ''2.5.4''). package(''python'', ''1.5.2''). package(''python'', ''3.1.0''). and I already have these functions that provide me:

What is control chart, What is Control Chart? Ans) A statistical method ...

What is Control Chart? Ans) A statistical method for distinguishing among common and special cause variation exhibited by processes.

What is software, What is Software? Software is nothing but a collectio...

What is Software? Software is nothing but a collection of computer programs that are related documents that are indented to give desired features, functionalities and improved

Illustrate evolutionary prototyping, Illustrate Evolutionary prototyping ...

Illustrate Evolutionary prototyping Objective: The main objective of this model is to show the working system to the end-user. Example-AI systems. Advantages

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