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

Incremental model, four circumstances where incremental model is appropriat...

four circumstances where incremental model is appropriate?

Explain information management strategy, Question: (a) ‘Information Str...

Question: (a) ‘Information Strategy involves the encompassing of an organisation's information requirements and information systems planning with its long-term objectives.' T

Draw the context diagram, Q. A supermarket requires to develop software to ...

Q. A supermarket requires to develop software to encourage regular customers. For this the customer requires to supply his name address telephone number and driving license number.

Explain bottom-up integration, Bottom-up integration This testing start...

Bottom-up integration This testing starts construction and testing with the components at the lowest levels in the program structure.

What transform mapping refers, What transform mapping refers? The trans...

What transform mapping refers? The transform mapping is a bundle of design steps applied on the DFD in order to map the transformed flow characteristics into specific architect

Explain the throw away prototype, Explain the Throw away prototype I...

Explain the Throw away prototype In this technique, prototype is discarded once its purpose is fulfilled and final system is built from scratch. Prototype is built quickly t

How is cyclomatic complexity useful in program test, How is cyclomatic comp...

How is cyclomatic complexity useful in program test? Cyclomatic complexity calculates the amount of decision logic in a single software module. It is used for two related purpo

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

What are the types of software maintenance, What are the types of software ...

What are the types of software maintenance? Corrective maintenance - Means the maintenance for correcting the software faults. Adaptive maintenance - Means maintenance f

HART protocol DD development, I am working on DD development project and I...

I am working on DD development project and I am using 475 field communicator for testing DD. While development of DD, I tested DD with SDC 625 PC application using HART modem. I h

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