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 main approaches in debugging, What are the common approaches i...

What are the common approaches in debugging? Brute force method: The memory dumps and run-time tracks are checked and program with write statements is loaded to get clues to er

What is product metrics, Product metrics: explain the characteristics of t...

Product metrics: explain the characteristics of the product such as size, complexity, design features, performance, efficiency, reliability, portability, etc.

Define a software process, Define a software process. How do software myths...

Define a software process. How do software myths affect a software process? Software process is a Coherent set of activities for specifying, designing, executing and testing so

What are the common approaches in debugging, What are the common approaches...

What are the common approaches in debugging? Brute force method: The memory dumps and run-time tracks are examined and program with write statements is loaded to obtain clues t

Data structure, what do you understand by recursion.explain the simulating ...

what do you understand by recursion.explain the simulating recursion in brief.program of fabinacon series by recursion

State about the elementary modeling techniques, State about the Elementary ...

State about the Elementary Modeling Techniques A model illustrating bare minimum requirements is known as Essential Model. It has two components: a) Environmental model B)

#, Write the algorithm to print at list of numbers from 1 to 5 and there s...

Write the algorithm to print at list of numbers from 1 to 5 and there square

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

What is software bug, Explain Software Bug? Ans) A fault in a program wh...

Explain Software Bug? Ans) A fault in a program which origins the program to perform in an unintended or unanticipated manner.

Define the alpha testing and beta testing, Alpha testing and Beta testing ...

Alpha testing and Beta testing Alpha testing is conducting acceptance testing in the environment where the application was formed. It is done by the customer. Beta testing is c

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