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

Functional requirement for an library management system, Write down the fun...

Write down the functional requirement for an Library management system. The user should able to search either all of the initial set of databases or select a subset of datab

Show reasons why it is difficult to improve software process, Q. List four ...

Q. List four reasons why it is difficult to improve software process. Ans It is difficult to get better software process due to following reasons: 1. Lack of knowledge-

Compare the productivity and difficulty, Q. Compare the Productivity and di...

Q. Compare the Productivity and difficulty? Productivity refers to metrics as well as measures of output from production processes per unit of input. Productivity P perhaps c

What can be main reasons for a bug not being to reproduce, What can be main...

What can be main reasons for a bug not being to reproduce? What must be done if such a bug is found? A bug can't be reproduced for below reasons: 1. Low memory. 2. Things

Advantages of incremental model, Advantages of incremental Model:- ...

Advantages of incremental Model:- As product is to be delivered in parts, total cost of the project is dispersed. Limited number of persons can be put on to the projec

Mention the factors to be considered during system modelling, Mention some ...

Mention some of the factors to be considered during System Modeling. Simplifications Assumptions Constraints

Use of test file generators in software engineering, Q. Use of Test file ge...

Q. Use of Test file generators in software engineering? Test file generators This creates a file of information that is used as the program and does so based on comments give

Name the commonly used architectural styles, Name the commonly used archite...

Name the commonly used architectural styles. i. Data centered architecture. ii. Data flow architecture. iii. Call and return architecture.

Time line chart, what is time line chart for travel management?

what is time line chart for travel management?

Programming, Write a C program that reads in three integers and then determ...

Write a C program that reads in three integers and then determines and print the largest and smallest integer among them.

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