Skip to content

mustafaakurt/hackerrank-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

HackerRank SQL Soruları Çözümleri

Bu repo, HackerRank platformundaki SQL sorularını çözmek için SQL sorgularını içermektedir. Her bir sorunun altında sorunun adı veya açıklaması, sorunun SQL sorgusu, çözümün açıklaması ve SQL kodu bulunmaktadır.

İçindekiler

Soru 1: Revising the Select Query I

Soru:

Query all columns for all American cities in the CITY table with populations larger than 100000. The CountryCode for America is USA. The CITY table is described as follows:

alt text

Açıklama:

Bu soruda where ve and komutunu kullanmalıyız. Sorguyu yazarken select "*" kullanarak ilgili satıra ait tüm sütunları getirebiliriz.

SQL Kodu:

SELECT * FROM CITY WHERE POPULATION > 100000 AND COUNTRYCODE = "USA"

Soru 2: Revising the Select Query II

Soru:

Query the NAME field for all American cities in the CITY table with populations larger than 120000. The CountryCode for America is USA.

The CITY table is described as follows:

alt text

Açıklama:

Bu soruda where ve and komutunu kullanmalıyız. Sorguyu yazarken select name şeklinde belirterek ilgili satıra ait bilgilerden yalnızca name sütununu getirmesini sağlamış oluruz.

SQL Kodu:

SELECT NAME FROM CITY WHERE COUNTRYCODE = "USA" AND POPULATION > 120000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •