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

  Calculate confidence and support of rule

Assume that 30% of science students are majoring in biology. Would you consider to be novel with respect to rule? Describe. Calculate confidence and support of rule.

  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..

  Recognize input data required for each of processes

Recognize input data required for each of processes. Recognize logical name for each data output item and kind of data output (real number, integer, text).

  Create mock-up report to make the monthly claim

He wishes you to group data by insurance company number, with subtotals by company and grand totals for each numeric field.

  Explain components represented in cell using mccumber model

Suppose that the security model is required for protection of information in class. Using NSTISSC model, analyze each of cells (i.e. 27 cells related with McCumber model).

  Spreadsheet and database

Explain the differences between the storing data in Access and Excel. Why you would use a spreadsheet over the database?

  Compute numbers of married men-single men from table

Compute the numbers of married men, single men, married women and single women. Print these numbers on a student summary report.

  Create database management system for bike shop

Your job is to create a database management system for bike shop who ‘buys' and ‘sells' new and second-hand bikes, and also parts of bike. Bike is constructed with parts while part can be fitted to different bikes.

  Analyse a set of data and write a memo

To analyse a set of data, and write a memo, identifying and explaining your insights into the operation of Todd Restaurants.

  Determine the cartesian product of sets

Determine the Cartesian product (A X B) of the given pair of sets. A => Set of first letter of names of countries = A = { R, S, T } B => Set of numbers denoting Postal codes = B = { 0001, 1001}.

  Create database to keep information of movies

Create a database for Ray. He is interested in movies and wants to keep information on movies, actors, and directors in a database. The only user is Ray, and he needs to produce reports.

  Write a memorandum to sam jones

Write a memorandum to Sam Jones (CIO) and present your research findings. Your memorandum should be no longer than 500 words.

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