inblog logo
|
silver
    SQL문제풀기

    [SQL문제풀기] Revising the Select Query I

    silver's avatar
    silver
    Mar 31, 2025
    [SQL문제풀기] Revising the Select Query I
    Contents
    문제MySQL , MS SQL ServerOracle, DB2

    문제

    Revising the Select Query I | HackerRank
    Query the data for all American cities with populations larger than 100,000.
    Revising the Select Query I | HackerRank
    https://www.hackerrank.com/challenges/revising-the-select-query/problem?isFullScreen=true
    Revising the Select Query I | HackerRank

    MySQL , MS SQL Server

    내가 작성한 정답

    select * from city where population > 100000 and countrycode = 'USA'

    Oracle, DB2

    내가 작성한 정답

    : 문장 끝에 ;를 넣지 않으면 오답처리 된다.
    select * from city where countrycode = 'USA' and population > 100000;
    Share article

    silver

    RSS·Powered by Inblog