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

Design test cases for loop testing, Q. Regard as a program that reads a set...

Q. Regard as a program that reads a set of Data for 'n' no. of triangles. The program reads three integer values like representing the sides of triangles. The program prints for ea

How is cyclomatic complexity useful in program test, Q. How is cyclomatic c...

Q. How is cyclomatic complexity useful in program test and What is sequence of testing and  What is testability? Ans. Cyclomatic complexity measures the amount of decision lo

How to build the structure chart, Q. How to build the Structure Chart? ...

Q. How to build the Structure Chart? Building the Structure Chart Processes in the DFD are liable to represent one module on the structure chart Efferent processes

State some guidelines for testing, State some guidelines for testing Th...

State some guidelines for testing The below are some guidelines for testing: i)  Test modules thoroughly, cover all the access paths and produce enough data to cover all the

Explain bottom-up integration, Bottom-up integration This testing start...

Bottom-up integration This testing starts construction and testing with the components at the lowest levels in the program structure.

Explain configuration management, Configuration management (CM) covers the ...

Configuration management (CM) covers the tools and procedure used to control, coordinate and track code, needs, documentation, problems, change requests, designs, tools, compilers,

Data dictionary, how to write data dictionary for course management system

how to write data dictionary for course management system

What are the benefits of smoke testing, What are the benefits of smoke test...

What are the benefits of smoke testing? Integration risk is minimized. The quality of the end-product is improved. Error diagnosis and correction are simplified. Asses

Explain the incremental model, Explain the Incremental Model Iterative ...

Explain the Incremental Model Iterative and Incremental Models follow more or less the similar approach. Incremental Model is an intuitive approach to the waterfall model. Mult

Testing, cause effect testing

cause effect testing

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