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 compatibility testing, What is Compatibility testing - It's a n...

What is Compatibility testing - It's a non-functional test performed on a software system or component for checking its compatibility with the other parts in computing environm

Process models, Ask question what is abstraction ?#Minimum 100 words accept...

Ask question what is abstraction ?#Minimum 100 words accepted#

Write the steps followed in testing, Write the steps followed in testing? ...

Write the steps followed in testing? i. Unit testing - The individual components are tested in this type of testing. ii. Module testing - Related collection of independent c

State the advantages of prototyping, State the Advantages of Prototyping ...

State the Advantages of Prototyping Advantages of prototyping outperform problems of prototyping. Hence overall, it's a beneficial approach to develop prototype. End user can'

What does the insert statement in extract datasets do, What does the insert...

What does the insert statement in extract datasets do? It describes the fields of a field group.

What is criticality, What is Criticality? The degree of impact that a ne...

What is Criticality? The degree of impact that a necessity, module, error, fault, failure, or other item has on the operation of a system or development.

Define a macro, "State how you would type arguments h, o, w, n, o, w to the...

"State how you would type arguments h, o, w, n, o, w to the macro cat, define(cat, $1$2$3$4$5$6$7$8$9) so that the printed result was how now Describe exactly what happens when

State the software maintenance, What is software maintenance Alters to...

What is software maintenance Alters to the software are made in response to altered requirements but the fundamental structure of the software remains same.

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

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

Category Partition Testing and Data Flow Assignment, The following program ...

The following program will display an integral solution to the quadratic equation ax2+bx+c for integral values of a,b, and c, where a,c fall between 0 and 10, while b falls between

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