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

  Economics assignment

This document contains various important questions and their appropriate answers in the subject field of Economics.

  Demand and supply curves

Economics is the study of the principles governing the allocation of scarce means among competing ends when the objective of the allocation is to maximize the attainment of the ends.

  Long-run perfectly competitive equilibrium for the firm

Evaluate Government intervene and correct this situation?(a) Explain the concept of a concentration ratio. A rise in the price of magarine Explain the impact of external costs and external benefits on resource allocation long-run perfectly c..

  Supply and demand diagrams

Explain each of the following using supply and demand diagrams,  With the use of a graph, explain how these two programs affect cigarette consumption and the price of cigarettes.

  Case study: fisher-price toys

The case study of the Fisher-Price Toys, Inc., a popular case in basic economics and management from the prestigious Harvard Business School.

  Draw the production possibility curve

Draw the production possibility curve and a. Define consumer surplus and producer surplus.

  Tax revenue

The Australian government administers two programs that affect the market for cigarettes

  Maximize total welfare

How many tickets to sell to maximize total welfare.

  Difference between the cv and the ev

The change in consumer surplus (?CS) is not "theoretically" justifiable like the CV and EV but it continues to be the most widely used measure of consumer welfare change. Explain how this can be reconciled

  Depict von neumann-morgenstern utility index u in a diagram

Depict the von Neumann-Morgenstern utility index u in a diagram

  What is the market solution

What is the market solution (market price and quantity) and What is the total surplus of the society under the market solution

  Calculate gross national product and net national product

Calculate gross national product and net national product

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