Suppose an application programmer was supposed to write a query select * from r natural left outer join s; on relations r(A, B) and s(B, C), but instead wrote the query select * from r natural join s; a. Give sample data for r and s on which both queries would give the same result. b. Give sample data for r and s where the two queries would give different results, thereby exposing the error in the query.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 6RQ: What happens to the existing rows of a table if the DEFAULT value of a column is changed?
icon
Related questions
Question

Suppose an application programmer was supposed to write a query
select *
from r natural left outer join s;
on relations r(A, B) and s(B, C), but instead wrote the query
select *
from r natural join s;
a. Give sample data for r and s on which both queries would give the same
result.
b. Give sample data for r and s where the two queries would give different
results, thereby exposing the error in the query.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr