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

Applicability with reference to software reliability models, Q. Applicabili...

Q. Applicability with reference to software reliability models? Applicability : It is another important characteristic of a model. The model must be judged by its degree of a

Type of organizational behaviour, what is type of organizational behaviour ...

what is type of organizational behaviour like classical,neo and morden?

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 functional testing, Functional testing is black-box type of testing...

Functional testing is black-box type of testing geared to functional needs of an application. Test engineers *should* do functional testing.

Explain the term- phased, Explain the term-  Phased In this approach ...

Explain the term-  Phased In this approach only part of the new system is introduced and only when it proves to work satisfactorily is the next part introduced and so on, unti

SQA Planning, I want to know that what are the activities, roles,artifacts ...

I want to know that what are the activities, roles,artifacts and goals do a planning phase of SQE encempass? How can we prepare sqa plan for any project?

Differentiate between failures and faults, Differentiate between failures a...

Differentiate between failures and faults.   Failure:- Failure is the departure of external results of program operation from requirements. So failure is dynamic. Failure can

Show the reasons of current software crisis, Q. Show the Reasons of current...

Q. Show the Reasons of current software crisis? larger problem sizes, increasing skill shortage, and lack of adequate training in software engineering,

What are the types of requirements, What are the Types of Requirements ...

What are the Types of Requirements There are numerous categories of the requirements. On the basis of their priority, requirements are classified into below 3 types: 1.

Define the quality control, Quality Control Quality control is a method...

Quality Control Quality control is a method in which the product's quality is compared with standards and corrective actions taken if needed. Quality control activities focus o

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