Construct a query that can perform the same function

Assignment Help Management Information Sys
Reference no: EM131706130

Relational Set Operators" Please respond to the following:

A relational Database Model allows database users to analyze data thoroughly. To accomplish this, advanced commands such as UNION and INTERSECT may be used.

Describe a business scenario where a UNION relational set operator may be used to merge two similar data sets. Within the context of your business scenario, analyze the analysis and data consistency advantages of using a UNION operator rather than simply merging two data sets into one result table.

Suppose you are tasked with finding common data elements amongst various data sets. Specify how an INTERSECT operator may assist you in accomplishing this task. Construct a query that can perform the same function as the INTERSECT operator without using the "INTERSECT" syntax within the query. Note: The Strayer Oracle Server may be used to test and compile the SQL Queries developed.

Classmate:

A relational Database Model allows database users to analyze data thoroughly. To accomplish this, advanced commands such as UNION and INTERSECT may be used. Describe a business scenario where a UNION relational set operator may be used to merge two similar data sets. Within the context of your business scenario, analyze the analysis and data consistency advantages of using a UNION operator rather than simply merging two data sets into one result table.

The book provides a very good example of when a UNION relational set operator would be used when a business acquires another business. They merge their customer lists through the use of the UNION operator. I think another good use of this would be when you have two departments within a company that need to be combined for any reason. Since most department managers want to keep their data separate, the ability to combine data if needed would be a good case for the UNION operator.

If we look at the scenario of combining two customer list tables, we already know that a UNION operator will combine the information and discard the duplicate records.

The UNION operator can also fail since it is a SQL query if the data types do not match. By just trying to merge the data from two tables to one you may have proprietary data types or certain data formats that need to be preserved within each table. The DBMS of the database may be programmed differently for each table and until the DBMS can be fixed keeping the tables separated may be the best solution.

Suppose you are tasked with finding common data elements amongst various data sets. Specify how an INTERSECT operator may assist you in accomplishing this task. Construct a query that can perform the same function as the INTERSECT operator without using the "INTERSECT" syntax within the query. Note: The Strayer Oracle Server may be used to test and compile the SQL Queries developed.

The INTERSECT query is used to find duplicates within two queries by finding common elements within both queries. You can think of the INTERSECT query as a Venn Diagram where each query is one part of the diagram and only the records overlapping in both queries will be returned.

To create an INTERSECT query without using the INTERSECT operator, you can use a JOIN syntax.

Here is the INTERSECT query from the book.

SELECT CUS_LNAME, CUS_FNAME, CUS_INITIAL, CUS_AREACODE, CUS_PHONE

FROM CUSTOMER

INTERSECT

SELECT CUS_LNAME, CUS_FNAME, CUS_INITIAL, CUS_AREACODE, CUS_PHONE

FROM CUSTOMER_2;

This will return all of the information from both CUSTOMER and CUSTOMER_2 using the INTERSECT operator. To do the same with the join, I'm going to keep it simple and just look for Last Name

SELECT CUSTOMER.CUS_LNAME

FROM CUSTOMER

JOIN CUSTOMER_2 ON CUSTOMER.CUS_LNAME = CUSTOMER_2.CUS_LNAME;

Of course, what you would want to do is look at all of the fields that you needed for your SQL query and you could even add in a WHERE clause if needed.

Reference no: EM131706130

Questions Cloud

Review case-bobo v continental baking co : Alice Bobo, an African-American woman, was employed by Continental Baking Company in a production position. She was fired because she refused to wear a hat.
Calculate the interest payable at maturity : What entry does Swifty Corporation make at the maturity date, assuming Gates pays the note and interest in full at that time
Write a paper in which discuss environmental sustainability : Write a 750- to 1,050-word paper in which you discuss environmental sustainability. Include the role of IPAT models, the stages of environmental problem.
Teachings of utilitarianism and emanual kant : When we look at the teachings of Utilitarianism and Emanual Kant, how are these teachings different? How are they similar?
Construct a query that can perform the same function : A relational Database Model allows database users to analyze data thoroughly. To accomplish this, advanced commands such as UNION and INTERSECT may be used.
Discuss and evaluate the efficacy of the results : Discuss and evaluate the efficacy of the results presented in the study. Address, the strengths, weaknesses, and limitations of the study
Overall growth rates as in the previous analysis : Use the standard TVM setup. Remember M is 12 for monthly. Setup a summary table showing the rates and overall portfolio value and one additional 20-year return.
How and why does commercial insurance differ : How and why does commercial insurance differ from insurance offered on a non-profit basis
What warranty liability related to current period sales : What warranty liability related to current period sales will Waymire report on its current period end balance sheet

Reviews

Write a Review

Management Information Sys Questions & Answers

  List top ten common vulnerabilities that are being attacked

List the top 10 common vulnerabilities that are being attacked according to Open Web Application Security Project Top Ten Web Application Vulnerabilities 2010.

  Describe role of databases and database management system

Identify which data components are the entities and attributes, and the relationship between each using an object representation diagram through the use of graphical tools. Note: The graphically depicted solution is not included in the required pa..

  Information security program

Describe the difference between corporate investigations and law enforcement investigations and determine why corporate investigations are an integral part of an information security program.

  Create naming conventions for each entity and attributes

A multinational tour operator agency has gained new business growth in the North American market through the use of social media.

  How crowdsourcing may affect the budget and timeline

Describe how crowdsourcing may affect the budget and timeline of a design project. Assess crowdsourcing in regard to the legal, societal, and ethical issues it raises, and suggest methods to alleviate these concerns.

  Identify the fundamentals of public key infrastructure

Identify the fundamentals of public key infrastructure (PKI). Describe the manner in which your solution will protect the privacy of data transmitted across the WAN.

  Describe the stages of technology development

The stages of technology development in Technology Industry - Describe the stages of technology development in Technology Industry by outlining a logical road map that contributes to Industry's business goals based on current technologies,

  Explain about the online analytical processing

Explain about the Online Analytical Processing,then explain about the Roll up,Drill down,Slice,Dice etc.

  Consumer confidence in making purchases online

Online banners are often used to enhance consumer confidence in making purchases online, but what implications are there if these online claims turn out

  Petsmarts management teamwho is petsmarts management team

petsmarts management teamwho is petsmarts management team? what skills and experiences do they each bring and how might

  Personal critical success factors

Explain how you will overcome threats from each of the five forces while achieving your professional goal(s) after graduation from the MS-IST Program.

  Is it possible for a project to have no employees assigned

How would you model the cardinality of the unary relationship to indicate that an employee has one manager and a manager may have many employees?

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