Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Write a Query that uses the UNION Operator

1. Use the Software Experts database to:  

a. Display the first and the last name of all consultants who worked on any projects for Morningstar Bank.

b. Display the name of each project that consultant Mark Myers has ever worked on, the name of the project's client, and the number of hours that Mark contributed to each project.

 2.  Use the Clearwater Traders database to:

 a. Display each source description from the ORDER_SOURCE table, along with a count of the total number of orders that have been derived from that source. Hint. You will need to use an outer join.

b. List the first and last name, order ID, source description, and order date of every customer who has ever placed an order using the same order sources as customer Alissa Chang. Use a query that contains a sub query.

c. List the inventory ID, item description, item size, color, and shipment quantity for every item that was received on the same date as inventory item 24 in shipment ID 5. Use a query that contains a sub query, and do not include the information for inventory item 24 in the output.

 3.   Use the Northwoods University database to:  

a. List the building code and room of every record in the LOCATION table, and also list the term description, call ID, section number, day, and time of every course ever taught at that location. Format the TIME field so that values appear at times not dates. Hint. You will need to use multiple outer joins.

b. List the first and last names of all faculty members who have ever taught any of the same courses as faculty member Kim Cox or who have ever taught a class in the same room as Kim. Use a query with multiple sub queries.

 4.  Use the Software Experts database to:  

a. List all of the skill descriptions in the SKILL table, as well as the ID of every consultant who is certified for a particular skill. Use an outer join so that if no consultants are certified for a particular skill, the query retrieves the NULL values for the consultant ID value. Hint. Create a view named CERTIFICATION_VIEW that contains IDs (consultant id and skill id) for consultant/skill combinations that are certified, and then perform the outer join using that view.

b. Display the name of each project that consultant Mark Myers has ever worked on, and the first and last name of the consultant who was the manager of the project. Concatenate the manager fields so that the values appear like "Sara Carlson", and assign the column heading "Project Manager" to the manager name output column. Hint. Nest the CONCAT function.

a. Write a query that uses the UNION operator to list the buildings code and room of every location at Northwoods University that is either currently in use as a faculty office or in use as a classroom during the Summer 2007 term.

b. Write a query that uses the INTERSECT operator to retrieve the skill descriptions that are the same for Software Experts consultants Sarah Carlson and Mark Myers.

c. Write a query that uses the MINUS operator to retrieve the skill descriptions that represent the difference between the skills possessed by Software Experts consultant Sara Carlson and the skills possessed by consultant mark Myers.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9526250

Have any Question?


Related Questions in DBMS

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Stored procedure please create the following stored

Stored procedure. Please create the following stored routines using CPS3740_2017S database using the tables in dreamhome database. xxxx is your email id 1) Implement a stored procedure p3Q21_xxxx to display the Branch ci ...

Question as explained throughout this course entity

Question: As explained throughout this course, entity relationship modeling is a critical element of database design. If the database is not properly modeled, it is unlikely that the database will be properly developed. ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

A schools office of the registrar maintains data about the

A School's office of the registrar maintains data about the following entities: a) courses (including course number, title, credits, syllabus and prerequisites), b) course offerings (including course number, year, semest ...

Question 1 what isdata-manipulation language dml there are

Question: 1. What isData-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last_ ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

Question suppose we have two kinds of doctors hospital

Question : Suppose we have two kinds of doctors: hospital doctors and family physicians. In addition to the doctor's id number, name, specialty, and years of experience, we want to record the hospital name for the hospit ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As