How can you combine two tables or views together

Assignment Help Database Management System
Reference no: EM131373975

Database Design Discusion

Part 1 Combining Tables

Please respond to BOTH of the following questions:

Question A

What is a join command? In addition, How can you combine two tables/views together? For instance one table contains 100 rows and the other one contains 200 rows, have exactly the same fields and you want to show a query with all data (300 rows).

Question B

Why can a "group by" or "order by" clause be expensive to process? What is the difference between a where and having clause?

Part 2 Peer Responses

Please respond to two peers.

Peer 1 Bill

The join clause does as it sounds, it will join two more tables in a relational database. I looked at some forums for suggestions, and one of the better answers I found in how to join the tables would be using the following syntax:

CREATEVIEW vw_combined AS
SELECT *
FROM TABLE1 t1
JOIN TABLE2 t2 ON t2.col = t1.col

Again, both tables need to have the same columns of data. The having clause is a limit on the results that are produced on the search. The where clause determines what row to be included on the select and what it is specifically looking for.

Peer 2 Ted's responce to Bill

Bill, how would you combine the contents of two tables without a JOIN?

Reference no: EM131373975

Questions Cloud

Evaluate the given statement : "Ultimately, the study of international business is no different from the study of domestic business. Thus, there is no point in having a separate course on international business." Evaluate this statement.
Describe two features any of the ornithopod dinosaurs : Name and describe two features any of the Ornithopod Dinosaurs had that helped them eat plants. Explain how that feature would help them eat plants.
What is the definition of genre : What is the definition of genre, according to the scholars that Dirk quotes (Lloyd Bitzer, Amy Devitt, and Carolyn Miller)? What two things do you need to identify in a text in order to understand its genre
Discuss the possible implications of such a development : How do the Internet and the associated World Wide Web affect international business activity and the globalization of the world economy?
How can you combine two tables or views together : What is a join command? In addition, How can you combine two tables/views together? For instance one table contains 100 rows and the other one contains 200 rows, have exactly the same fields and you want to show a query with all data (300 rows).
Sildenfil for severe lymphatic malformations : The drug (Viagra) has been used to treat pulmonary hypertension in children. Its typical side effects in children are nausea, headaches and cold-like symptoms such as a runny nose or fever, Lane said. Spontaneous erections are possible but are an ..
Who benefits from globalization of flat panel display : Why is the manufacturing of flat panel TVs migrating to different locations around the world?- Who benefits from the globalization of the flat panel display industry? Who are the losers?
Disease or condition researchers are attempting to treat : Choose one modern example of gene therapy (since 2005), describe the disease or condition researchers are attempting to treat, and explain how the therapy might repair the underlying cause of the disease.
What technology was the most difficult to live without : Prepare a one-to-two page paper that addresses the following questions: What did you learn from your experience? What technology was the most difficult to live without

Reviews

Write a Review

Database Management System Questions & Answers

  Discuss the difference between a composite key and attribute

Discuss the difference between a composite key and a composite attribute. How would each be indicated in an ERD? What is a recursive relationship? Given an example.

  Solve the following simple logic exercise

Be sure to THINK through the logic, then develop the IPO Chart using a Microsoft Word table. Develop the flow chart using Microsoft VISIO. Then write the pseudocode in Microsoft Word

  Draw decision tree to represent the big state university

A student who completes either one of these prerequisites and obtains the instructor's permission, however, will be allowed to take MIS 260.

  Complete information about eci employees

Your goal is to develop a database that shall allow ECI to keep track of its business and provide the management with the following information regarding the performance of the business: HR Management. Complete information about ECI employees, espe..

  What you learned about data protection in online environment

IT 200: Based on what you have learned about data protection in an online environment, prepare a presentation to a department head or the CEO of a company to convince audience that data protection controls would benefit their business.

  Expressions in tuple relational calculus and domain relation

Consider the relational database described in Problem Give expressions in tuple relational calculus and domain relational calculus for each of the following queries: Find all the companies that have offices in all the cities in which company C2..

  Establish relationship types between entities

Establish relationship types between entities. Customers log on to our Web site and place an order or call an employee who places the order on the customers' behalf.

  Create an actual web page document

Modify the XML document in Exercise 2 to include a namespace URL from which the elements of the XML document in Exercise 3 will be associated with. Make any changes to the XML document that are necessary as a result of the namespace URL inclusion.

  Raw data representation and interpretation

Raw Data Representation and Interpretation

  Discuss the role of the database administration

Discuss the role of the database administration and the issues of cost/benefit for these types of endeavors in organizations.

  Convert table to equivalent collection of tables

determine the functional dependencies that exist in the following table. After determining the functional dependencies, convert this table to an equivalent collection of tables.

  List all the functional dependencies that this relation

Assume that the value of attribute Z of the last record in the relation is changed from z3 to z2. Now list all the functional dependenciesthat this relation instance satis?es.

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