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

Explain basic execution time model, Q. Explain Basic Execution Time Model? ...

Q. Explain Basic Execution Time Model? The model was developed by the J.D. MUSA in 1979(MUSA79) and is based on execution time. It is presumed that failures may occur according

Define data objects attributes and relationship, Define Data objects, attr...

Define Data objects, attributes & relationship. Data object: Illustration of any composite information that must be understood by a software. It can be any external entity. Att

Explain basic information flow model, Q. Explain basic information flow mod...

Q. Explain basic information flow model & it's more sophisticated versions? Ans. A Information flow metrics are useful to the components of a system design. For any compone

Write about software change methods, Write about software change methods. ...

Write about software change methods. The software change strategies that could be applied individually or together are: Software maintenance - The changes are made in the softw

Explain information flow index, Q. Explain Information Flow index? Inf...

Q. Explain Information Flow index? Information Flow index Information flow metrics are practical to the components of a system design. For any component A We are able to defi

Name the functionality which wasn''t listed in requirements, What do you do...

What do you do if you have provided functionality which wasn't listed in requirements? - If functionality isn't necessary to purpose of the application, it must be removed.

What is fault-based testing, 1. Testing that employs a test data selection ...

1. Testing that employs a test data selection method designed to obtain test data capable of demonstrating the absence of a set of pre-specified faults, typically, frequently happe

What is project scheduling, Question 1 What is project management? Explain...

Question 1 What is project management? Explain various activities involved in project management Question 2 Describe the following with respect to Estimation and Budgeting of

Mention the factors to be considered during system modelling, Mention some ...

Mention some of the factors to be considered during System Modeling. Simplifications Assumptions Constraints

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