다시풀자(4)
-
[LeetCode MySQL] 197. Rising Temperature
197. Rising Temperature Table: Weather +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | recordDate | date | | temperature | int | +---------------+---------+ id is the primary key for this table. This table contains information about the temperature in a certain day. Write an SQL query to find all dates' id with higher temperature compared to its prev..
2021.01.11 -
[LeetCode MySQL] 1179. Reformat Department Table
1179. Reformat Department Table Table: Department +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | revenue | int | | month | varchar | +---------------+---------+ (id, month) is the primary key of this table. The table has information about the revenue of each department per month. The month has values in ["Jan","Feb","Mar","Apr","May","Jun","Jul","Au..
2021.01.11 -
[HackerRank MySQL] Type of Triangle
Type of Triangle Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table: Equilateral: It's a triangle with 3 sides of equal length. Isosceles: It's a triangle with 2 sides of equal length. Scalene: It's a triangle with 3 sides of differing lengths. Not A Triangle: The given values ..
2021.01.11 -
[HackerRank MySQL] Draw The Triangle 1 & 2 - information_schema.tables
Draw The Triangle 1 P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5): * * * * * * * * * * * * * * * Write a query to print the pattern P(20). set @star = 21; select repeat('* ', @star := @star -1) from information_schema.tables limit 20 Draw The Triangle 2 P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5): * * * * *..
2021.01.05