Information that is located in two tables

Assignment Help Business Economics
Reference no: EM131626525

Applying SQL

The Assignment is comprised of three parts. Please complete three parts in one Word document, and label each part and question so that your responses are clear.

Part 1

A manager wants to know how many employees are making a salary of 50,000 or more.

Consider the EMPLOYEES table having the following records: ATTACHED

Develop a subquery statement with a SELECT statement, and develop a table with the results similar to the one in this question above, except with the results of your statement.

Part 2

A manager needs to find out some information that is located in two tables. The SQL clause will be used to combine these records as follows:

(a) CUSTOMERS Table: ATTACHED

(b) ORDERS Table: ATTACHED

Using the following SELECT statement joining these tables, develop table with the results:

SQL> SELECT ID, NAME, AGE, AMOUNT

FROM CUSTOMERS, ORDERS

WHERE CUSTOMERS.ID = ORDERS.CUSTOMER_ID;

Part 3

Please respond to the following questions. If you choose to use outside sources, please make sure they are cited and referenced appropriately. There is no minimum length for your answers.

1. Define CROSS JOIN. Give an example of CROSS JOIN's syntax.

2. Identify the three join types included in the OUTER JOIN classification.

3. Define subquery and its basic characteristics.

4. Explain the differences between UNION and UNION ALL, and write the syntax for each.

5. Suppose you have two tables named EMPLOYEE and EMPLOYEE_1. The EMPLOYEE table contains the records for four employees: George Coston, Peggy Jesse, Angela Mills, and Sarah Houston. The EMPLOYEE_1 table contains the records for employees Andrew Myers and George Coston. Given this information, list the query output for the UNION query.

6. Given the employee information in Question 5, complete the following:

a. List the query output for the UNION ALL query.

b. List the query output for the INTERSECT query.

7. How is embedded SQL used, and define it.

8. Explain the differences between dynamic SQL and static SQL.

Reference no: EM131626525

Questions Cloud

Advantage and disadvantage of both compiler and interpreter : What is the advantage and disadvantage of both compiler and interpreter?
Provide a summary of the event : Clearly identify the event location, date attended, the attendees, and your initial reaction upon arriving at the event.
Define motions of summary judgment : Procedural History: Record what has happened procedurally in the case up until this point. The dates of case filings, motions of summary judgment
Create an annotated bibliography with three scholarly source : Create an annotated bibliography with three scholarly sources that you may use in your proposal to support your discussion of the problem or the solution.
Information that is located in two tables : A manager needs to find out some information that is located in two tables. The SQL clause will be used to combine these records as follows:
Define continental airlines was cleared of criminal blame : Continental Airlines was cleared of criminal blame but stilled bore civil liability. What is the difference between criminal liability and civil liability
Create high-level advertising and public relation strategies : Create high-level advertising and public relations strategies that support the position statement that is targeting your new market segment.
Develop project plan for a major public hospital facility : VCP5700 Project Management and Information Technology GROUP PROJECT ASSIGNMENT. Develop Project Plan for: A Major Public Hospital Facility
Determine in what ways the us government currently tries : Determine whether or not such projects were good government investments during those hard times, and provide two (2) examples that support your viewpoint.

Reviews

Write a Review

Business Economics Questions & Answers

  Netflix has been disruptive to more than one market

Netflix has been disruptive to more than one market. Select the market in which you think it has been least disruptive.

  At what price would you receive a margin call

The current market price for XYZ is $52 per share. Initial margin is 50%, maintenance margin is 35% and margin interest is 1.75% per year. You believe the stock price will increase over the next year and wish to trade exactly one round lot. What trad..

  Layers of the osi model

Explain how information flows through the layers of the OSI model. Use the postal service as the example. Make sure you clearly indicate which layer you are referring to.

  How much will price need to be changed to have level of sale

For the price function p(x) = 10 − sqrt 3x where p is in dollars and x is the number sold in hundreds (0 ≤ x ≤ 30), use R(12) and MR(12) to approximate the revenue when 1240 items are sold. [Hint: Revenue is price times quantity.] $ How much will the..

  Why do oligopolistic markets tend to exhibit price stability

What programs are dealing effectively with this population? Why do oligopolistic markets tend to exhibit price stability, and if this is the case, how do firms in these markets compete (illustrating with a couple of real-life examples)?

  What are her accounting cost and opportunity costs

A potential entrepreneur is trying to decide whether to open a new health spa. she presently makes $35,000 per year as an aerobics instructor and will have to give up this job if she opens the new health spa.if she chooses to open the spa,it will cos..

  Is vertical integration into pig farming needed to maintain

Large producers of ham and pork food products require a steady supply of pigs over a long period of time to operate efficiently. Is vertical integration into pig farming needed to maintain that steady supply?

  Assume this change in real money demand is temporary

Use the FX and money market diagrams to answer the following questions. This question considers the relationship between Swedish kronor (SEK) and Danish krone (DKK). Let the exchange rate be defined as Swedish kronor per Danish krone. Assume this cha..

  Calculate consumer and producer surplus in this market

What is the equilibrium quantity and equilibrium price for the following demand and supply curves: Calculate consumer and producer surplus in this market.

  The marginal damage averted from poolution cleanup

The marginal damage averted from poolution cleanup is MD=200-5Q. The marginal cost associated with pollution cleanup is MC=25+2Q. What is the optimal level of pollution reduction? Show that this level of pollution reduction could be accomplished thro..

  What is john stuart mill take on say law

What is John Stuart Mill's "take" on Say's Law? How would you describe a country's savings rate and its effect on the country's growth rate?

  What number of shipments would make cost

A firm is trying to decide whether to have a centralized warehouse or regional warehouses. A centralized warehouse would be cheaper than four regional warehouses, but the expenses for shipping would be higher with a centralized warehouse. If the firm..

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