나는 이렇게 학습한다/Algorithm & SQL

Hello SQL World!

daco2020 2022. 7. 17. 23:56
반응형

Hello SQL!

Return a table with a single column named Greeting with the phrase 'hello world!'

Please use Data Manipulation Language and not Data Definition Language to solve this Kata

 

Solution:

SELECT 'hello world!' AS "Greeting"

The reason 'Greeting' is enclosed in double quotation marks is that uppercase letters are changed to lowercase letters unless they are enclosed in double quotation marks.

 

Result:

Greeting
hello world!

 

반응형