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

What are the benefits of incremental model, What are the Benefits of increm...

What are the Benefits of incremental model This model is acceptable when there is less number of person involved in the project. Technical risks can be handle with every

Define aggregation among objects, Q. Define Aggregation among objects? ...

Q. Define Aggregation among objects? Aggregation between objects represents a relationship. It is a whole/part relationship. Aggregation may perhaps imply containment.

Define the computer based system, Define the computer based system. The...

Define the computer based system. The computer based system can be explained as "a set or an arrangement of elements that are organized to accomplish some predefined goal by pr

Diffrence between object and function oriented design, Q. Differentiate bet...

Q. Differentiate between object oriented and function oriented design. Ans: • Function-oriented design depend on identifying functions which transform their inputs to create

Key process areas of capability maturity model (cmm), Key process areas of ...

Key process areas of Capability Maturity model (CMM) Effectiveness, Predictability and control of an organization's software processes are believed to get better as the organiz

Define cohesion & coupling, Define cohesion & coupling? Give suitable examp...

Define cohesion & coupling? Give suitable examples.  Coupling : Coupling refers to the strength of the relationship among modules in a system. Coupling shows how strongly dif

What is cyclomatic complexity, What is cyclomatic complexity? Cyclomati...

What is cyclomatic complexity? Cyclomatic complexity is software metric that provides the quantitative measure of logical difficulty of the program. The Cyclomatic complexit

Describe about unit testing, Q. Describe about Unit Testing? Unit Testi...

Q. Describe about Unit Testing? Unit Testing: The unit testing is completed to test the individual module of the software. Test cases are designed to test the program functiona

#title; fundamentals of tech, true/false small errors in syntax or spelling...

true/false small errors in syntax or spelling of a line of code will not affect the results

What are the advantages of smoke testing, What are the benefits of smoke te...

What are the benefits of smoke testing? Integration risk is decreased. The quality of the end-product is getting better. Error diagnosis and correction are simplified. Assessme

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