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

Software project planning entails what activities, Software project plannin...

Software project planning entails what activities? Software project planning entails the many activities: -  Estimation:  o Effort, , resource, cost and project duratio

Explain metric, Explain Metric? Ans) The measure of the extent or degree...

Explain Metric? Ans) The measure of the extent or degree to which a product possesses and exhibits a particular quality, property, or attribute.

What are the debugging programs, Q. What are the Debugging programs? De...

Q. What are the Debugging programs? Debugging programs:-A program which runs simultaneously with the program under test and provides commands to examine memory and registers st

Define evolutionary prototyping, Evolutionary prototyping: Evolutionary Pr...

Evolutionary prototyping: Evolutionary Prototyping (also called as breadboard prototyping) is quite dissimilar from Throwaway Prototyping. The main goal when using Evolutionary Pr

Decomposed the system into several subsystems, Question: (a) With refe...

Question: (a) With reference to component communication, explain the differences between interface oriented and message oriented communication in terms of communication method

What are the common activities in design process, What are the common activ...

What are the common activities in design process? i. System structuring - The system is subdivided into principle subsystems components and communications among these subsystem

Product lines, Product lines Being well-informed about all your company...

Product lines Being well-informed about all your company products and services is necessary for the selling process and to giving good customer service.  A salesperson shoul

Define effector process, Define effector process? The effector process...

Define effector process? The effector process is termed as a process that verifies itself. The  effector process exists in specific criteria.

What are the benefits of evolutionary prototyping, What are the benefits of...

What are the benefits of evolutionary prototyping? i. Fast delivery of the working system. ii. User is included while developing the system. iii. More useful system can b

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

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