Algorithm


Problem Name: Sql - Select By ID

Problem Link: https://www.hackerrank.com/challenges/select-by-id/problem?isFullScreen=true

In this HackerRank Functions in SQL problem solution,

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

The CITY table is described as follows:

 

 

Code Examples

#1 Code Example with SQL

Code - SQL


SELECT * FROM CITY
WHERE ID = 1661;
Copy The Code & Try With Live Editor
Advertisements

Demonstration


Previous
[Solved] Select All in SQL solution in Hackerrank
Next
[Solved] Japanese Cities' Attributes in SQL solution in Hackerrank