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 importance of software engineering, Importance of Software En...

Importance of Software Engineering As the application domains of software are becoming complicated and design of big software without a systematic method is virtually impossib

Explain about the incremental model, Explain about the incremental model. ...

Explain about the incremental model. Have same phases as the waterfall model. Phases are Analysis. Design. Code. Test. Incremental model deliver

What is software maintenance and cocomo model, What is software maintenance...

What is software maintenance? Software maintenance is a set actions in which program are customized after it has been put into use. COCOMO model :- COnstructive COst MOd

Mca, encoded micro instruction vs unecoded micro instruction

encoded micro instruction vs unecoded micro instruction

Explain about the software testing strategies, Explain about the software t...

Explain about the software testing strategies. A method approach to software testing. Verification and Validation. Verification refers to the set of activities tha

What is data validity, Data validity is the reasonableness and correctness ...

Data validity is the reasonableness and correctness of data.

Describe the data abstraction, What does Data abstraction contains? A D...

What does Data abstraction contains? A Data abstraction is a named collection of data that describes a data object Eg: door Attributes: door type, Opening mechanism, Swing d

What is coupling, What is coupling? Coupling is the measure of intercon...

What is coupling? Coupling is the measure of interconnection between modules in a program structure. It depends on the interface complexity among modules.

What are the various types of system testing, What are the various types of...

What are the various types of system testing? 1. Recovery testing - is intended to check the system's ability to recover from failures. 2. Security testing - verifies th

When must you stop testing, When must you stop testing? It is very diff...

When must you stop testing? It is very difficult to determine as many modern software applications are complex and run in such an interdependent environment that complete testi

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