Hackerrank – Select by ID

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Select all rows and filter by value if ID column equals to 1661.

I created solution in:

All solutions are also available on my GitHub.

SQL