We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Databases
  3. Set and Algebra
  4. Databases - Natural Joins

Databases - Natural Joins

Problem
Submissions
Leaderboard
Discussions

Relation R(A,C) has the following tuples:

A : C
3,3
16,4
12,3
3,15
27,1

Relation S(B,C,D) has the following tuples:

B : C : D
50,1,6
1,55,8
4,3,9

The following tuple is in the result of the natural join between R and S where tuples are structured as (A,B,C,D):

27, X, Y, Z

In the answer box, fill up the values of the integers X, Y and Z in three separate lines. e.g.

10
20
30  

Author

PRASHANTB1984

Difficulty

Medium

Max Score

5

Submitted By

13184

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature