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

Determine the latest trend in software engineering, Determine the Latest tr...

Determine the Latest trend in software engineering Latest trend in software engineering includes the concepts of software reusability, reliability, scalabilityetc. More and mo

What is problem, What is Problem Any deviation from defined standards. S...

What is Problem Any deviation from defined standards. Similar as defect.

C++, program for full subtractor?

program for full subtractor?

Define in brief about the silktest agent, Define in brief about the SilkTes...

Define in brief about the SilkTest Agent SilkTest component which receives testing commands from SilkTest Host and interacts with AUT (Application under Test) directly. SilkT

What is vertical partitioning, What is Vertical partitioning 1. The Co...

What is Vertical partitioning 1. The Control & work should be Modular Hierarchy for each distributed top-down in the program major program function structure 2. Higher prob

Why system flowcharts are used, System flowcharts System flowcharts are...

System flowcharts System flowcharts are used to demonstrate how all the components in a system link together (for example input, storage, output, processing etc.). They are ver

What is inheritance, Q. What is Inheritance? Inheritance:- Inheritance...

Q. What is Inheritance? Inheritance:- Inheritance is defined as the property of objects by which instances of a class can have access to data and programs contained in a previ

Discuss about the software maintenance, Discuss about the Software Maintena...

Discuss about the Software Maintenance Maintenance in the normal sense means correcting problems caused by wear and tear though software maintenance is different.  Software is

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