Basics of Sets and Relations #5 – HackerRank Solution

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

Task

Consider the following data table named Student.

Student Name    Number  Sex  
Ben             3412    M  
Dan             1234    M  
Nel             2341    F  

What is the count of rows returned in the following relational selection?
σ(Number<3000)(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 *