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 intermediate and detailed cocomo model, Q. Explain Intermediate and...

Q. Explain Intermediate and Detailed COCOMO model? Intermediate COCOMO calculates software development effort as function of program size and a set of cost drivers that include

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 planned to check the system's ability to recover from failures. 2. Security testing - determines t

What is boundary data- Test data, What is boundary data- Test data Ex...

What is boundary data- Test data Extreme/boundary data -  This is data at the limits of validity/acceptability (for instance, if a date is being input, two values at the

Data Mining Question, This assignment uses the data set rent.txt, the Housi...

This assignment uses the data set rent.txt, the Housing Rent Prices in Munich file available at ">http://www.interactivegraphics.org/Datasets.html. 1.Produce a scatterplot of Re

Elaborate on the characteristics of a good team player, Question 1: In ...

Question 1: In his book Tales of a New America, Robert Reich describes the importance of teamwork in an increasingly technological age: Rarely do even Big Ideas emerge any l

What is validation and verification testing, Explain Validation and verific...

Explain Validation and verification testing? Ans) Used as an entity to describe a procedure of review, analysis, and testing all over the software life cycle to discover errors,

What is equivalence class testing, Q. What is Equivalence class testing? ...

Q. What is Equivalence class testing? Equivalence class testing is based on the partitioning the input domain of a program into a number of equivalence classes so that the test

What is customer (end user), What is Customer (end user)? Ans) The organ...

What is Customer (end user)? Ans) The organization or individual, internal or external to the producing organization that takes the product.

Explain the evolutionary model, Explain the Evolutionary Model. Ideal f...

Explain the Evolutionary Model. Ideal for software products that have their feature sets redefined during development because of user feedback and other factors. The Evolutiona

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