Select By ID in SQL | HackerRank Solution

Hello coders, today we are going to solve Select By ID HackerRank Solution in SQL.

Select By ID in SQL

Problem

Query all columns for a city in CITY with the ID 1661.

The CITY table is described as follows:

CITY

FieldType
IDNUMBER
NAMEVARCHAR2(17)
COUNTRYCODEVARCHAR2(3)
DISTRICTVARCHAR2(20)
POPULATIONNUMBER

Solution – Select By ID in SQL

SELECT * FROM CITY WHERE ID = 1661;

Disclaimer: The above Problem (Select By ID) is generated by Hacker Rank 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 *