Basics of Sets and Relations #6 – HackerRank Solution

In this post, we will solve Basics of Sets and Relations #6 HackerRank Solution. This problem (Basics of Sets and Relations #6) is a part of HackerRank Databases series.

Task

Consider the following data table named Student.

Name                Number  Sex  
Nina                3412    F 
Mike                1234    M  
Nelson              2341    F  

What is the count of attributes (columns) returned in the following projection?
π(Name, Number)(Student)

Only enter a single integer. Do not include any extra spaces or newlines.

Solution – Basics of Sets and Relations #5 – HackerRank Solution

2

Note: This problem (Basics of Sets and Relations #5) is generated by HackerRank but the solution is provided by CodingBroz. This tutorial is only for Educational and Learning purpose.

Leave a Comment

Your email address will not be published. Required fields are marked *