How the difference between an outer join and an inner join

Assignment Help Database Management System
Reference no: EM13187961

Consider the following database that contains information about people, vacation locations, and when those people visited them.

The relations are:

  • Person(ID, Name)
  • Location(PlaceName, Country, MainAttraction)
  • Visited(ID, PlaceName, Year).

You should assume that place names are unique in the world.

Consider the schema given above.

(a) Give a primary key for each relation. Are there any relations for which there is an alternate candidate key which you have not chosen as the primary key? Why or why not?

(b) State all referential integrity constraints (inclusion dependencies) that should hold on these relations.

( c) Explain how the difference between an outer join and an inner join. What could be the use of each?

Explain what each of the following relational algebra queries would return:

a) πPlaceName σYear<2005(Visited)

b) πName(Person) ? (πID(Person) - πID(Visited)))

c) πName(Person) ? (πID,PlaceName(Visited ÷ (πPlaceNameLocation)))

Reference no: EM13187961

Questions Cloud

Explain method of production that lowers its marginal costs : The firm has an employee who threatens to tell all other firms in the industry about how to implement this new technique. Will it be possible to bribe the employee not to do this Explain why or why not. c What factors will determine the best numbe..
Define what is the reaction mechanism : What is the reaction mechanism (detailed with arrows) for trans-cinnamaldehyde when reacted with benzyltriphenylphosphonium chloride?
How long will it take the rock to hit : A canyon is 2000 meters deep at its deepest point. A rock is dropped from the rim above this point. Write the height of the rock as a function of time t in seconds. (Use -9.8 m/s2 as the acceleration due to gravity.) How long will it take the rock..
What is the EEOC : What is the EEOC? Explain how the EEOC influences human resources and hiring managers during the recruiting process.
How the difference between an outer join and an inner join : Give a primary key for each relation. Are there any relations for which there is an alternate candidate key which you have not chosen as the primary key? Why or why not?
Determine producer surplus plus consumer surplus : Assume the following values for Figures 5.4a and 5.4b. Q1=20 bags. Q2=15 bags. Q3=27 bags. The market equilibrium price is $45 per bag. The price at a is $85 per bag. The price at c is $5 per bag. The price at f is $59 per bag. The price g is $31 ..
How many of each type did the company sell that year : If the number sold of franchise A is twice the number sold of franchise C, how many of each type did the company sell that year.
Estimate the population and the rate of population growth : If t denotes the time in years after 1980, find a formula for N(t), the population in millions at time t. Assuming that this rapid growth rate continues, estimate the population and the rate of population growth in the year 2000.
Neoclassicism-impressionism and abstract expressionism : compares and contrasts Neoclassicism, Impressionism, and Abstract Expressionism. How each style reflects its era and the culture. Discussion of painting techniques. Formal elements

Reviews

Write a Review

Database Management System Questions & Answers

  Explain efficient algorithm for edge-labeled graph

Explain efficient algorithm that, provided edge-labeled graph G with distinguished vertex v0 and sequence s = σ1, σ2, ..., σk of characters from Σ, returns path in G which begins at v0.

  Write functional dependencies in table concerns invoicing

Write the functional dependencies in the following table that concerns invoicing (an application Premiere Products in considering adding to its database), subject to the specified conditions.

  Construct an rea diagram

Design a minimal relational database for Pieces Boutique. By minimal, it is meant that option to post a key into existing table because of either needed participation or a discernible high load could be exercised where appropriate.

  Explain what is the purpose of database

Explain what is the purpose of Database? The purpose of a database is to store information about certain types of objects. Give an example of two related TABLES.

  Design an relational model model

Design an Relational Model (RM) model of a database (DB) that will be useful for each of the chosen enterprises and Implement the 2 enterprise relational DBs using either MySQL or SQLite

  Explaining views for protecting access by unauthorized users

Why do you believe that views by themselves are insufficient for protecting access by unauthorized users?

  Transform the tables into one or more tables in bcnf

Transform the tables into one or more tables in BCNF. State the primary keys, candidate keys, and referential integrity constraints.

  Prepare table which is in first normal form

Prepare the example of table which is in first normal form but not in second normal form and example of a table which is in second normal form but not in third normal form.

  Develop a new information system

MGMT321 Group Project :  You were hired as an analyst to develop a new information system to automate the payroll transactions in a mid-size organization. The proposed system will contain employees’ data and interface with the organization’s General ..

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Find bcnf decomposition of relation schema

Consider a relation schema r(A,B,C,D,E, F) and a set of functional dependencies {A BCD,BCDE,BD,DA}.  Determine whether or not (A,E, F) is in BCNF and justify your answer. If (A,E, F) is not in BCNF,find a BCNF decomposition of it.

  What type of databases and database servers myspace use

What kind of databases and database servers does MySpace use? Why is database technology so important for a business such as MySpace?

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