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

Software document, explain software document.create the necessary documents...

explain software document.create the necessary documents for employee management system.

What does data abstraction contains, What does Data abstraction contains? ...

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

How to write the data dictionary, Write down the Data dictionary for the da...

Write down the Data dictionary for the data item "Telephone Number". Names: Telephone number Aliases: none Where to use /How to use: assess against set-up Explanation

Explain in detail about integration testing, Explain in detail about Integr...

Explain in detail about Integration testing. It is a systematic method for constructing the program structure. Incremental integration - The program is constructed and

Determine the boundary value analysis, What is a boundary value analysis? ...

What is a boundary value analysis? A boundary value analysis is a testing procedure by which the elements at the edge of the domain are selected and tested. It is a test case d

Disadvantage of software package, Disadvantage of Software package: Th...

Disadvantage of Software package: There are some disadvantages which need to be looked into. They are:  i)  A commercial software package will have a number of built-in

Advantage of prototype software development model, Q What is the advantage...

Q What is the advantage of utilizing prototype software development model instead of waterfall model? As well explain the effect of defining a prototype on the overall cost of the

What is dfd, What is DFD? Data Flow Diagram depicts the information flo...

What is DFD? Data Flow Diagram depicts the information flow and the transforms that are applied on the data as it moves from input to output.

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